mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
This commit is contained in:
commit
ae9732139a
29 changed files with 46 additions and 48 deletions
|
|
@ -45,7 +45,7 @@ void MovieWriterPNGWAV::get_supported_extensions(List<String> *r_extensions) con
|
|||
}
|
||||
|
||||
bool MovieWriterPNGWAV::handles_file(const String &p_path) const {
|
||||
return p_path.get_extension().to_lower() == "png";
|
||||
return p_path.has_extension("png");
|
||||
}
|
||||
|
||||
String MovieWriterPNGWAV::zeros_str(uint32_t p_index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue