Add hiyaCFW updater

This commit is contained in:
YourKalamity
2020-12-17 21:22:30 +00:00
parent 0e0bf29a90
commit 689f918c6c
91 changed files with 25 additions and 4 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"python.pythonPath": "C:\\Program Files\\Python39\\python.exe"
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

22
main.py
View File

@@ -275,6 +275,24 @@ def start():
print("GodMode9i Extracted to", roms)
break
if updateHiyaCFW.get() == 1:
#Check if old hiyaCFW insallation exists
outputbox("Checking for hiyaCFW\n")
if os.path.isfile(directory+"/hiya.dsi"):
outputbox("hiyaCFW found...\n")
outputbox("Downloading latest...\n")
downloadLocation = downloadFile(getLatestGitHub("RocketRobz/hiyaCFW",0),cwdtemp)
if downloadLocation != None:
outputbox("hiyaCFW.7z downloaded\n")
os.remove(directory+"/hiya.dsi")
proc = Popen([_7za,"x","-aoa",downloadLocation, "-o"+directory,"for SDNAND SD card\hiya.dsi"])
ret_val = proc
else:
outputbox("hiya.dsi was not found\n")
outputbox("Please run the hiyaCFW helper first")
outputbox("Downloading other homebrew\n")
lineCounter = lineCounter + 1
@@ -474,7 +492,7 @@ def summonWindow2():
seperator.grid(column=0,row=5,sticky="w")
GodMode9iCheck = tkinter.Checkbutton(topFrame, text = "Download latest GodMode9i version?", variable =godmode9i, fg=foregroundColour,font=(buttonFont))
GodMode9iCheck.grid(column=0,row=6,sticky="w")
updateHiyaCheck = tkinter.Checkbutton(topFrame, text = "Update hiyaCFW? (must have run hiyaHelper once before)", variable =godmode9i, fg=foregroundColour,font=(buttonFont))
updateHiyaCheck = tkinter.Checkbutton(topFrame, text = "Update hiyaCFW? (must have run hiyaHelper once before)", variable =updateHiyaCFW, fg=foregroundColour,font=(buttonFont))
updateHiyaCheck.grid(column=0,row=7,sticky="w")
buttonExtraHomebrew = tkinter.Button(topFrame, text = "Additional homebrew...", command =lambda:[extraHomebrew(window)], fg=foregroundColour,font=(buttonFont),bg=buttonColour)
buttonExtraHomebrew.grid(column=0,row=8,sticky="w",pady=5)
@@ -578,7 +596,7 @@ homebrewDB = json.loads(requests.get('https://raw.githubusercontent.com/YourKala
homebrewList = []
for x in homebrewDB:
homebrewList.append(tkinter.IntVar())
homebrewList[0] = tkinter.IntVar(value=1)
#TKinter Vars
downloadmemorypit = tkinter.IntVar(value=1)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.