Skip to content

Commit

Permalink
Merge pull request godotengine#101446 from KoBeWi/path_ensuring_never…
Browse files Browse the repository at this point in the history
…_ends

Fix UID path remap
  • Loading branch information
akien-mga committed Jan 11, 2025
2 parents 768c60c + 9ad34ec commit 5b52b4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/io/resource_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,7 @@ String ResourceLoader::_path_remap(const String &p_path, bool *r_translation_rem
} else {
// Try file remap.
// Usually, there's no remap file and FileAccess::exists() is faster than FileAccess::open().
new_path = ResourceUID::ensure_path(new_path);
if (FileAccess::exists(new_path + ".remap")) {
Error err;
Ref<FileAccess> f = FileAccess::open(new_path + ".remap", FileAccess::READ, &err);
Expand Down

0 comments on commit 5b52b4b

Please sign in to comment.