Skip to content

Commit

Permalink
Fix per-game configs, thanks Verymelon
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 29, 2024
1 parent 1faef37 commit bf8a168
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion UI/GameInfoCache.cpp
Expand Up @@ -476,7 +476,6 @@ class GameInfoWorkItem : public Task {

if (flags_ & GameInfoFlags::FILE_TYPE) {
info_->fileType = Identify_File(info_->GetFileLoader().get(), &errorString);
info_->hasConfig = g_Config.hasGameConfig(info_->id);
}

switch (info_->fileType) {
Expand Down Expand Up @@ -765,6 +764,11 @@ class GameInfoWorkItem : public Task {
break;
}

if (flags_ & GameInfoFlags::PARAM_SFO) {
// We fetch the hasConfig together with the params, since that's what fills out the id.
info_->hasConfig = g_Config.hasGameConfig(info_->id);
}

if (flags_ & GameInfoFlags::SIZE) {
std::lock_guard<std::mutex> lock(info_->lock);
info_->gameSizeOnDisk = info_->GetGameSizeOnDiskInBytes();
Expand Down

0 comments on commit bf8a168

Please sign in to comment.