mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
always generate DLC.txt
This commit is contained in:
parent
8fa92eef93
commit
61ae6711f8
@ -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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user