mirror of
https://github.com/gwenhael-le-moine/jsEmu48.git
synced 2024-11-16 19:47:27 +01:00
"correct" preprocessor define for emscripten detection
This commit is contained in:
parent
770cec06d9
commit
e5ffbe65ba
1 changed files with 7 additions and 7 deletions
|
@ -651,9 +651,9 @@ void mainloop()
|
|||
{
|
||||
|
||||
currentTime = SDL_GetTicks();
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
|
||||
currentTime_emu = currentTime;
|
||||
emuframecount = 0;
|
||||
|
||||
|
@ -725,7 +725,7 @@ void mainloop()
|
|||
|
||||
if(refreshSDL() == FALSE)
|
||||
{
|
||||
#ifdef EMSCRIPTEN
|
||||
#ifdef __EMSCRIPTEN__
|
||||
printf("emscripten_cancel_main_loop\n");
|
||||
emscripten_cancel_main_loop();
|
||||
#endif
|
||||
|
@ -743,8 +743,8 @@ int main (int argc, char *argv[])
|
|||
//gui_init();
|
||||
|
||||
//start_timers();
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
printf("emscripten_set_main_loop\n");
|
||||
emscripten_set_main_loop(mainloop, 0, 1);
|
||||
|
||||
|
@ -757,7 +757,7 @@ int main (int argc, char *argv[])
|
|||
#endif
|
||||
|
||||
/*
|
||||
#ifdef EMSCRIPTEN
|
||||
#ifdef __EMSCRIPTEN__
|
||||
printf("emscripten_set_main_loop\n");
|
||||
emscripten_set_main_loop(mainloop, 1000, 1);
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue