You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
@@ -384,7 +384,7 @@ void EditorFileSystem::_scan_filesystem() {
|
||||
|
||||
FileCache fc;
|
||||
fc.type = split[1];
|
||||
if (fc.type.contains("/")) {
|
||||
if (fc.type.contains_char('/')) {
|
||||
fc.type = split[1].get_slice("/", 0);
|
||||
fc.resource_script_class = split[1].get_slice("/", 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user