]> Nishi Git Mirror - tewi.git/commitdiff
will try to fix it later
authorNishi <nishi@nishi.boats>
Sun, 29 Sep 2024 07:50:59 +0000 (07:50 +0000)
committerNishi <nishi@nishi.boats>
Sun, 29 Sep 2024 07:50:59 +0000 (07:50 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@200 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/main.c

index 75ae059c475fd269f607676ab3f74eaa1ae5c454..2e81f712beb73493585722cbcfcbe7241d756897 100644 (file)
@@ -42,7 +42,9 @@ PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER);
 #define STDERR_LOG(...) pspDebugScreenPrintf(__VA_ARGS__)
 #elif defined(__ps2sdk__)
 #include <debug.h>
+#include <iopcontrol.h>
 #include <sifrpc.h>
+#include <kernel.h>
 
 #define printf(...) scr_printf(__VA_ARGS__)
 #define STDERR_LOG(...) scr_printf(__VA_ARGS__)
@@ -626,10 +628,13 @@ int main(int argc, char** argv) {
        netInitialize();
 #elif defined(__ps2sdk__)
        SifInitRpc(0);
+       while(!SifIopReset("", 0))
+               ;
+       while(!SifIopSync())
+               ;
        init_scr();
        scr_printf("PS2 Bootstrap, Tewi/%s\n", tw_get_version());
-       while(1)
-               ;
+       SleepThread();
 #endif
        int st = startup(argc, argv);
        if(st != -1) {