Skip to content

Remove the execName parameter from engine.startGame. (javascript platform)

Created by: Relintai

After https://github.com/godotengine/godot-docs/issues/3146 I looked at the code to document it, but realized that the new parameter can be removed, because it can be extracted from the main pack. This way the .wasm file, and the .pck has to have the same names, and they need to be in the same folder, but that is in line with how the engine works on other platforms, so I don't think that that should be an issue.

The ability to just rename the .html file without touching the other files will still be intact with this.

(By the way, It was already pretty much working like this already, because in engine.js (L141) this.init(getBasePath(mainPack)), was supposed to be changed to this.init(getBasePath(execName)),, but apparently that change got lost during my experiments.)

Merge request reports