Merge pull request #109433 from KoBeWi/hastension

Add `has_extension()` method to String
This commit is contained in:
Thaddeus Crews 2025-10-31 09:23:30 -05:00
commit ae9732139a
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
29 changed files with 46 additions and 48 deletions

View file

@ -101,7 +101,7 @@ AudioServer::SpeakerMode MovieWriterOGV::get_audio_speaker_mode() const {
}
bool MovieWriterOGV::handles_file(const String &p_path) const {
return p_path.get_extension().to_lower() == "ogv";
return p_path.has_extension("ogv");
}
void MovieWriterOGV::get_supported_extensions(List<String> *r_extensions) const {