summaryrefslogtreecommitdiff
path: root/main/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.cpp')
-rw-r--r--main/main.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 1efe3ccd94..7cbafe37a3 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -182,13 +182,6 @@ bool profile_gpu = false;
/* Helper methods */
-// Used by Mono module, should likely be registered in Engine singleton instead
-// FIXME: This is also not 100% accurate, `project_manager` is only true when it was requested,
-// but not if e.g. we fail to load and project and fallback to the manager.
-bool Main::is_project_manager() {
- return project_manager;
-}
-
bool Main::is_cmdline_tool() {
return cmdline_tool;
}
@@ -934,7 +927,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
editor = true;
} else if (I->get() == "-p" || I->get() == "--project-manager") { // starts project manager
-
project_manager = true;
} else if (I->get() == "--debug-server") {
if (I->next()) {
@@ -1220,6 +1212,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
// If we didn't find a project, we fall back to the project manager.
project_manager = !found_project && !cmdline_tool;
}
+
+ if (project_manager) {
+ Engine::get_singleton()->set_project_manager_hint(true);
+ }
#endif
GLOBAL_DEF("debug/file_logging/enable_file_logging", false);