mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Fix per-game configs, thanks Verymelon
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user