mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 00:48:09 +01:00
Added a way for platforms to define a custom resource pack location.
This commit is contained in:
parent
7da17bca02
commit
fa2a54a019
@ -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.
|
||||
|
@ -687,6 +687,8 @@ public:
|
||||
|
||||
virtual void process_and_drop_events() {}
|
||||
|
||||
virtual String get_custom_platform_resource_pack_location() { return String(); }
|
||||
|
||||
OS();
|
||||
virtual ~OS();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user