*Fixed some BUGs/added missing Texts

*Fixed BUG that Cancel on renaming Game wasnt working they way it should
This commit is contained in:
dimok321 2009-05-16 21:04:43 +00:00
parent e54f3f22d1
commit 594baabfce
2 changed files with 13 additions and 7 deletions

View File

@ -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;
} }

View File

@ -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,11 +3059,13 @@ 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;
} }
}
else if(choice == 0) else if(choice == 0)
@ -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);