@@ -77,6 +77,10 @@ def outputbox(message):
77
77
78
78
79
79
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
80
84
try :
81
85
directory = str (directory )
82
86
except TypeError :
@@ -174,6 +178,7 @@ def start():
174
178
originalHash = hashcreator (cwdtemp + "BOOT.NDS" )
175
179
# Move TWiLight Menu
176
180
shutil .copy (cwdtemp + "BOOT.NDS" , directory )
181
+ shutil .copy (cwdtemp + "snemul.cfg" , directory )
177
182
distutils .dir_util .copy_tree (cwdtemp + "_nds/" , directory + "/_nds/" )
178
183
distutils .dir_util .copy_tree (cwdtemp + "hiya" , directory + "/hiya/" )
179
184
distutils .dir_util .copy_tree (cwdtemp + "title" , directory + "/title/" )
@@ -228,7 +233,8 @@ def start():
228
233
print ("GodMode9i downloaded" )
229
234
outputbox ("GodMode9i Downloaded\n " )
230
235
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 )
232
238
outputbox ("GodMode9i Extracted\n " )
233
239
print ("GodMode9i Extracted to" , roms )
234
240
@@ -378,7 +384,7 @@ def summonWindow0():
378
384
]
379
385
380
386
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" )
382
388
bullet .grid (column = 0 , row = count + 3 , sticky = "w" , padx = 5 )
383
389
384
390
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