game id of console games wasn't trimmed

regression introduced by ee84567c17
This commit is contained in:
Flyinghead 2023-01-31 12:58:43 +01:00
parent 02a002d55b
commit 5875eda4d0
1 changed files with 1 additions and 2 deletions

View File

@ -694,8 +694,7 @@ void loadGameSpecificSettings()
if (settings.platform.isConsole()) if (settings.platform.isConsole())
{ {
reios_disk_id(); reios_disk_id();
settings.content.gameId = std::string(ip_meta.product_number, sizeof(ip_meta.product_number)); settings.content.gameId = trim_trailing_ws(std::string(ip_meta.product_number, sizeof(ip_meta.product_number)));
trim_trailing_ws(settings.content.gameId);
if (settings.content.gameId.empty()) if (settings.content.gameId.empty())
return; return;