Skip to content

Commit

Permalink
Fixing add sms to MegaDrive folder
Browse files Browse the repository at this point in the history
  • Loading branch information
theypsilon authored Sep 11, 2023
1 parent f4d5ce2 commit fbd7c85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/download_cheats.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def install_cheats(target_dir):

for cheat_key, cheat_platform in cheats_mapping.items():
cheat_zip = next(cheat_zip for cheat_zip in cheat_zips if cheat_key in cheat_zip)
install_cheats_platform(cheat_key, cheat_platform, page_url, cheat_zip)
install_cheats_platform(target_dir, cheat_key, cheat_platform, page_url, cheat_zip)
if cheat_key == 'sms':
install_cheats_platform(cheat_key, 'MegaDrive', page_url, cheat_zip)
install_cheats_platform(target_dir, cheat_key, 'MegaDrive', page_url, cheat_zip)

def install_cheats_platform(cheat_key, cheat_platform, page_url, cheat_zip):
def install_cheats_platform(target_dir, cheat_key, cheat_platform, page_url, cheat_zip):
cheat_url = f'{page_url}/{cheat_zip}?script=fetchcheats'
tmp_zip = f'/tmp/{cheat_key}{cheat_platform}.zip'
cheat_folder = f'{target_dir}/Cheats/{cheat_platform}'
Expand Down

0 comments on commit fbd7c85

Please sign in to comment.