revert the changes to Steam_Apps::BIsAppInstalled(), not it will return true for owned DLCs

This commit is contained in:
otavepto 2024-04-20 19:30:29 +02:00
parent 2bde7e4eba
commit d8f9741459
2 changed files with 4 additions and 5 deletions

View File

@ -26,6 +26,7 @@
* **[breaking]** removed the setting `disable_account_avatar` in favor of the new one `enable_account_avatar`, this feature is now disabled by default * **[breaking]** removed the setting `disable_account_avatar` in favor of the new one `enable_account_avatar`, this feature is now disabled by default
* new option `add_steam_preowned_ids` in `configs.main.ini` which allows adding a lot of Steam builtin and preowned IDs to the DLC list, and the emu's list of installed apps * new option `add_steam_preowned_ids` in `configs.main.ini` which allows adding a lot of Steam builtin and preowned IDs to the DLC list, and the emu's list of installed apps
* added a workaround for Steam Input, set `disable_steamoverlaygameid_env_var=1` inside `configs.main.ini`, might not work though * added a workaround for Steam Input, set `disable_steamoverlaygameid_env_var=1` inside `configs.main.ini`, might not work though
* reverted the changes to `Steam_Apps::BIsAppInstalled()`, now it will return true when the given app id is found in the DLC list, this function is also controlled via `installed_app_ids.txt`
* removed the limit on the amount of characters for local saves * removed the limit on the amount of characters for local saves
* allow specifying absolute paths for local saves * allow specifying absolute paths for local saves
* removed the warning for using `force_xxx.txt` files from the overlay, since it's no longer relevant, also removed the code which disables the user input when this warning was displayed * removed the warning for using `force_xxx.txt` files from the overlay, since it's no longer relevant, also removed the code which disables the user input when this warning was displayed

View File

@ -325,11 +325,9 @@ bool Steam_Apps::BIsAppInstalled( AppId_t appID )
if (appID == UINT32_MAX) return false; if (appID == UINT32_MAX) return false;
if (appID == settings->get_local_game_id().AppID()) return true; if (appID == settings->get_local_game_id().AppID()) return true;
// only check for DLC if the the list is limited/bounded, // TODO is this correct?
// calling hasDLC() when unlockAllDLCs is true will always satisfy the below condition // the docs say that this function won't work on DLCs, but HITMAN 3 uses it on every DLC
if (!settings->allDLCUnlocked() && settings->hasDLC(appID)) { if (settings->hasDLC(appID)) return true;
return false;
}
return settings->appIsInstalled(appID); return settings->appIsInstalled(appID);
} }