Skip to content

Commit

Permalink
os.makedirs() added
Browse files Browse the repository at this point in the history
  • Loading branch information
noirscape committed Nov 30, 2018
1 parent e28da72 commit 7f94b54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion switchguideupdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from enum import Enum

BASE_URL = 'http://amsupdater.catgirlsin.space/json/'
VERSION = '1.2.0'
VERSION = '1.2.1'

class WindowState(Enum):
MAIN_MENU = 0
Expand All @@ -32,8 +32,11 @@ def download_file(remote_name, local_path):
def update_atmosphere():
download_file(BASE_URL + 'fusee-primary.bin', '/fusee-primary.bin')
download_file(BASE_URL + 'fusee-secondary.bin', '/fusee-secondary.bin')
os.makedirs('/atmosphere/titles/0100000000000032/', exist_ok=True)
download_file(BASE_URL + 'atmosphere/titles/0100000000000032/exefs.nsp', '/atmosphere/titles/0100000000000032/exefs.nsp')
os.makedirs('/atmosphere/titles/0100000000000034/', exist_ok=True)
download_file(BASE_URL + 'atmosphere/titles/0100000000000034/exefs.nsp', '/atmosphere/titles/0100000000000034/exefs.nsp')
os.makedirs('/atmosphere/titles/0100000000000036/', exist_ok=True)
download_file(BASE_URL + 'atmosphere/titles/0100000000000036/exefs.nsp', '/atmosphere/titles/0100000000000036/exefs.nsp')

def update_hekate():
Expand Down

0 comments on commit 7f94b54

Please sign in to comment.