diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index cc93dd540..09ed90b1c 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -399,6 +399,14 @@ Error ProjectSettings::_setup(const String &p_path, const String &p_main_pack, b } #endif + if (!found) { + String crl = OS::get_singleton()->get_custom_platform_resource_pack_location(); + + if (!crl.empty()) { + found = _load_resource_pack(crl); + } + } + if (!found) { // Try to load data pack at the location of the executable. // As mentioned above, we have two potential names to attempt. diff --git a/core/os/os.h b/core/os/os.h index e3f9967e5..2e9078d5e 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -687,6 +687,8 @@ public: virtual void process_and_drop_events() {} + virtual String get_custom_platform_resource_pack_location() { return String(); } + OS(); virtual ~OS(); };