Browse Source

Fix .pck lookup for extensionless binary in macOS resources.

(cherry picked from commit 7be8759991469e75c304cd209ee3fdf1a940d84d)
bruvzg 4 years ago
parent
commit
cc86b11858
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/project_settings.cpp

+ 1 - 1
core/project_settings.cpp

@@ -380,7 +380,7 @@ Error ProjectSettings::_setup(const String &p_path, const String &p_main_pack, b
 #ifdef OSX_ENABLED
 		if (!found) {
 			// Attempt to load PCK from macOS .app bundle resources.
-			found = _load_resource_pack(OS::get_singleton()->get_bundle_resource_dir().plus_file(exec_basename + ".pck"));
+			found = _load_resource_pack(OS::get_singleton()->get_bundle_resource_dir().plus_file(exec_basename + ".pck")) || _load_resource_pack(OS::get_singleton()->get_bundle_resource_dir().plus_file(exec_filename + ".pck"));
 		}
 #endif