Patched to compile on non-Emscripten targets.
This commit is contained in:
parent
c2c793b74c
commit
6b529cf6dd
1 changed files with 2 additions and 0 deletions
|
@ -79,12 +79,14 @@ poked(int sig)
|
|||
done = 1;
|
||||
}
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
void
|
||||
loop()
|
||||
{
|
||||
if(done || (SDL_GetAudioStatus() != SDL_AUDIO_PLAYING))
|
||||
emscripten_cancel_main_loop();
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue