Ver código fonte

Merge pull request #44035 from bruvzg/macos_dot_project

Fix .pck lookup for extensionless binary in macOS resources.
Rémi Verschelde 4 anos atrás
pai
commit
de5a956ea1
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      core/config/project_settings.cpp

+ 1 - 1
core/config/project_settings.cpp

@@ -402,7 +402,7 @@ Error ProjectSettings::_setup(const String &p_path, const String &p_main_pack, b
 #ifdef OSX_ENABLED
 #ifdef OSX_ENABLED
 		if (!found) {
 		if (!found) {
 			// Attempt to load PCK from macOS .app bundle resources.
 			// 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
 #endif