summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-16 09:43:03 +0100
committerGitHub <noreply@github.com>2022-02-16 09:43:03 +0100
commita2e540f6172b53540386c1461fce368a8164ac49 (patch)
tree10e6bf2fc17b718fbe34303d9ff418f0f59bea76 /platform
parentdbb64e57052babdf2e85914007980f948e1addbc (diff)
parentf9629deade8407d550447486498e9ee11a235ebb (diff)
Merge pull request #58173 from akien-mga/js-build-fix-is_project_manager
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/javascript_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/javascript_main.cpp b/platform/javascript/javascript_main.cpp
index 5c00476a72..307a80feea 100644
--- a/platform/javascript/javascript_main.cpp
+++ b/platform/javascript/javascript_main.cpp
@@ -28,6 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
+#include "core/config/engine.h"
#include "core/io/resource_loader.h"
#include "main/main.h"
#include "platform/javascript/display_server_javascript.h"
@@ -94,7 +95,7 @@ extern EMSCRIPTEN_KEEPALIVE int godot_js_main(int argc, char *argv[]) {
Main::start();
os->get_main_loop()->initialize();
#ifdef TOOLS_ENABLED
- if (Main::is_project_manager() && FileAccess::exists("/tmp/preload.zip")) {
+ if (Engine::get_singleton()->is_project_manager_hint() && FileAccess::exists("/tmp/preload.zip")) {
PackedStringArray ps;
ps.push_back("/tmp/preload.zip");
os->get_main_loop()->emit_signal(SNAME("files_dropped"), ps, -1);