Merge pull request #23035 from voithos/missingpck

Show an alert when a project is not found in release mode
This commit is contained in:
Max Hilbrunner 2018-10-19 11:44:40 +02:00 committed by GitHub
commit a3072aa35e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -729,7 +729,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
#ifdef TOOLS_ENABLED
editor = false;
#else
OS::get_singleton()->print("Error: Could not load game path '%s'.\n", project_path.ascii().get_data());
String error_msg = "Error: Could not load game data at path '" + project_path + "'. Is the .pck file missing?\n";
OS::get_singleton()->print(error_msg.ascii().get_data());
OS::get_singleton()->alert(error_msg);
goto error;
#endif