mirror of
https://github.com/RetroGameSets/RGSX.git
synced 2026-05-15 12:58:40 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14aa7a1c12 |
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": "2.6.4.0"
|
||||
"version": "2.6.4.1"
|
||||
}
|
||||
Reference in New Issue
Block a user