Fix per-game configs, thanks Verymelon

This commit is contained in:
Henrik Rydgård 2024-01-29 18:59:15 +01:00
parent 1faef374a9
commit bf8a1684d1

View file

@ -476,7 +476,6 @@ public:
if (flags_ & GameInfoFlags::FILE_TYPE) {
info_->fileType = Identify_File(info_->GetFileLoader().get(), &errorString);
info_->hasConfig = g_Config.hasGameConfig(info_->id);
}
switch (info_->fileType) {
@ -765,6 +764,11 @@ handleELF:
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();