We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcb1f4d commit b18acd9Copy full SHA for b18acd9
addons/mod_loader/internal/file.gd
@@ -196,7 +196,13 @@ static func file_exists(path: String, zip_path: String = "") -> bool:
196
if not zip_path.is_empty():
197
return file_exists_in_zip(path, zip_path)
198
199
- return FileAccess.file_exists(path)
+ var exists := FileAccess.file_exists(path)
200
+
201
+ # If the file is not found, check if it has been remapped because it is a Resource.
202
+ if not exists:
203
+ exists = ResourceLoader.exists(path)
204
205
+ return exists
206
207
208
static func dir_exists(path: String) -> bool:
0 commit comments