From f08ed3d245b52ee96eb5e35ac361005e6f066aac Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Thu, 21 May 2009 14:05:30 +0000 Subject: [PATCH] *Fixed options clicking problem (didnt work sometimes) *Added dummy star pngs which will be replaced later *New languagefile *Changed the cfg to treat all the files as Textfiles and not as binary. --- Languages/french | 13 ++++- gui.pnproj | 2 +- source/cfg.c | 10 ++-- source/fatmounter.c | 2 +- source/images/favorite.png | Bin 0 -> 5039 bytes source/images/not_favorite.png | Bin 0 -> 2442 bytes source/libwiigui/gui_customoptionbrowser.cpp | 51 ++++++++++--------- 7 files changed, 46 insertions(+), 32 deletions(-) create mode 100644 source/images/favorite.png create mode 100644 source/images/not_favorite.png diff --git a/Languages/french b/Languages/french index fbcf179a..75320374 100644 --- a/Languages/french +++ b/Languages/french @@ -1,9 +1,12 @@ //French translation for USB Loader GX - [Version final 1.2] - [05.17.2009] t3Covers = Jaquettes 3D +all = Nom AppLanguage = Langue d'interface Areyousure = Êtes-vous sûr ? AutoPatch = AutoPatch Back = Retour +Backgroundmusic = Musique de fond +Backgroundmusicpath = Dossier de Musique de fond changé. BacktoHBCorWiiMenu = Retour loader / menu Wii BacktoLoader = Loader BacktoWiiMenu = Menu Wii @@ -23,6 +26,7 @@ CorrectPassword = Mot de passe correct Couldnotinitializenetwork = Initialisation réseau impossible ! CouldnotopenDisc = Initialisation disque impossible CouldnotinitializeDIPmodule = Initialisation DIP impossible ! +count = Fréquence d'utilisation CoverDownload = Téléchargement des jaquettes CoverPath = Jaquettes CoverpathChanged = Dossier des jaquettes modifié @@ -48,6 +52,7 @@ InitializingNetwork = Initialisation du r InsertDisk = Insérez un disque InsertaWiiDisc = Insérez un disque Wii ! InsertaSDCardtodownloadimages = Insérez une carte SD pour télécharger les jaquettes. +InsertaSDCardtousethatoption = Insérez une carte SD pour utiliser cette fonction. InsertaSDCardtosave = Insérez une carte SD pour enregistrer. InstallRenameandDeleteareunlocked = Toutes les fonctionnalités de l'USB Loader GX sont déverrouillées. Installerror = Erreur à l'installation ! @@ -57,6 +62,7 @@ Failedtoboot = FailedtomountfrontSDcard = Échec à l'initialisation de la SD FailedtosetUSB = Échec d'intialisation USB : Failedformating = Échec du formatage +fave = Favoris Filenotfound = Fichier introuvable. filesnotfoundontheserver = fichiers introuvables sur le serveur ! filesleft = fichier(s) restant(s) @@ -76,14 +82,17 @@ GameRegion = R GameSize = Taille du jeu GoBack = Retour //GotoPage = Aller à la page +hour = Heure HowtoShutdown = Mode d'extinction de la Wii ? keyboard = clavier Language = Langue Langchange = Changer la langue Left = Gauche LikeSysMenu = Menu système +ListSort = Tri des jeux LoadingincIOS = Charger avec le cIOS249 Loadingstandardlanguage = Chargement de la langue par défaut. +Loadingstandardmusic = Chargement de la musique par défaut. Lock = Verrouiller LockConsole = Verrouiller la console MP3Menu = Menu MP3 @@ -103,7 +112,7 @@ Normal = Normal NotaWiiDisc = Ce n'est pas un jeu Wii NoUSBDevicefound = Aucun périphérique USB trouvé. Notenoughfreespace = Espace libre insuffisant ! -notset = non défini +notset = Non défini of = sur OFF = Désactivé OfficialSite = Site officiel @@ -115,6 +124,7 @@ Password = Mot de passe PasswordChanged = Mot de passe modifié Passwordhasbeenchanged = Mot de passe modifié Passwordchange = Changement de mot de passe +Plays = Utilisation Jeu PowerofftheWii = Éteindre la Wii Prev = Précédent PromptsButtons = Interface @@ -133,6 +143,7 @@ For = pour theUSBLoaderandreleasingthesourcecodethe = et pour avoir partagé le code source secondsleft = secondes restantes SelectthePartition = Choisissez la partition +Setasbackgroundmusic = Définir comme musique de fond? youwanttoformat = que vous voulez formater settings = Paramètres ShutdowntoIdle = Veille diff --git a/gui.pnproj b/gui.pnproj index de715c18..9d732305 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 c103705c..356d85a4 100644 --- a/source/cfg.c +++ b/source/cfg.c @@ -913,7 +913,7 @@ bool cfg_parsefile(char *fname, void (*set_func)(char*, char*)) char line[200]; //printf("opening(%s)\n", fname); - f = fopen(fname, "rb"); + f = fopen(fname, "rt"); if (!f) { //printf("error opening(%s)\n", fname); return false; @@ -933,7 +933,7 @@ bool cfg_parsetitlefile(char *fname, void (*set_func)(char*, char*, u8)) char line[200]; //printf("opening(%s)\n", fname); - f = fopen(fname, "rb"); + f = fopen(fname, "rt"); if (!f) { //printf("error opening(%s)\n", fname); return false; @@ -1020,7 +1020,7 @@ bool cfg_save_global()// save global settings mkdir("SD:/config", 0777); } FILE *f; - f = fopen("SD:/config/GXGlobal.cfg", "wb"); + f = fopen("SD:/config/GXGlobal.cfg", "wt"); if (!f) { printf("Error saving %s\n", "GXGlobal.cfg"); sleep(1); @@ -1186,7 +1186,7 @@ bool cfg_save_games()// save per game setings FILE *f; int i; mkdir("SD:/config/", 0777); - f = fopen("SD:/config/GXGameSettings.cfg", "wb"); + f = fopen("SD:/config/GXGameSettings.cfg", "wt"); if (!f) { printf("Error saving %s\n", "GXGameSettings.cfg"); sleep(1); @@ -1217,7 +1217,7 @@ bool cfg_save_game_num() FILE *f; int i; mkdir("SD:/config/", 0777); - f = fopen("SD:/config/GXGameFavorites.cfg", "wb"); + f = fopen("SD:/config/GXGameFavorites.cfg", "wt"); if (!f) { printf("Error saving %s\n", "GXGameFavorites.cfg"); sleep(1); diff --git a/source/fatmounter.c b/source/fatmounter.c index f39a821e..5bf7769b 100644 --- a/source/fatmounter.c +++ b/source/fatmounter.c @@ -6,7 +6,7 @@ #include #include -#define CACHE 4 +#define CACHE 1 #define SECTORS 64 diff --git a/source/images/favorite.png b/source/images/favorite.png new file mode 100644 index 0000000000000000000000000000000000000000..54e83dbc9540f8bef042aacba8178e25a4eff2a8 GIT binary patch literal 5039 zcmV;g6Hx4lP)5Q(|t3<|v)6Ytp2;uSEdxCNOvQvQavtzi+p; z8-MrRdw%WOHHRA^LcAXw`abc?E3fRp-?~M*bLS+pT;$VnuVtcZB+awLVqm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tUwesTG1yT93=&eqgTp-zS-g``MhXih{A#Vv-&bHdZJtiKyP6NXpKA8{4@~PVwwZ|05mTaxo#e72$wb0ygp{e8B@5s5 zIjjNt9M{%=a!2qU8F-V!`6V}!yUdKJRkDm2V_;4-qU@rtSW3u zx%p{-@5g80Ch+2#@T5^Sn|P^_Vv^87VT-7XDAHxxy&005t%Uv`AN^}p$2T#1$0a6_ zm?ESqV!LHTs7U0{@}Lg&4OD+mNH4VA;xEKv{xe>tWmH2DM6^bf^;pxGvQKWMhGvr~ zVpW!+jL7a%jx2y5{T6rS1-OowO$H?i0K-Vxmq|&Fz z(sGvmk_GdyapcjXhxM!3 z%dbiDFN<(DTu#G%WylJNRd}pJWNn451Y7awMd(9f6nwCdQB((U9|BpU@lF)`T2x+r zbZT#U^(-1ng;4P*)skv)uQjDq%u|hNbWh>{YN670TGet=&&g7w;<;+h z;-S0VCZ4la6Ps$ulQc0TY}~HLX+EEqll})I^barl@{g>&ZxB~s#^3DUvi;#nX^%%9 zoOE-DkWsx8H4VvTH~c|lA4;-)hNEm)xAhO?ua6DX~R>hq$!om)MTS3 z$)R0=Xe1)kI#0DAb)c4u%{a+nTUYj$JszR|^wL${YsGr=Ci?sd`qBr{yLLHsX~^64 zBImuDw76<@WeJ-N%(J?W>WhP|J?z!@G@G3!_u~}S>&_0IyXc8YIy6lS)6I#c%pz&$ z+E>@*4?n9>uj_1!y=@(BR-aC9*=yg!zjcgX|5MQi_`g|e5mOSXEOGz<002ovPDHLk FV1m_P0HFW? literal 0 HcmV?d00001 diff --git a/source/images/not_favorite.png b/source/images/not_favorite.png new file mode 100644 index 0000000000000000000000000000000000000000..530061866debd40a4821afe515861d50a8479489 GIT binary patch literal 2442 zcmV;533c{~P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02p*dSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@Gd8K`;w1n82>VGyK~!i%?U`w8RaF#)1w{rWMNvxAkYK<7 zB8EoF4Dth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9LY%c}!%#l3mh0t~yV9k@`|r$%kA#5eN~B zd&Jher6SZc3Z`n!(Zb0ZCD;a^yMmC373EF={X~CP`O~>bJ}(j%F21|s^qLigt?{jUpH3` z)*LPLv@EnQcBI}VBA+SsFDdPRyX6UR1C19X!l#P8L-zSqqd@kn`7R_?>L|7SbtE3F zqjjp%UAtNeJYX_sAK58I_4JO`c}wg3_dmPW6uF0S5?z5m0Z1u(-VUjsvj6}907*qo IM6N<$fname[i], 20, (GXColor){0, 0, 0, 0xff}); optionTxt[i]->SetAlignment(ALIGN_LEFT, ALIGN_MIDDLE); optionTxt[i]->SetPosition(24,0); - + optionBg[i] = new GuiImage(bgOptionsEntry); - + optionVal[i] = new GuiText(NULL, 20, (GXColor){0, 0, 0, 0xff}); optionVal[i]->SetAlignment(ALIGN_LEFT, ALIGN_MIDDLE); optionVal[i]->SetPosition(250,0); - + optionBtn[i] = new GuiButton(width,GAMESELECTSIZE);//(width-28,GAMESELECTSIZE); optionBtn[i]->SetParent(this); optionBtn[i]->SetLabel(optionTxt[i], 0); @@ -140,7 +140,7 @@ GuiCustomOptionBrowser::GuiCustomOptionBrowser(int w, int h, customOptionList * optionBtn[i]->SetRumble(false); optionBtn[i]->SetTrigger(trigA); optionBtn[i]->SetSoundClick(btnSoundClick); - + } } @@ -206,6 +206,7 @@ void GuiCustomOptionBrowser::SetFocus(int f) optionBtn[i]->ResetState(); if(f == 1) + optionBtn[selectedItem]->ResetState(); optionBtn[selectedItem]->SetState(STATE_SELECTED); } @@ -312,13 +313,13 @@ void GuiCustomOptionBrowser::Update(GuiTrigger * t) if(state == STATE_DISABLED || !t) return; - - + + // scrolldelay affects how fast the list scrolls // when the arrows are clicked float scrolldelay = 3.5; - - + + if (scrollbaron == 1) { // update the location of the scroll box based on the position in the option list @@ -342,12 +343,12 @@ void GuiCustomOptionBrowser::Update(GuiTrigger * t) optionTxt[i]->SetText(options->name[next]); optionVal[i]->SetText(options->value[next]); char* pch; - + pch=strrchr((options->value[next]),'_'); - + if (pch!=NULL){optionVal[i]->SetPosition(coL2, 15);} else {optionVal[i]->SetPosition(coL2, 0);} - + optionIndex[i] = next; next = this->FindMenuItem(next, 1); } @@ -359,10 +360,11 @@ void GuiCustomOptionBrowser::Update(GuiTrigger * t) if(focus) { - if(i != selectedItem && optionBtn[i]->GetState() == STATE_SELECTED) + if(i != selectedItem && optionBtn[i]->GetState() == STATE_SELECTED) { optionBtn[i]->ResetState(); - else if(i == selectedItem && optionBtn[i]->GetState() == STATE_DEFAULT) - optionBtn[selectedItem]->SetState(STATE_SELECTED, t->chan); + } else if(i == selectedItem && optionBtn[i]->GetState() == STATE_DEFAULT) { + optionBtn[selectedItem]->SetState(STATE_SELECTED); + } } optionBtn[i]->Update(t); @@ -371,6 +373,7 @@ void GuiCustomOptionBrowser::Update(GuiTrigger * t) { selectedItem = i; } + } // pad/joystick navigation @@ -378,16 +381,16 @@ void GuiCustomOptionBrowser::Update(GuiTrigger * t) return; // skip navigation if (scrollbaron == 1) { - - if (t->Down() || + + if (t->Down() || arrowDownBtn->GetState() == STATE_CLICKED || ////////////////////////////////////////////down - arrowDownBtn->GetState() == STATE_HELD) + arrowDownBtn->GetState() == STATE_HELD) { next = this->FindMenuItem(optionIndex[selectedItem], 1); - + if(next >= 0) - { + { if(selectedItem == size-1) { // move list down by 1 @@ -412,11 +415,11 @@ void GuiCustomOptionBrowser::Update(GuiTrigger * t) } else { arrowDownBtn->ResetState(); - + } - + } - else if(t->Up() || + else if(t->Up() || arrowUpBtn->GetState() == STATE_CLICKED || ////////////////////////////////////////////up arrowUpBtn->GetState() == STATE_HELD) { @@ -448,8 +451,8 @@ void GuiCustomOptionBrowser::Update(GuiTrigger * t) } else { arrowUpBtn->ResetState(); - - } + + } } if(scrollbarBoxBtn->GetState() == STATE_HELD &&