mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-01 19:28:00 +03:00
Improve ZZ0,1 behavior
- Check nact->is_quit - Avoid busy loop in emscripten
This commit is contained in:
+2
-4
@@ -345,10 +345,8 @@ void commandZZ0() {
|
||||
sys_exit(sysVar[0]);
|
||||
#endif
|
||||
} else if (sw == 1) {
|
||||
while (TRUE) {
|
||||
usleep(1000*1000);
|
||||
sys_getInputInfo();
|
||||
}
|
||||
while (!nact->is_quit)
|
||||
sys_keywait(1000, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user