added i warning for loading gct files over 255 lines. it works in theory, but i didn't test it at all.

added another server to the cover host lists
This commit is contained in:
giantpune 2009-06-30 22:05:40 +00:00
parent 92ae470725
commit baffea9810
20 changed files with 90 additions and 22 deletions

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Du må formattere en partition"
msgid "available" msgid "available"
msgstr "" msgstr ""
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Je moet een partitie formatteren"
msgid "available" msgid "available"
msgstr "beschikbaar" msgstr "beschikbaar"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr ""
msgid "available" msgid "available"
msgstr "" msgstr ""
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Sinun täytyy formatoida osio"
msgid "available" msgid "available"
msgstr "" msgstr ""
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Vous devez formater une partition"
msgid "available" msgid "available"
msgstr "disponible" msgstr "disponible"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Sie müssen eine Partition formatieren"
msgid "available" msgid "available"
msgstr "verfügbar" msgstr "verfügbar"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Devi Formattare una Partizione"
msgid "available" msgid "available"
msgstr "disponibile" msgstr "disponibile"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "パーティションをフォーマットして下さい"
msgid "available" msgid "available"
msgstr "利用可能" msgstr "利用可能"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "파티션을 포맷해야 합니다"
msgid "available" msgid "available"
msgstr "" msgstr ""
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Du må formatere en partisjon"
msgid "available" msgid "available"
msgstr "tilgjengelig" msgstr "tilgjengelig"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Você precisa formatar a partição"
msgid "available" msgid "available"
msgstr "disponível" msgstr "disponível"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "É necessário FORMATAR a partição"
msgid "available" msgid "available"
msgstr "disponível" msgstr "disponível"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Требуется форматирование раздела"
msgid "available" msgid "available"
msgstr "" msgstr ""
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "必须格式化一个分区"
msgid "available" msgid "available"
msgstr "" msgstr ""
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Necesitas formatear una partición"
msgid "available" msgid "available"
msgstr "disponible" msgstr "disponible"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Du behöver formatera en partition"
msgid "available" msgid "available"
msgstr "" msgstr ""
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "必須格式化一個磁區"
msgid "available" msgid "available"
msgstr "可取得" msgstr "可取得"
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: USB Loader GX\n" "Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-06-28 17:30-0400\n" "POT-Creation-Date: 2009-06-30 17:59-0400\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -723,6 +723,9 @@ msgstr "Bir bölüm biçimlendirmeniz gerekiyor"
msgid "available" msgid "available"
msgstr "" msgstr ""
msgid "contains over 255 lines of code. It will produce unexpected results."
msgstr ""
msgid "does not exist! Loading game without cheats." msgid "does not exist! Loading game without cheats."
msgstr "" msgstr ""

View File

