mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Misc. Container Find Changes
This commit is contained in:
parent
9fa4eb9aab
commit
de1c47a701
2 changed files with 2 additions and 2 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue