You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
This commit is contained in:
@@ -2927,7 +2927,7 @@ bool ResourceFormatLoaderCSharpScript::handles_type(const String &p_type) const
|
||||
}
|
||||
|
||||
String ResourceFormatLoaderCSharpScript::get_resource_type(const String &p_path) const {
|
||||
return p_path.get_extension().to_lower() == "cs" ? CSharpLanguage::get_singleton()->get_type() : "";
|
||||
return p_path.has_extension("cs") ? CSharpLanguage::get_singleton()->get_type() : "";
|
||||
}
|
||||
|
||||
Error ResourceFormatSaverCSharpScript::save(const Ref<Resource> &p_resource, const String &p_path, uint32_t p_flags) {
|
||||
|
||||
Reference in New Issue
Block a user