always generate DLC.txt

This commit is contained in:
otavepto 2023-12-31 19:18:57 +02:00
parent 8fa92eef93
commit 61ae6711f8

View File

@ -740,8 +740,10 @@ def main():
dlc_config_list.append((dlc, dlc_name)) dlc_config_list.append((dlc, dlc_name))
if dlc_config_list: # 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: 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: for x in dlc_config_list:
f.write(f"{x[0]}={x[1]}\n") f.write(f"{x[0]}={x[1]}\n")