mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
Misc. Container Find Changes
This commit is contained in:
@ -102,7 +102,7 @@ protected:
|
||||
|
||||
for (auto remove_prefix : {"BTN_", "KEY_"})
|
||||
{
|
||||
if (name.find(remove_prefix) == 0)
|
||||
if (name.starts_with(remove_prefix))
|
||||
return std::string(name.substr(std::strlen(remove_prefix)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user