Skip to content

Commit 23a6607

Browse files
authored
Resource type path validation is inverted (#34)
1 parent e36bf26 commit 23a6607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-script/src/runtime/resource_loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl IResourceFormatLoader for RustScriptResourceLoader {
6262
return GString::new();
6363
}
6464

65-
if script_lang.validate_path(path).is_empty() {
65+
if !script_lang.validate_path(path).is_empty() {
6666
return GString::new();
6767
}
6868

0 commit comments

Comments
 (0)