You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add has_extension() method to String
This commit is contained in:
@@ -819,8 +819,7 @@ bool ResourceFormatLoaderTheora::handles_type(const String &p_type) const {
|
||||
}
|
||||
|
||||
String ResourceFormatLoaderTheora::get_resource_type(const String &p_path) const {
|
||||
String el = p_path.get_extension().to_lower();
|
||||
if (el == "ogv") {
|
||||
if (p_path.has_extension("ogv")) {
|
||||
return "VideoStreamTheora";
|
||||
}
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user