Skip to content

Commit 0dbdff9

Browse files
committed
Fix GodMode9i extaction
1 parent 411b5c2 commit 0dbdff9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: main.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ def outputbox(message):
7777

7878

7979
def validateDirectory(directory):
80+
if directory == "":
81+
outputbox("That's not a valid directory \n")
82+
outputbox("Press the Back button to change the folder\n")
83+
return False
8084
try:
8185
directory = str(directory)
8286
except TypeError:
@@ -174,6 +178,7 @@ def start():
174178
originalHash = hashcreator(cwdtemp + "BOOT.NDS")
175179
# Move TWiLight Menu
176180
shutil.copy(cwdtemp + "BOOT.NDS", directory)
181+
shutil.copy(cwdtemp + "snemul.cfg", directory)
177182
distutils.dir_util.copy_tree(cwdtemp + "_nds/", directory + "/_nds/")
178183
distutils.dir_util.copy_tree(cwdtemp + "hiya", directory + "/hiya/")
179184
distutils.dir_util.copy_tree(cwdtemp + "title", directory + "/title/")
@@ -228,7 +233,8 @@ def start():
228233
print("GodMode9i downloaded")
229234
outputbox("GodMode9i Downloaded\n")
230235
lineCounter = lineCounter + 1
231-
un7zipper(zipfile=downloadLocation, destination=roms, files=['GodMode9i.nds'])
236+
un7zipper(zipfile=downloadLocation, destination=cwdtemp, files=['GodMode9i/GodMode9i.nds'])
237+
shutil.copy(cwdtemp + "GodMode9i/GodMode9i.nds", roms)
232238
outputbox("GodMode9i Extracted\n")
233239
print("GodMode9i Extracted to", roms)
234240

@@ -378,7 +384,7 @@ def summonWindow0():
378384
]
379385

380386
for count, x in enumerate(bulletpoints):
381-
bullet = tkinter.Label(topFrame, text="• "+x, font=(paragraphFont), fg=foregroundColour, wraplength=500, justify="left")
387+
bullet = tkinter.Label(topFrame, text="• "+x, font=(paragraphFont), fg=foregroundColour, wrap=tkinter.WORD, justify="left")
382388
bullet.grid(column=0, row=count+3, sticky="w", padx=5)
383389

384390
discordButton = Button(bottomFrame, text="DS⁽ⁱ⁾ Mode Hacking Discord server", fg=foregroundColour, bg=buttonColour, font=(buttonFont), command=lambda: webbrowser.open("https://discord.gg/yD3spjv", new=1))

0 commit comments

Comments
 (0)