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 3644caf commit c74152bCopy full SHA for c74152b
addons/mod_loader/internal/file.gd
@@ -207,7 +207,13 @@ static func remove_file(file_path: String) -> bool:
207
208
static func file_exists(path: String) -> bool:
209
var file := File.new()
210
- return file.file_exists(path)
+ var exists := file.file_exists(path)
211
+
212
+ # If the file is not found, check if it has been remapped because it is a Resource.
213
+ if not exists:
214
+ exists = ResourceLoader.exists(path)
215
216
+ return exists
217
218
219
static func dir_exists(path: String) -> bool:
0 commit comments