Fix .pck lookup for extensionless binary in macOS resources.

(cherry picked from commit 7be8759991)
This commit is contained in:
bruvzg 2020-12-02 11:04:44 +02:00 committed by Rémi Verschelde
parent df047e56fe
commit cc86b11858
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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