mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
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:
parent
9107357c8d
commit
35adf718cf
5 changed files with 137 additions and 94 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue