Changed database/artwork code for Portuguese from PO to PT. Fixed issue 871 (theme for game info page).

This commit is contained in:
lustar.mii 2009-08-28 15:52:53 +00:00
parent 892fe2a975
commit 6a789e8b78
6 changed files with 14 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -1083,6 +1083,7 @@ int MenuDiscList() {
case 'U':
case 'X':
case 'Y':
case 'Z':
sprintf(gameregion," PAL ");
break;
}

View File

@ -2047,6 +2047,7 @@ ProgressDownloadWindow(int choice2) {
case 'U':
case 'X':
case 'Y':
case 'Z':
sprintf(URLFile,"%s%s/%s",server3d,Settings.db_language,missingFiles[i]);
break;
case 'E':
@ -2129,6 +2130,7 @@ ProgressDownloadWindow(int choice2) {
case 'U':
case 'X':
case 'Y':
case 'Z':
if(Settings.discart == 0) {
sprintf(URLFile,"%s%s/%s",serverDisc,Settings.db_language,missingFiles[i]);
} else if(Settings.discart == 1) {
@ -2209,6 +2211,7 @@ ProgressDownloadWindow(int choice2) {
case 'U':
case 'X':
case 'Y':
case 'Z':
sprintf(URLFile,"%s%s/%s",server2d,Settings.db_language,missingFiles[i]);
break;
case 'E':

View File

@ -1712,7 +1712,7 @@ void CFG_Load(void) {
// set language code for languages that are not available on the Wii
if (!strcmp(Settings.db_language,"")) {
if (strstr(languagefile, "portuguese") != NULL)
strcpy(Settings.db_language,"PO");
strcpy(Settings.db_language,"PT");
}
// open database if needed, load titles if needed

View File

@ -83,12 +83,16 @@ void __Disc_SetVMode(u8 videoselected) {
/* Select video mode */
switch (diskid[3]) {
/* PAL */
case 'D':
case 'F':
/* PAL */
case 'P':
case 'D':
case 'F':
case 'I':
case 'S':
case 'H':
case 'X':
case 'Y':
case 'Z':
if (tvmode != CONF_VIDEO_PAL) {
vmode_reg = 5;
vmode = (progressive) ? &TVNtsc480Prog : &TVEurgb60Hz480IntDf;

View File

@ -586,6 +586,7 @@ bool LoadGameInfoFromXML(char* gameid, char* langtxt)
if (gameid[3] == 'U') strlcpy(gameinfo.region,"PAL",sizeof(gameinfo.region));
if (gameid[3] == 'X') strlcpy(gameinfo.region,"PAL",sizeof(gameinfo.region));
if (gameid[3] == 'Y') strlcpy(gameinfo.region,"PAL",sizeof(gameinfo.region));
if (gameid[3] == 'Z') strlcpy(gameinfo.region,"PAL",sizeof(gameinfo.region));
}
// free memory