From f1144f0774265647e51fe6d56010c9328a512a32 Mon Sep 17 00:00:00 2001 From: Hanno Date: Mon, 29 Mar 2021 19:50:06 +0200 Subject: [PATCH] Fix erroneous caching --- source/playlunky/mod/mod_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/playlunky/mod/mod_manager.cpp b/source/playlunky/mod/mod_manager.cpp index 77bbea9..851ea10 100644 --- a/source/playlunky/mod/mod_manager.cpp +++ b/source/playlunky/mod/mod_manager.cpp @@ -43,7 +43,8 @@ ModManager::ModManager(std::string_view mods_root, const PlaylunkySettings& sett LogInfo("Scanning for mods..."); const bool enable_loose_audio_files = settings.GetBool("settings", "enable_loose_audio_files", true); - const bool cache_decoded_audio_files = enable_loose_audio_files && settings.GetBool("settings", "cache_decoded_audio_files", true); + const bool cache_decoded_audio_files = enable_loose_audio_files + && (settings.GetBool("settings", "cache_decoded_audio_files", false) || settings.GetBool("audio_settings", "cache_decoded_audio_files", false)); bool load_order_updated{ false }; const fs::path mods_root_path{ mods_root };