Misc: Remove StringUtil::{Starts,Ends}With, use C++20

This commit is contained in:
Stenzek
2023-12-13 21:15:07 +10:00
parent 79c226efff
commit 710698f7e1
11 changed files with 37 additions and 48 deletions

View File

@ -775,7 +775,7 @@ bool MemoryCardImage::ImportSave(DataArray* data, const char* filename)
return false;
}
if (StringUtil::EndsWith(filename, ".mcs"))
if (std::string_view(filename).ends_with(".mcs"))
{
return ImportSaveWithDirectoryFrame(data, filename, sd);
}