From: Nishi Date: Sun, 29 Sep 2024 07:50:59 +0000 (+0000) Subject: will try to fix it later X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=c6c5e58c9dcde9106f76fa05ae3deda8a3436a65;p=tewi.git will try to fix it later git-svn-id: file:///raid/svn-personal/tewi/trunk@200 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/main.c b/Server/main.c index 75ae059..2e81f71 100644 --- a/Server/main.c +++ b/Server/main.c @@ -42,7 +42,9 @@ PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER); #define STDERR_LOG(...) pspDebugScreenPrintf(__VA_ARGS__) #elif defined(__ps2sdk__) #include +#include #include +#include #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) {