diff options
-rw-r--r-- | main/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 0b231b9d30..87a0e953b0 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -744,6 +744,15 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph goto error; #endif + } else if (String(GLOBAL_DEF("application/run/main_scene", "")) == "") { +#ifdef TOOLS_ENABLED + if (!editor) { +#endif + OS::get_singleton()->print("Error: Can't run project: no main scene defined.\n"); + goto error; +#ifdef TOOLS_ENABLED + } +#endif } GLOBAL_DEF("logging/file_logging/enable_file_logging", false); |