Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
cb29ce8a
Commit
cb29ce8a
authored
Feb 06, 2020
by
Relintai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix startGame's logic in engine.js.
parent
c4823796
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
engine.js
platform/javascript/engine.js
+2
-4
No files found.
platform/javascript/engine.js
View file @
cb29ce8a
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment