Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Update 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Luckyluka17 committed Jun 22, 2023
1 parent 7d15980 commit 6d51b2f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ src/update_game_list.py
YuzuCheatsManager/
src/bot/
.env
build_config.json
4 changes: 2 additions & 2 deletions appinfo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"latest-version": 1.8,
"latest-version": 1.9,
"dev-latest": null,
"beta-latest": null,
"informations": "Information importante : YuzuCheatsManager ne sera plus mis à jour (sauf cas exceptionnel) et sera remplacé par EmuKit. Pour plus d'informations, veuillez consulter le dépôt GithUB"
"informations": "Information importante : YuzuCheatsManager ne sera plus mis à jour (sauf cas exceptionnel) et sera remplacé par EmuKit."
}
14 changes: 14 additions & 0 deletions docs/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ <h2>Téléchargements</h2>
</div>
</div>
<br/><br/>
<div class="cards-container">
<!-- 1.9 -->
<div class="maj-cards">
<div class="container">
<a href="https://github.com/Luckyluka17/YuzuCheatsManager/releases/download/1.9/YuzuCheatsManager.exe"><h5>Version 1.9</h5></a> <code>22/06/2023</code>
<ul>
<li>Patch du problème de dépôt Github (vous pouvez désormais réinstaller des cheats)</li>
<li>Affichage des jeux detectés dans la console de développeur</li>
<li>Changement du code de l'updater (suppression du fichier de paramètres pour éviter tout conflit)</li>
</ul>
</div>
</div>
</div>
<br/>
<div class="cards-container">
<!-- 1.8 -->
<div class="maj-cards">
Expand Down
15 changes: 9 additions & 6 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
start_time = time.time()

# Version actuelle du logiciel
version = 1.8
version = 1.9


# Téléchargement des fichiers requis (fichiers temporaires)
Expand Down Expand Up @@ -95,7 +95,7 @@
"cheats_names": {},
"dev_mode": False,
"servers": {
"Switch Cheats": "https://github.com/ibnux/switch-cheat/tree/master/sxos/titles/"
"Switch Cheats": "https://github.com/ibnux/switch-cheat/tree/master/atmosphere/titles/"
},
"actual_server": 1,
}
Expand All @@ -111,7 +111,7 @@
dev_mode = tk.BooleanVar()
toggle_provider = tk.IntVar()

def update():
def update_ycm():
launch_window.destroy()
wget.download("https://raw.githubusercontent.com/Luckyluka17/YuzuCheatsManager/main/src/updater.bat", "updater.bat")
os.startfile("updater.bat")
Expand Down Expand Up @@ -208,7 +208,7 @@ def update():


# Vérification et mise en place des serveurs customs
if not settings["servers"].get("Switch Cheats") == "https://github.com/ibnux/switch-cheat/tree/master/sxos/titles/":
if not settings["servers"].get("Switch Cheats") == "https://github.com/ibnux/switch-cheat/tree/master/atmosphere/titles/":
showerror("Erreur", "Une erreur est survenue lors de la vérification des serveurs. Vérifiez votre fichier des paramètres.")
sys.exit()
else:
Expand All @@ -220,7 +220,7 @@ def update():
data_app = json.loads(r.text)

if data_app["latest-version"] > version and verify_updates.get() == True:
update()
update_ycm()

if data_app["informations"] != "":
window.withdraw()
Expand Down Expand Up @@ -275,6 +275,7 @@ def update():
if game in games_data:
games[games.index(game)] = games_data[game].replace("™", "").replace("+", "avec").upper()
games_list[games_data[game].replace("™", "").replace("+", "avec").upper()] = game
print("Jeu trouvé : " + game)

print(games_list)
except:
Expand Down Expand Up @@ -598,7 +599,7 @@ def change_yuzu_folder():
plugins_menu.add_separator()
plugins_menu.add_command(label=data_language["head_menu"]["plugins_menu"]["1"], command=lambda: web.open("https://www.yuzucheatsmanager.tk/plugins.html#"))
# Menu YuzuCheatsManager
ycm_menu.add_command(label=data_language["head_menu"]["ycm_menu"]["1"], command=update)
ycm_menu.add_command(label=data_language["head_menu"]["ycm_menu"]["1"], command=update_ycm)
ycm_menu.add_command(label=data_language["head_menu"]["ycm_menu"]["3"], state="disabled")
# Menu Aide
help_menu.add_command(label=data_language["head_menu"]["help_menu"]["2"], command=lambda: web.open("https://discord.gg/KvjkS3P3Gh"))
Expand All @@ -617,6 +618,8 @@ def change_yuzu_folder():
if '' in games:
games.remove('')

games.sort()

ttk.Label(
window,
text=" ",
Expand Down
1 change: 1 addition & 0 deletions src/updater.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title Gestion des mises à jours
echo Patientez, YuzuCheatsManager effectue une mise à jour...
echo Ne fermez pas cette fenêtre !
del /f /q YuzuCheatsManager.exe
del /f /q settings.json
powershell Invoke-WebRequest https://github.com/Luckyluka17/YuzuCheatsManager/releases/latest/download/YuzuCheatsManager.exe -o YuzuCheatsManager.exe
start YuzuCheatsManager.exe
exit

0 comments on commit 6d51b2f

Please sign in to comment.