mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-15 11:15:47 -04:00
Path: Unicode handling and tests for SanitizeFileName
This commit is contained in:
@ -703,9 +703,7 @@ std::optional<DiscRegion> System::GetRegionForPath(const char* image_path)
|
||||
|
||||
std::string System::GetGameSettingsPath(const std::string_view& game_serial)
|
||||
{
|
||||
std::string sanitized_serial(game_serial);
|
||||
Path::SanitizeFileName(sanitized_serial);
|
||||
|
||||
const std::string sanitized_serial(Path::SanitizeFileName(game_serial));
|
||||
return Path::Combine(EmuFolders::GameSettings, fmt::format("{}.ini", sanitized_serial));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user