From 412a0da20e19804653afb9a97b681aedba66d93b Mon Sep 17 00:00:00 2001 From: skymike03 Date: Thu, 21 Aug 2025 14:33:50 +0200 Subject: [PATCH] correct error in config --- ports/RGSX/config.py | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/ports/RGSX/config.py b/ports/RGSX/config.py index 1fca12d..2f41001 100644 --- a/ports/RGSX/config.py +++ b/ports/RGSX/config.py @@ -59,23 +59,35 @@ UPDATE_FOLDER = os.path.join(APP_FOLDER, "update") GAMELISTXML = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(APP_FOLDER))), "roms", "ports", "gamelist.xml") IMAGES_FOLDER = os.path.join(APP_FOLDER, "images", "systemes") GAMES_FOLDER = os.path.join(APP_FOLDER, "games") +LANGUAGES_FOLDER = os.path.join(APP_FOLDER, "languages") CONTROLS_CONFIG_PATH = os.path.join(SAVE_FOLDER, "controls.json") HISTORY_PATH = os.path.join(SAVE_FOLDER, "history.json") -LANGUAGE_CONFIG_PATH = os.path.join(SAVE_FOLDER, "language.json") JSON_EXTENSIONS = os.path.join(APP_FOLDER, "rom_extensions.json") -MUSIC_CONFIG_PATH = os.path.join(SAVE_FOLDER, "music_config.json") -UNRAR_EXE = os.path.join(APP_FOLDER,"assets", "unrar.exe") -XDVDFS_EXE = os.path.join(APP_FOLDER,"assets", "xdvdfs.exe") -XDVDFS_LINUX = os.path.join(APP_FOLDER,"assets", "xdvdfs") +# Nouveau fichier unifié pour les paramètres RGSX +RGSX_SETTINGS_PATH = os.path.join(SAVE_FOLDER, "rgsx_settings.json") + +# Anciens chemins des fichiers de config (conservés temporairement pour la migration) +ACCESSIBILITY_FOLDER = os.path.join(SAVE_FOLDER, "accessibility.json") +LANGUAGE_CONFIG_PATH = os.path.join(SAVE_FOLDER, "language.json") +MUSIC_CONFIG_PATH = os.path.join(SAVE_FOLDER, "music_config.json") +SYMLINK_SETTINGS_PATH = os.path.join(SAVE_FOLDER, "symlink_settings.json") # URL OTA_SERVER_URL = "https://retrogamesets.fr/softs/" OTA_VERSION_ENDPOINT = os.path.join(OTA_SERVER_URL, "version.json") OTA_UPDATE_ZIP = os.path.join(OTA_SERVER_URL, "RGSX.zip") OTA_data_ZIP = os.path.join(OTA_SERVER_URL, "rgsx-data.zip") + +#CHEMINS DES EXECUTABLES +UNRAR_EXE = os.path.join(APP_FOLDER,"assets", "unrar.exe") +XDVDFS_EXE = os.path.join(APP_FOLDER,"assets", "xdvdfs.exe") +XDVDFS_LINUX = os.path.join(APP_FOLDER,"assets", "xdvdfs") unrar_download_exe = os.path.join(OTA_SERVER_URL, "unrar.exe") xdvdfs_download_exe = os.path.join(OTA_SERVER_URL, "xdvdfs.exe") + +# Import des fonctions de gestion des paramètres RGSX +from rgsx_settings import load_rgsx_settings, save_rgsx_settings, migrate_old_settings xdvdfs_download_linux = os.path.join(OTA_SERVER_URL, "xdvdfs") # Constantes pour la répétition automatique dans pause_menu