mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-24 11:02:16 -05:00
StripSpaces: only strip spaces
StripWhitespace maintains old behavior
This commit is contained in:
@@ -43,9 +43,9 @@ static Map LoadMap(const std::string& file_path)
|
||||
if (equals_index != std::string::npos)
|
||||
{
|
||||
const std::string_view line_view(line);
|
||||
const std::string_view game_id = StripSpaces(line_view.substr(0, equals_index));
|
||||
const std::string_view game_id = StripWhitespace(line_view.substr(0, equals_index));
|
||||
if (game_id.length() >= 4)
|
||||
map.emplace(game_id, StripSpaces(line_view.substr(equals_index + 1)));
|
||||
map.emplace(game_id, StripWhitespace(line_view.substr(equals_index + 1)));
|
||||
}
|
||||
}
|
||||
return map;
|
||||
|
||||
Reference in New Issue
Block a user