Change HTML5 start-up API
Rename engine.start() to startGame(), new start() takes string arguments handed directly to main(). Rename Engine.loadEngine() to load(). Add setLocale(), setResizeCanvasOnStart(), setExecutableName() and preloadFile().
This commit is contained in:
1 parent
9107357c8d
commit
35adf718cf
5 files changed
+137
-94
No files matched your search
@@ -61,7 +61,6 @@ int main(int argc, char *argv[]) {
|
||||
// run the 'main_after_fs_sync' function
|
||||
/* clang-format off */
|
||||
EM_ASM(
|
||||
Module.noExitRuntime = true;
|
||||
FS.mkdir('/userfs');
|
||||
FS.mount(IDBFS, {}, '/userfs');
|
||||
FS.syncfs(true, function(err) {
|
||||
|
||||
Reference in new issue
Block a user