This repository was archived by the owner on Aug 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
- /* ScummVM - Graphic Adventure Engine
1
+ /* S cummVM - Graphic Adventure Engine
2
2
*
3
3
* ScummVM is the legal property of its developers, whose names
4
4
* are too numerous to list here. Please refer to the COPYRIGHT
@@ -323,6 +323,10 @@ static void setupKeymapper(OSystem &system) {
323
323
324
324
}
325
325
326
+ #ifdef EMSCRIPTEN
327
+ #include " emscripten/emscripten.h"
328
+ #endif
329
+
326
330
typedef void (*FuncPtr)();
327
331
FuncPtr mainLoopUpdateFunc = 0 ;
328
332
@@ -332,16 +336,18 @@ void mainLoop()
332
336
#ifndef EMSCRIPTEN
333
337
while (mainLoopUpdateFunc)
334
338
mainLoopUpdateFunc ();
339
+ #else
340
+ emscripten_set_main_loop (mainLoopUpdateFunc, 0 , 0 );
335
341
#endif
336
342
}
337
343
338
344
extern " C" int scummvm_main (int argc, const char * const argv[]) {
339
345
Common::String specialDebug;
340
346
Common::String command;
341
347
342
- // argc = 2 ;
348
+ argc = 3 ;
343
349
const char * const args[3 ] = { " scummvm" , " -p/dott" , " tentacle" };
344
- // argv = args;
350
+ argv = args;
345
351
// Verify that the backend has been initialized (i.e. g_system has been set).
346
352
assert (g_system);
347
353
OSystem &system = *g_system;
You can’t perform that action at this time.
0 commit comments