Skip to content

Commit e04bcf3

Browse files
committed
Remove memory pit files
1 parent 9b4be11 commit e04bcf3

File tree

3 files changed

+10
-24
lines changed

3 files changed

+10
-24
lines changed

assets/files/memoryPit/256/pit.bin

-46.9 KB
Binary file not shown.
-46.9 KB
Binary file not shown.

main.py

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import zipfile
2020
import webbrowser
2121
import threading
22-
import hashlib
2322
import py7zr
2423

2524
pageNumber = 0
@@ -49,11 +48,6 @@ def downloadFile(link, destination):
4948
return None
5049

5150

52-
def hashcreator(filetobechecked):
53-
string = hashlib.blake2b(open(filetobechecked, 'rb').read()).hexdigest()
54-
return string
55-
56-
5751
def getLatestGitHub(usernamerepo, assetNumber):
5852
release = json.loads(
5953
requests.get(
@@ -164,7 +158,6 @@ def start():
164158
un7zipper(zipfile=TWLmenuLocation, destination=cwdtemp, files=['_nds', 'hiya', 'roms','title', 'BOOT.NDS','snemul.cfg'])
165159
outputbox("TWiLight Menu ++ Extracted\n")
166160
print("TWiLight Menu ++ Extracted to", cwdtemp)
167-
originalHash = hashcreator(cwdtemp + "BOOT.NDS")
168161
# Move TWiLight Menu
169162
shutil.copy(cwdtemp + "BOOT.NDS", directory)
170163
shutil.copy(cwdtemp + "snemul.cfg", directory)
@@ -175,10 +168,8 @@ def start():
175168

176169
shutil.rmtree(cwdtemp + "_nds/")
177170
Path(cwdtemp + "_nds/").mkdir(parents=True, exist_ok=True)
178-
comparedHash = hashcreator(directory+"/BOOT.NDS")
179-
if originalHash == comparedHash:
180-
print("TWiLight Menu ++ placed in", directory)
181-
outputbox("TWiLight Menu ++ placed on SD card\n")
171+
print("TWiLight Menu ++ placed in", directory)
172+
outputbox("TWiLight Menu ++ placed on SD card\n")
182173
# Download DeadSkullzJr's Cheat Database
183174
Path(directory + "/_nds/TWiLightMenu/extras/").mkdir(parents=True, exist_ok=True)
184175
outputbox("Downloading DeadSkullzJr's Cheat database\n")
@@ -519,19 +510,12 @@ def summonWindow5():
519510
first.grid(column=0,row=0, sticky="w")
520511
label= tkinter.Label(topFrame,text="Your SD card is now ready to run and use Homebrew on your Nintendo DSi.",font=(bodyFont),fg=foregroundColour,wraplength=450,justify="left")
521512
label.grid(column=0,row=2,sticky="w")
522-
labellink= tkinter.Label(topFrame,text="You can now eject your SD card and follow the steps of https://dsi.cfw.guide/",font=(bodyFont),fg=foregroundColour,wraplength=450,justify="left")
523-
labellink.grid(column=0,row=3,sticky="w")
524-
labellink.bind("<Button-1>", lambda e: webbrowser.open_new("https://dsi.cfw.guide/"))
525-
label= tkinter.Label(topFrame,text="Credits to",font=(bodyFont),fg=foregroundColour)
526-
label.grid(column=0,row=4,sticky="w")
527-
bulletpoints = ["YourKalamity - Creator","NightScript - Idea & Writer of dsi.cfw.guide","Emiyl - Writer of dsi.cfw.guide","SNBeast - Testing and pointing out errors","Everybody that helped create the homebrew downloaded by this app","Kaisaan - Yes"]
528-
w = 5
529-
for x in bulletpoints:
530-
label = tkinter.Label(topFrame,text=x,font=(bigListFont),fg=foregroundColour)
531-
label.grid(column=0,row=w,sticky="w")
532-
w = w + 1
513+
linktoguide = tkinter.Button(topFrame, text="Return to dsi.cfw.guide", command=lambda: webbrowser.open_new("https://dsi.cfw.guide/launching-the-exploit.html#section-iii-launching-the-exploit="),fg=foregroundColour,bg=buttonColour,font=(buttonFont),width=guidebuttonwidth)
514+
linktoguide.grid(column=0,row=3,sticky="w")
515+
label= tkinter.Label(topFrame,text="Rerunning this application will automatically update existing homebrew on the SD card",font=(bodyFont),fg=foregroundColour, wraplength=450,justify="left")
516+
label.grid(column=0,row=5,sticky="w")
533517
label= tkinter.Label(topFrame,text="Press the Close button to Exit",font=(bodyFont),fg=foregroundColour)
534-
label.grid(column=0,row=w+1,sticky="w")
518+
label.grid(column=0,row=6,sticky="w")
535519
finish = Button(bottomFrame, text="Close", width=button_width, fg=foregroundColour, bg=nextButtonColour, font=(buttonFont),command=lambda: [topFrame.destroy(), bottomFrame.destroy(), closeButtonPress(window)])
536520
finish.pack(side=tkinter.RIGHT, padx=5, pady=5)
537521
window.protocol("WM_DELETE_WINDOW",lambda:closeButtonPress(window))
@@ -558,7 +542,7 @@ def summonWindow5():
558542
facebookIcon = tkinter.IntVar(value=1)
559543
downloadtwlmenu = tkinter.IntVar(value=1)
560544
downloaddumptool = tkinter.IntVar(value=1)
561-
unlaunch = tkinter.IntVar(value=0)
545+
unlaunch = tkinter.IntVar(value=1)
562546
godmode9i = tkinter.IntVar(value=0)
563547
updateHiyaCFW = tkinter.IntVar(value=0)
564548

@@ -606,6 +590,7 @@ def summonWindow5():
606590
backButtonColour = "#f0f0f0"
607591
nextButtonColour = "#f0f0f0"
608592
button_width = 80
593+
guidebuttonwidth = 200
609594
folder_width = 350
610595
else:
611596
from tkinter import Button
@@ -615,6 +600,7 @@ def summonWindow5():
615600
backButtonColour = "#567487"
616601
nextButtonColour = "#027b76"
617602
button_width = 8
603+
guidebuttonwidth = 20
618604
folder_width = 35
619605

620606
summonWindow0()

0 commit comments

Comments
 (0)