diff --git a/core/emulator.cpp b/core/emulator.cpp index 844c30c24..d6d1537a5 100644 --- a/core/emulator.cpp +++ b/core/emulator.cpp @@ -694,8 +694,7 @@ void loadGameSpecificSettings() if (settings.platform.isConsole()) { reios_disk_id(); - settings.content.gameId = std::string(ip_meta.product_number, sizeof(ip_meta.product_number)); - trim_trailing_ws(settings.content.gameId); + settings.content.gameId = trim_trailing_ws(std::string(ip_meta.product_number, sizeof(ip_meta.product_number))); if (settings.content.gameId.empty()) return;