Skip to content
Permalink
Browse files

Merge pull request #8307 from JosJuice/fix-titledatabase

Fix TitleDatabase
  • Loading branch information...
stenzek committed Aug 10, 2019
2 parents 7e49a34 + 9cc719d commit dd8bc7b3e60642129c955f4f03f498d90ecb2c14
Showing with 3 additions and 2 deletions.
  1. +3 −2 Source/Core/Core/TitleDatabase.cpp
@@ -41,9 +41,10 @@ static Map LoadMap(const std::string& file_path)
const size_t equals_index = line.find('=');
if (equals_index != std::string::npos)
{
const std::string_view game_id = StripSpaces(line.substr(0, equals_index));
const std::string_view line_view(line);
const std::string_view game_id = StripSpaces(line_view.substr(0, equals_index));
if (game_id.length() >= 4)
map.emplace(game_id, StripSpaces(line.substr(equals_index + 1)));
map.emplace(game_id, StripSpaces(line_view.substr(equals_index + 1)));
}
}
return map;

0 comments on commit dd8bc7b

Please sign in to comment.
You can’t perform that action at this time.