From c4e10a5cb384a1df59db7b935fd190f96a97e0ec Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Fri, 29 May 2009 22:14:19 +0000 Subject: [PATCH] *Fixed isses 384, 387, 391 (maybe more not sure) *Temporary fix for GameSettings not saved (hopefully now working for all) --- Languages/french | 22 ++++++++++++++++++---- gui.pnproj | 2 +- source/cfg.c | 7 ++++++- source/cfg.h | 4 ++-- source/language.c | 4 ++++ source/menu.cpp | 4 +++- 6 files changed, 34 insertions(+), 9 deletions(-) diff --git a/Languages/french b/Languages/french index 4f55ae74..01784c56 100644 --- a/Languages/french +++ b/Languages/french @@ -3,6 +3,7 @@ addToFavorite = Ajouter aux favoris all = Alphabétique AppLanguage = Langue d'interface Areyousure = Êtes-vous sûr? +available = disponible AutoPatch = AutoPatch Back = Retour Backgroundmusic = Fond sonore @@ -15,6 +16,7 @@ Both = Tous Cantcreatedirectory = Création du répertoire impossible Cancel = Annuler Cantbeformated = Formatage impossible +CheckingforUpdates = Recherche de Mise à Jour Cantdelete = Impossible de supprimer : ClicktoDownloadCovers = Téléchargement des jaquettes Clock = Horloge @@ -42,11 +44,14 @@ Display = Affichage Doyouwanttoformat = Voulez-vous formater ? Doyoureallywanttodelete = Voulez-vous vraiment supprimer ? Doyouwanttoretryfor30secs = Réessayer pendant 30 sec. ? -Downloadingfile = Téléchargement du fichier : +Doyouwanttoupdate = Comment faire la Mise à Jour ? +Downloadingfile = Téléchargement du fichier DownloadBoxartimage = Télécharger les jaquettes ? Downloadfinished = Téléchargement terminé -Defaultgamesettings = Réinitialiser les paramètres du jeu -Defaultsettings = Réinitialiser les paramètres par défaut +//Defaultgamesettings = Rétablir les paramètres du jeu par défaut +//Defaultsettings = Rétablir les paramètres par défaut +Defaultgamesettings = Reset Paramètres Jeu +Defaultsettings = Reset Paramètres Error = Erreur ! hour = Heures Homemenu = Menu HOME @@ -103,6 +108,7 @@ Missingfiles = Fichier(s) manquant(s) Networkiniterror = Erreur d'initialisation réseau Neither = Aucun Next = Suivant +Nonewupdates = Pas de nouvelle Mise à Jour. No = Non Nofilemissing = Aucun fichier manquant ! NoHDDfound = Aucun HDD trouvé ! @@ -129,13 +135,14 @@ Password = Mot de passe PasswordChanged = Mot de passe modifié Passwordhasbeenchanged = Le mot de passe a été modifié Passwordchange = Modification du mot de passe -Plays = Utilisation Jeu +Plays = Utilisation PowerofftheWii = Éteindre la Wii Prev = Précédent PromptsButtons = Interface ReloadSD = Recharger la SD RenameGameonWBFS = Renommer un jeu Restart = Redémarrer +Restarting = Redémarrage... Return = Retour ReturntoWii = Retourner au menu Wii Right = Droite @@ -156,6 +163,7 @@ ShutdowntoIdle = Veille ShutdownSystem = Arrêt Success = Succès : Successfullyinstalled = Installé avec succès : +Successfullyupdated = Mise à Jour réussie Successfullydeleted = Supprimé avec succès : SuccessfullySaved = Enregistré avec succès SystemDefault = Système par défaut @@ -168,9 +176,15 @@ Titlestxtpathchange = Localisation de titles.txt Try = Essayer Tooltips = Info-bulles Timeleft = Temps restant : +updating = Mise à Jour Unlock = Déverrouiller Unicodefix = Unicode Uninstall = Désinstaller +Updatepath= Dossier Mise à Jour +Updatepathchanged = Dossier de Mise à Jour changé. +Updatefailed = Mise à Jour échouée +Updatedol = DOL seul +Updateall = Totale USBLoaderisprotected = USB Loader GX est verrouillé USBDevicenotfound = Périphérique USB introuvable VideoMode = Mode vidéo diff --git a/gui.pnproj b/gui.pnproj index 7560eecc..211cf725 100644 --- a/gui.pnproj +++ b/gui.pnproj @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/source/cfg.c b/source/cfg.c index c467ab15..9a0de2b2 100644 --- a/source/cfg.c +++ b/source/cfg.c @@ -1116,6 +1116,11 @@ bool cfg_save_global()// save global settings } fprintf(f, "# USB Loader global settings file\n"); fprintf(f, "# Note: This file is automatically generated\n"); + fclose(f); + /* Closing and reopening because of a write issue we are having right now */ + f = fopen("SD:/config/GXGlobal.cfg", "wt"); + fprintf(f, "# USB Loader global settings file\n"); + fprintf(f, "# Note: This file is automatically generated\n"); fprintf(f, "video = %d\n ", Settings.video); fprintf(f, "vpatch = %d\n ", Settings.vpatch); fprintf(f, "language = %d\n ", Settings.language); @@ -1407,7 +1412,7 @@ bool CFG_forget_game_opt(u8 *id) return cfg_save_games(); } -void CFG_Load() +void CFG_Load(void) { char pathname[200]; // bool ret = false; diff --git a/source/cfg.h b/source/cfg.h index 455b7480..ae430380 100644 --- a/source/cfg.h +++ b/source/cfg.h @@ -190,7 +190,7 @@ struct Game_NUM void CFG_Default(int widescreen); // -1 = non forced mode -void CFG_Load(); +void CFG_Load(void); void lang_defualt(); struct Game_CFG* CFG_get_game_opt(u8 *id); struct Game_NUM* CFG_get_game_num(u8 *id); @@ -212,7 +212,7 @@ enum { schin, tchin, kor, - + settings_language_max // always the last entry }; diff --git a/source/language.c b/source/language.c index 8b7d56e0..d80c38ad 100644 --- a/source/language.c +++ b/source/language.c @@ -956,6 +956,10 @@ void language_set(char *name, char *val) strcopy(LANGUAGE.Updatepathchanged, val, sizeof(LANGUAGE.Updatepathchanged)); return; } + if (strcmp(name, "CheckingforUpdates") == 0) { + strcopy(LANGUAGE.CheckingforUpdates, val, sizeof(LANGUAGE.CheckingforUpdates)); + return; + } if (strcmp(name, "Updatefailed") == 0) { strcopy(LANGUAGE.Updatefailed, val, sizeof(LANGUAGE.Updatefailed)); return; diff --git a/source/menu.cpp b/source/menu.cpp index 2657fe5e..3696c8cc 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -2356,7 +2356,7 @@ ProgressUpdateWindow() if(revnumber > currentrev) { sprintf(msg, "Rev%i %s.", revnumber, LANGUAGE.available); - int choice = WindowPrompt(msg, LANGUAGE.Doyouwanttoupdate, LANGUAGE.Updatedol, LANGUAGE.Updateall, LANGUAGE.No, 0); + int choice = WindowPrompt(msg, LANGUAGE.Doyouwanttoupdate, LANGUAGE.Updatedol, LANGUAGE.Updateall, LANGUAGE.Cancel, 0); if(choice == 1 || choice == 2) { titleTxt.SetTextf("%s USB Loader GX", LANGUAGE.updating); msgTxt.SetPosition(0,100); @@ -2944,6 +2944,8 @@ static int MenuInstall() mainWindow->Remove(&w); ResumeGui(); + SDCard_deInit(); + SDCard_Init(); return menu; }