You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix startGame's logic in engine.js.
(cherry picked from commit cb29ce8a3b)
This commit is contained in:
committed by
Rémi Verschelde
parent
72395ca846
commit
58c58ec212
@@ -134,12 +134,10 @@
|
|||||||
this.startGame = function(execName, mainPack) {
|
this.startGame = function(execName, mainPack) {
|
||||||
|
|
||||||
executableName = execName;
|
executableName = execName;
|
||||||
var mainArgs = [ '--main-pack', mainPack ];
|
var mainArgs = [ '--main-pack', getPathLeaf(mainPack) ];
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
// Load from directory,
|
this.init(getBasePath(execName)),
|
||||||
this.init(getBasePath(mainPack)),
|
|
||||||
// ...but write to root where the engine expects it.
|
|
||||||
this.preloadFile(mainPack, getPathLeaf(mainPack))
|
this.preloadFile(mainPack, getPathLeaf(mainPack))
|
||||||
]).then(
|
]).then(
|
||||||
Function.prototype.apply.bind(synchronousStart, this, mainArgs)
|
Function.prototype.apply.bind(synchronousStart, this, mainArgs)
|
||||||
|
|||||||
Reference in New Issue
Block a user