From 6a789e8b78c727a458cbcf797d6483b0735a87fa Mon Sep 17 00:00:00 2001 From: "lustar.mii" Date: Fri, 28 Aug 2009 15:52:53 +0000 Subject: [PATCH] Changed database/artwork code for Portuguese from PO to PT. Fixed issue 871 (theme for game info page). --- gui.pnproj | 2 +- source/menu.cpp | 1 + source/prompts/PromptWindows.cpp | 3 +++ source/settings/cfg.c | 2 +- source/usbloader/disc.c | 10 +++++++--- source/xml/xml.c | 1 + 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/gui.pnproj b/gui.pnproj index 9c8c1fea..d2cb4a7f 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/menu.cpp b/source/menu.cpp index 3b3aa9e0..bab516f4 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -1083,6 +1083,7 @@ int MenuDiscList() { case 'U': case 'X': case 'Y': + case 'Z': sprintf(gameregion," PAL "); break; } diff --git a/source/prompts/PromptWindows.cpp b/source/prompts/PromptWindows.cpp index 86264bd9..a1adbd81 100644 --- a/source/prompts/PromptWindows.cpp +++ b/source/prompts/PromptWindows.cpp @@ -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': diff --git a/source/settings/cfg.c b/source/settings/cfg.c index e8ac475a..f4f38399 100644 --- a/source/settings/cfg.c +++ b/source/settings/cfg.c @@ -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 diff --git a/source/usbloader/disc.c b/source/usbloader/disc.c index 2edfbf20..4a80e255 100644 --- a/source/usbloader/disc.c +++ b/source/usbloader/disc.c @@ -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; diff --git a/source/xml/xml.c b/source/xml/xml.c index 20c0aabf..1ae7f98e 100644 --- a/source/xml/xml.c +++ b/source/xml/xml.c @@ -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