@ -1078,7 +1078,13 @@ int MenuDiscList()
/* Open gct File and check exist */ /* Open gct File and check exist */
sprintf(nipple, "%s%s.gct",Settings.Cheatcodespath,IDfull); sprintf(nipple, "%s%s.gct",Settings.Cheatcodespath,IDfull);
exeFile = fopen (nipple ,"rb"); exeFile = fopen (nipple ,"rb");
if (exeFile==NULL) fseek (exeFile, 0, SEEK_END);
long size=ftell (exeFile);
rewind (exeFile);
if (size>2056){
sprintf(nipple, "%s %s",nipple,tr("contains over 255 lines of code. It will produce unexpected results."));
WindowPrompt(tr("Error"),nipple,NULL,NULL,NULL,NULL,170);
}if (exeFile==NULL)
{ {
sprintf(nipple, "%s %s",nipple,tr("does not exist! Loading game without cheats.")); sprintf(nipple, "%s %s",nipple,tr("does not exist! Loading game without cheats."));
WindowPrompt(tr("Error"),nipple,tr("OK"),NULL,NULL,NULL,170); WindowPrompt(tr("Error"),nipple,tr("OK"),NULL,NULL,NULL,170);
@ -1134,7 +1140,13 @@ int MenuDiscList()
/* Open gct File and check exist */ /* Open gct File and check exist */
sprintf(nipple, "%s%s.gct",Settings.Cheatcodespath,IDfull); sprintf(nipple, "%s%s.gct",Settings.Cheatcodespath,IDfull);
exeFile = fopen (nipple ,"rb"); exeFile = fopen (nipple ,"rb");
if (exeFile==NULL) fseek (exeFile, 0, SEEK_END);
long size=ftell (exeFile);
rewind (exeFile);
if (size>2056){
sprintf(nipple, "%s %s",nipple,tr("contains over 255 lines of code. It will produce unexpected results."));
WindowPrompt(tr("Error"),nipple,NULL,NULL,NULL,NULL,170);
}if (exeFile==NULL)
{ {
sprintf(nipple, "%s %s",nipple,tr("does not exist! Loading game without cheats.")); sprintf(nipple, "%s %s",nipple,tr("does not exist! Loading game without cheats."));
WindowPrompt(tr("Error"),nipple,NULL,NULL,NULL,NULL,170); WindowPrompt(tr("Error"),nipple,NULL,NULL,NULL,NULL,170);

View File

@ -2037,7 +2037,7 @@ ProgressDownloadWindow(int choice2)
mainWindow->ChangeFocus(&promptWindow); mainWindow->ChangeFocus(&promptWindow);
ResumeGui(); ResumeGui();
int serverCnt3d=3,serverCntDisc=2,serverCnt2d=3, offset=0, tries=0, m=0; int serverCnt3d=4,serverCntDisc=3,serverCnt2d=4, offset=0, tries=0, m=0;
char server3d[serverCnt3d][75]; char server3d[serverCnt3d][75];
char serverDisc[serverCntDisc][75]; char serverDisc[serverCntDisc][75];
@ -2046,16 +2046,18 @@ ProgressDownloadWindow(int choice2)
snprintf(server3d[m], sizeof(server3d[m]), "http://boxart.rowdyruff.net/3d/");m++; snprintf(server3d[m], sizeof(server3d[m]), "http://boxart.rowdyruff.net/3d/");m++;
snprintf(server3d[m], sizeof(server3d[m]), "http://gxload.joschtex.com/3d/");m++; 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://wiicover.gateflorida.com/3d/");m++;
snprintf(server3d[m], sizeof(server3d[m]), "http://awiibit.com/3dBoxArt176x248/");m++;
m=0; m=0;
snprintf(serverDisc[m], sizeof(serverDisc[m]), "http://gxload.joschtex.com/disc/");m++; snprintf(serverDisc[m], sizeof(serverDisc[m]), "http://gxload.joschtex.com/disc/");m++;
//snprintf(serverDisc[k], sizeof(serverDisc[k]), "http://awiibit.com/BoxArt160x160/");k++;
snprintf(serverDisc[m], sizeof(serverDisc[m]), "http://wiicover.gateflorida.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++;
m=0; m=0;
snprintf(server2d[m], sizeof(server2d[m]), "http://wiicover.gateflorida.com/2d/");m++; snprintf(server2d[m], sizeof(server2d[m]), "http://wiicover.gateflorida.com/2d/");m++;
snprintf(server2d[m], sizeof(server2d[m]), "http://boxart.rowdyruff.net/flat/");m++; snprintf(server2d[m], sizeof(server2d[m]), "http://boxart.rowdyruff.net/flat/");m++;
snprintf(server2d[m], sizeof(server2d[m]), "http://gxload.joschtex.com/2d/");m++; snprintf(server2d[m], sizeof(server2d[m]), "http://gxload.joschtex.com/2d/");m++;
snprintf(server2d[m], sizeof(server2d[m]), "http://awiibit.com/BoxArt160x224/");m++;