Fix a rare UI race condition (if 'region' changed on a background thread)

This commit is contained in:
Henrik Rydgård committed 2025-04-02 17:27:46 +02:00
1 parent 651a972019
commit bc3d4fe477
5 files changed
+15 -13

No files matched your search

+2 -2
View File
@@ -578,7 +578,7 @@ public:
&& info_->fileType == IdentifiedFileType::PSP_PBP_DIRECTORY) {
info_->id = g_paramSFO.GenerateFakeID(gamePath_);
info_->id_version = info_->id + "_1.00";
info_->region = GAMEREGION_MAX + 1; // Homebrew
info_->region = GAMEREGION_COUNT + 1; // Homebrew
}
info_->MarkReadyNoLock(GameInfoFlags::PARAM_SFO);
}
@@ -641,7 +641,7 @@ handleELF:
if (flags_ & GameInfoFlags::PARAM_SFO) {
info_->id = g_paramSFO.GenerateFakeID(gamePath_);
info_->id_version = info_->id + "_1.00";
info_->region = GAMEREGION_MAX + 1; // Homebrew
info_->region = GAMEREGION_COUNT + 1; // Homebrew
}
if (flags_ & GameInfoFlags::ICON) {