From d9bbb3b662aa8d9f295e6483b0c4197980558adb Mon Sep 17 00:00:00 2001 From: thedarkness1981 Date: Fri, 3 Jul 2009 21:30:24 +0000 Subject: [PATCH] *Support for wiitdb.com added *Downloads the images depending from which country the game is There are still missing images so please everyone who wants to help please add them on www.wiitdb.com. ;) --- source/prompts/PromptWindows.cpp | 120 ++++++++++++++++++++++++++++--- 1 file changed, 111 insertions(+), 9 deletions(-) diff --git a/source/prompts/PromptWindows.cpp b/source/prompts/PromptWindows.cpp index 7aca27ec..61b958b8 100644 --- a/source/prompts/PromptWindows.cpp +++ b/source/prompts/PromptWindows.cpp @@ -205,6 +205,11 @@ void WindowCredits() txt[i] = new GuiText("ardi / DrayX7"); txt[i]->SetAlignment(ALIGN_LEFT, ALIGN_TOP); txt[i]->SetPosition(220,y); i++; + y+=24; + + txt[i] = new GuiText("lustar"); + txt[i]->SetAlignment(ALIGN_LEFT, ALIGN_TOP); txt[i]->SetPosition(220,y); + i++; y+=34; txt[i] = new GuiText("Design:"); @@ -231,6 +236,12 @@ void WindowCredits() txt[i]->SetAlignment(ALIGN_LEFT, ALIGN_TOP); txt[i]->SetPosition(220,y); i++; y+=24;*/ + + sprintf(text, " lustar %s", tr("for WiiTDB")); + txt[i] = new GuiText(text); + txt[i]->SetAlignment(ALIGN_LEFT, ALIGN_TOP); txt[i]->SetPosition(220,y); + i++; + y+=24; sprintf(text, "CorneliousJD %s", tr("for hosting the update files")); txt[i] = new GuiText(text); @@ -2043,7 +2054,7 @@ ProgressDownloadWindow(int choice2) mainWindow->ChangeFocus(&promptWindow); ResumeGui(); - int serverCnt3d=4,serverCntDisc=3,serverCnt2d=4, offset=0, tries=0, m=0; + int serverCnt3d=5,serverCntDisc=4,serverCnt2d=5, offset=0, tries=0, m=0; char server3d[serverCnt3d][75]; char serverDisc[serverCntDisc][75]; @@ -2056,22 +2067,24 @@ ProgressDownloadWindow(int choice2) TESTfail = new int[serverCnt2d]; TESTbad = new int[serverCnt2d];*/ - snprintf(server3d[m], sizeof(server3d[m]), "http://gxload.joschtex.com/3d/");m++; snprintf(server3d[m], sizeof(server3d[m]), "http://wiicover.gateflorida.com/3d/");m++; snprintf(server3d[m], sizeof(server3d[m]), "http://awiibit.com/3dBoxArt176x248/");m++; snprintf(server3d[m], sizeof(server3d[m]), "http://boxart.rowdyruff.net/3d/");m++; + snprintf(server3d[m], sizeof(server3d[m]), "http://wiitdb.com/wiitdb/artwork/cover3D/");m++; m=0; snprintf(serverDisc[m], sizeof(serverDisc[m]), "http://gxload.joschtex.com/disc/");m++; snprintf(serverDisc[m], sizeof(serverDisc[m]), "http://wiicover.gateflorida.com/disc/");m++; snprintf(serverDisc[m], sizeof(serverDisc[m]), "http://awiibit.com/WiiDiscArt/");m++; + snprintf(serverDisc[m], sizeof(serverDisc[m]), "http://wiitdb.com/wiitdb/artwork/disc/");m++; m=0; snprintf(server2d[m], sizeof(server2d[m]), "http://gxload.joschtex.com/2d/");m++; snprintf(server2d[m], sizeof(server2d[m]), "http://wiicover.gateflorida.com/2d/");m++; snprintf(server2d[m], sizeof(server2d[m]), "http://awiibit.com/BoxArt160x224/");m++; snprintf(server2d[m], sizeof(server2d[m]), "http://boxart.rowdyruff.net/flat/");m++; + snprintf(server2d[m], sizeof(server2d[m]), "http://wiitdb.com/wiitdb/artwork/cover/");m++; //server test shit again /*m=0; @@ -2086,7 +2099,6 @@ ProgressDownloadWindow(int choice2) }*/ - //check if directory exist and if not create one struct stat st; if(stat(Settings.covers_path, &st) != 0) { @@ -2132,8 +2144,35 @@ ProgressDownloadWindow(int choice2) if (choice2 == 2) { while(tries