From 7be8759991469e75c304cd209ee3fdf1a940d84d Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 2 Dec 2020 11:04:44 +0200 Subject: [PATCH] Fix .pck lookup for extensionless binary in macOS resources. --- core/config/project_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index 8b8aff3e9e5..f939fca9842 100644 --- a/core/config/project_settings.cpp +++ b/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 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