mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-20 10:19:15 +01:00
*Fixed some BUGs/added missing Texts
*Fixed BUG that Cancel on renaming Game wasnt working they way it should
This commit is contained in:
parent
e54f3f22d1
commit
594baabfce
@ -197,6 +197,10 @@ void language_set(char *name, char *val)
|
|||||||
cfg_name = name;
|
cfg_name = name;
|
||||||
cfg_val = val;
|
cfg_val = val;
|
||||||
|
|
||||||
|
if (strcmp(name, "t3Covers") == 0) {
|
||||||
|
strcopy(LANGUAGE.t3Covers, val, sizeof(LANGUAGE.t3Covers));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (strcmp(name, "Specialthanksto") == 0) {
|
if (strcmp(name, "Specialthanksto") == 0) {
|
||||||
strcopy(LANGUAGE.Specialthanksto, val, sizeof(LANGUAGE.Specialthanksto));
|
strcopy(LANGUAGE.Specialthanksto, val, sizeof(LANGUAGE.Specialthanksto));
|
||||||
return;
|
return;
|
||||||
@ -445,7 +449,7 @@ void language_set(char *name, char *val)
|
|||||||
strcopy(LANGUAGE.FlipX, val, sizeof(LANGUAGE.FlipX));
|
strcopy(LANGUAGE.FlipX, val, sizeof(LANGUAGE.FlipX));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (strcmp(name, "for") == 0) {
|
if (strcmp(name, "For") == 0) {
|
||||||
strcopy(LANGUAGE.For, val, sizeof(LANGUAGE.For));
|
strcopy(LANGUAGE.For, val, sizeof(LANGUAGE.For));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -709,7 +713,7 @@ void language_set(char *name, char *val)
|
|||||||
strcopy(LANGUAGE.Specialthanksto, val, sizeof(LANGUAGE.Specialthanksto));
|
strcopy(LANGUAGE.Specialthanksto, val, sizeof(LANGUAGE.Specialthanksto));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (strcmp(name, "theUSBLoaderandreleasingthesourcecode") == 0) {
|
if (strcmp(name, "theUSBLoaderandreleasingthesourcecodethe") == 0) {
|
||||||
strcopy(LANGUAGE.theUSBLoaderandreleasingthesourcecode, val, sizeof(LANGUAGE.theUSBLoaderandreleasingthesourcecode));
|
strcopy(LANGUAGE.theUSBLoaderandreleasingthesourcecode, val, sizeof(LANGUAGE.theUSBLoaderandreleasingthesourcecode));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -708,7 +708,7 @@ int GameWindowPrompt()
|
|||||||
btn1.SetState(STATE_SELECTED);
|
btn1.SetState(STATE_SELECTED);
|
||||||
//btn1.SetEffectGrow(); just commented it out if anybody wants to use it again.
|
//btn1.SetEffectGrow(); just commented it out if anybody wants to use it again.
|
||||||
|
|
||||||
GuiText btn2Txt("Back", 22, (GXColor){0, 0, 0, 255});
|
GuiText btn2Txt(LANGUAGE.Back, 22, (GXColor){0, 0, 0, 255});
|
||||||
GuiImage btn2Img(&btnOutline);
|
GuiImage btn2Img(&btnOutline);
|
||||||
if (Settings.wsprompt == yes){
|
if (Settings.wsprompt == yes){
|
||||||
btn2Img.SetWidescreen(CFG.widescreen);}///////////
|
btn2Img.SetWidescreen(CFG.widescreen);}///////////
|
||||||
@ -3059,10 +3059,12 @@ static int MenuDiscList()
|
|||||||
char entered[40];
|
char entered[40];
|
||||||
snprintf(entered, sizeof(entered), "%s", get_title(header));
|
snprintf(entered, sizeof(entered), "%s", get_title(header));
|
||||||
entered[39] = '\0';
|
entered[39] = '\0';
|
||||||
OnScreenKeyboard(entered, 40,0);
|
int result = OnScreenKeyboard(entered, 40,0);
|
||||||
|
if (result == 1) {
|
||||||
WBFS_RenameGame(header->id, entered);
|
WBFS_RenameGame(header->id, entered);
|
||||||
__Menu_GetEntries();
|
__Menu_GetEntries();
|
||||||
menu = MENU_DISCLIST;
|
menu = MENU_DISCLIST;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3744,7 +3746,7 @@ static int MenuSettings()
|
|||||||
|
|
||||||
if (Settings.xflip == no) sprintf (options2.value[2],"%s/%s",LANGUAGE.Right,LANGUAGE.Next);
|
if (Settings.xflip == no) sprintf (options2.value[2],"%s/%s",LANGUAGE.Right,LANGUAGE.Next);
|
||||||
else if (Settings.xflip == yes) sprintf (options2.value[2],"%s/%s",LANGUAGE.Left,LANGUAGE.Prev);
|
else if (Settings.xflip == yes) sprintf (options2.value[2],"%s/%s",LANGUAGE.Left,LANGUAGE.Prev);
|
||||||
else if (Settings.xflip == sysmenu) sprintf (options2.value[2],"Like SysMenu");
|
else if (Settings.xflip == sysmenu) sprintf (options2.value[2],"%s", LANGUAGE.LikeSysMenu);
|
||||||
else if (Settings.xflip == wtf) sprintf (options2.value[2],"%s/%s",LANGUAGE.Right,LANGUAGE.Prev);
|
else if (Settings.xflip == wtf) sprintf (options2.value[2],"%s/%s",LANGUAGE.Right,LANGUAGE.Prev);
|
||||||
|
|
||||||
if (Settings.qboot == no) sprintf (options2.value[3],"%s",LANGUAGE.No);
|
if (Settings.qboot == no) sprintf (options2.value[3],"%s",LANGUAGE.No);
|
||||||
|
Loading…
Reference in New Issue
Block a user