From 61ae6711f8541f8087fbf010f432ad17440f7a25 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sun, 31 Dec 2023 19:18:57 +0200 Subject: [PATCH] always generate DLC.txt --- tools/generate_emu_config/generate_emu_config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/generate_emu_config/generate_emu_config.py b/tools/generate_emu_config/generate_emu_config.py index 65ad19a0..b8b3cd8a 100644 --- a/tools/generate_emu_config/generate_emu_config.py +++ b/tools/generate_emu_config/generate_emu_config.py @@ -740,8 +740,10 @@ def main(): dlc_config_list.append((dlc, dlc_name)) - if dlc_config_list: - with open(os.path.join(emu_settings_dir, "DLC.txt"), 'wt', encoding="utf-8") as f: + # we create the DLC fle nonetheless, empty file makes the emu lock DLCs, otherwise everything is allowed + # some games use that as a detection mechanism + with open(os.path.join(emu_settings_dir, "DLC.txt"), 'wt', encoding="utf-8") as f: + if dlc_config_list: for x in dlc_config_list: f.write(f"{x[0]}={x[1]}\n")