summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-01-28 00:10:31 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-01-28 00:12:32 +0100
commit2423f75585bdb22e2d2bfc968dfb3ae3933a96d6 (patch)
tree1796ea56d3d70a11baea05be1b6f6c9c6bf3b5c6
parent096bf873bc44a942ba7d5c4e52bf089fda6fdd6b (diff)
Improve the error message displayed when the PCK file can't be found
This explains what to do if the executable was renamed, which is helpful for people exporting projects.
-rw-r--r--main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 0ff392978a..88d4dcc1fc 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -854,7 +854,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
#ifdef TOOLS_ENABLED
editor = false;
#else
- String error_msg = "Error: Could not load game data at path '" + project_path + "'. Is the .pck file missing?\n";
+ 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()->print("%s", error_msg.ascii().get_data());
OS::get_singleton()->alert(error_msg);