Fixed running the export templates with newer emscripten versions.
This commit is contained in:
parent
79298face0
commit
6f1d6cfc78
3 changed files with 9 additions and 10 deletions
3
misc/dist/html/fixed-size.html
vendored
3
misc/dist/html/fixed-size.html
vendored
|
|
@ -229,6 +229,7 @@ $GODOT_HEAD_INCLUDE
|
|||
|
||||
(function() {
|
||||
|
||||
const EXECUTABLE_NAME = '$GODOT_BASENAME';
|
||||
const MAIN_PACK = '$GODOT_BASENAME.pck';
|
||||
const DEBUG_ENABLED = $GODOT_DEBUG_ENABLED;
|
||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
||||
|
|
@ -380,7 +381,7 @@ $GODOT_HEAD_INCLUDE
|
|||
} else {
|
||||
setStatusMode('indeterminate');
|
||||
engine.setCanvas(canvas);
|
||||
engine.startGame(MAIN_PACK).then(() => {
|
||||
engine.startGame(EXECUTABLE_NAME, MAIN_PACK).then(() => {
|
||||
setStatusMode('hidden');
|
||||
initializing = false;
|
||||
}, displayFailureNotice);
|
||||
|
|
|
|||
3
misc/dist/html/full-size.html
vendored
3
misc/dist/html/full-size.html
vendored
|
|
@ -142,6 +142,7 @@ $GODOT_HEAD_INCLUDE
|
|||
|
||||
(function() {
|
||||
|
||||
const EXECUTABLE_NAME = '$GODOT_BASENAME';
|
||||
const MAIN_PACK = '$GODOT_BASENAME.pck';
|
||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
||||
|
||||
|
|
@ -254,7 +255,7 @@ $GODOT_HEAD_INCLUDE
|
|||
} else {
|
||||
setStatusMode('indeterminate');
|
||||
engine.setCanvas(canvas);
|
||||
engine.startGame(MAIN_PACK).then(() => {
|
||||
engine.startGame(EXECUTABLE_NAME, MAIN_PACK).then(() => {
|
||||
setStatusMode('hidden');
|
||||
initializing = false;
|
||||
}, displayFailureNotice);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue