mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 01:09:16 +01:00
*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.
This commit is contained in:
parent
e6daf212bd
commit
f08ed3d245
@ -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
|
||||
|
File diff suppressed because one or more lines are too long
10
source/cfg.c
10
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);
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include <ogc/usbstorage.h>
|
||||
#include <sdcard/wiisd_io.h>
|
||||
|
||||
#define CACHE 4
|
||||
#define CACHE 1
|
||||
#define SECTORS 64
|
||||
|
||||
|
||||
|
BIN
source/images/favorite.png
Normal file
BIN
source/images/favorite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
BIN
source/images/not_favorite.png
Normal file
BIN
source/images/not_favorite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
@ -124,13 +124,13 @@ GuiCustomOptionBrowser::GuiCustomOptionBrowser(int w, int h, customOptionList *
|
||||
optionTxt[i] = new GuiText(options->name[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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user