mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
Allow running standalone scripts in non-editor builds.
This commit is contained in:
parent
20ec9e2043
commit
00a199ab21
@ -1054,11 +1054,13 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
editor = false;
|
editor = false;
|
||||||
#else
|
#else
|
||||||
const String error_msg = "Error: Couldn't load project data at path \"" + project_path + "\". Is the .pck file missing?\nIf you've renamed the executable, the associated .pck file should also be renamed to match the executable's name (without the extension).\n";
|
if (script.empty()) {
|
||||||
OS::get_singleton()->print("%s", error_msg.utf8().get_data());
|
const String error_msg = "Error: Couldn't load project data at path \"" + project_path + "\". Is the .pck file missing?\nIf you've renamed the executable, the associated .pck file should also be renamed to match the executable's name (without the extension).\n";
|
||||||
OS::get_singleton()->alert(error_msg);
|
OS::get_singleton()->print("%s", error_msg.utf8().get_data());
|
||||||
|
OS::get_singleton()->alert(error_msg);
|
||||||
|
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user