mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 13:49:54 +00:00
Ensure paths in autoload info
This commit is contained in:
parent
235a32ad11
commit
dce2518dc1
3 changed files with 9 additions and 1 deletions
|
|
@ -1487,6 +1487,12 @@ ProjectSettings::AutoloadInfo ProjectSettings::get_autoload(const StringName &p_
|
|||
return autoloads[p_name];
|
||||
}
|
||||
|
||||
void ProjectSettings::fix_autoload_paths() {
|
||||
for (KeyValue<StringName, AutoloadInfo> &kv : autoloads) {
|
||||
kv.value.path = ResourceUID::ensure_path(kv.value.path);
|
||||
}
|
||||
}
|
||||
|
||||
const HashMap<StringName, String> &ProjectSettings::get_global_groups_list() const {
|
||||
return global_groups;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ public:
|
|||
void remove_autoload(const StringName &p_autoload);
|
||||
bool has_autoload(const StringName &p_autoload) const;
|
||||
AutoloadInfo get_autoload(const StringName &p_name) const;
|
||||
void fix_autoload_paths();
|
||||
|
||||
const HashMap<StringName, String> &get_global_groups_list() const;
|
||||
void add_global_group(const StringName &p_name, const String &p_description);
|
||||
|
|
|
|||
|
|
@ -2188,7 +2188,8 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
initialize_modules(MODULE_INITIALIZATION_LEVEL_CORE);
|
||||
register_core_extensions(); // core extensions must be registered after globals setup and before display
|
||||
|
||||
ResourceUID::get_singleton()->load_from_cache(true); // load UUIDs from cache.
|
||||
ResourceUID::get_singleton()->load_from_cache(true); // Load UUIDs from cache.
|
||||
ProjectSettings::get_singleton()->fix_autoload_paths(); // Handles autoloads saved as UID.
|
||||
|
||||
if (ProjectSettings::get_singleton()->has_custom_feature("dedicated_server")) {
|
||||
audio_driver = NULL_AUDIO_DRIVER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue