Compare commits

...

1 Commits

Author SHA1 Message Date
skymike03
14aa7a1c12 ## v2.6.4.1 (2026.05.01)
- fix find_local_custom_sources_zip to only check for games.zip to avoid using support zip as sources
- fix ps3dec command for older powershell

Co-authored-by: Copilot <copilot@github.com>
2026-05-01 23:14:31 +02:00
4 changed files with 6 additions and 24 deletions

View File

@@ -27,7 +27,7 @@ except Exception:
pygame = None # type: ignore
# Version actuelle de l'application
app_version = "2.6.4.0"
app_version = "2.6.4.1"
# Nombre de jours avant de proposer la mise à jour de la liste des jeux
GAMELIST_UPDATE_DAYS = 1

View File

@@ -343,33 +343,15 @@ def get_sources_zip_url(fallback_url):
def find_local_custom_sources_zip():
"""Recherche un fichier ZIP local à la racine de SAVE_FOLDER pour le mode custom.
Priorité sur quelques noms courants afin d'éviter toute ambiguïté.
Ne prend en compte QUE games.zip.
Retourne le chemin absolu du ZIP si trouvé, sinon None.
"""
try:
from config import SAVE_FOLDER
candidates = [
"games.zip",
"custom_sources.zip",
"rgsx_custom_sources.zip",
"data.zip",
]
if not os.path.isdir(SAVE_FOLDER):
return None
for name in candidates:
p = os.path.join(SAVE_FOLDER, name)
if os.path.isfile(p):
return p
# Option avancée: prendre le plus récent *.zip si aucun nom connu trouvé
try:
zips = [os.path.join(SAVE_FOLDER, f) for f in os.listdir(SAVE_FOLDER) if f.lower().endswith('.zip')]
zips = [z for z in zips if os.path.isfile(z)]
if zips:
newest = max(zips, key=lambda z: os.path.getmtime(z))
return newest
except Exception:
pass
return None
games_zip = os.path.join(SAVE_FOLDER, "games.zip")
return games_zip if os.path.isfile(games_zip) else None
except Exception as e:
logger.debug(f"find_local_custom_sources_zip error: {e}")
return None

View File

@@ -3353,7 +3353,7 @@ def handle_ps3(dest_dir, new_dirs=None, extracted_basename=None, url=None, archi
cmd = [
"powershell", "-Command",
f'$key = (Get-Content "{dkey_escaped}" -Raw).Trim(); ' +
f'$key = [System.IO.File]::ReadAllText("{dkey_escaped}").Trim(); ' +
f'& "{ps3dec_escaped}" d key $key "{iso_escaped}" "{decrypted_escaped}"'
]
else: # Linux

View File

@@ -1,3 +1,3 @@
{
"version": "2.6.4.0"
"version": "2.6.4.1"
}