mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-27 10:29:07 +00:00
Modernize std::replace with ranges
This commit is contained in:
parent
72436a0d1f
commit
0a80243a92
5 changed files with 6 additions and 6 deletions
|
|
@ -265,7 +265,7 @@ struct SetGameMetadata
|
|||
std::string executable_path = executable.path;
|
||||
constexpr char BACKSLASH = '\\';
|
||||
constexpr char FORWARDSLASH = '/';
|
||||
std::replace(executable_path.begin(), executable_path.end(), BACKSLASH, FORWARDSLASH);
|
||||
std::ranges::replace(executable_path, BACKSLASH, FORWARDSLASH);
|
||||
config->SetRunningGameMetadata(SConfig::MakeGameID(PathToFileName(executable_path)));
|
||||
|
||||
Host_TitleChanged();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue