mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix per-game configs, thanks Verymelon
This commit is contained in:
parent
1faef374a9
commit
bf8a1684d1
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue