Commit cb29ce8a by Relintai

Fix startGame's logic in engine.js.

parent c4823796
......@@ -134,12 +134,10 @@
this.startGame = function(execName, mainPack) {
executableName = execName;
var mainArgs = [ '--main-pack', mainPack ];
var mainArgs = [ '--main-pack', getPathLeaf(mainPack) ];
return Promise.all([
// Load from directory,
this.init(getBasePath(mainPack)),
// ...but write to root where the engine expects it.
this.init(getBasePath(execName)),
this.preloadFile(mainPack, getPathLeaf(mainPack))
]).then(
Function.prototype.apply.bind(synchronousStart, this, mainArgs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment