Use the correct ID when creating game configs from the pause screen

This commit is contained in:
Henrik Rydgård committed 2025-09-04 11:34:55 +02:00
1 parent 14016f84df
commit f89c169f8a
4 files changed
+7 -3

No files matched your search

+2 -1
View File
@@ -780,7 +780,8 @@ void GamePauseScreen::CallbackDeleteConfig(bool yes) {
UI::EventReturn GamePauseScreen::OnCreateConfig(UI::EventParams &e) {
std::shared_ptr<GameInfo> info = g_gameInfoCache->GetInfo(NULL, gamePath_, GameInfoFlags::PARAM_SFO);
if (info->Ready(GameInfoFlags::PARAM_SFO)) {
std::string gameId = g_paramSFO.GetDiscID();
ParamSFOData paramSFO = info->GetParamSFO();
std::string gameId = paramSFO.GetDiscID(); // This will end up generating the fake ID properly.
g_Config.createGameConfig(gameId);
g_Config.changeGameSpecific(gameId, info->GetTitle());
g_Config.saveGameConfig(gameId, info->GetTitle());