*Fixed use of mem2 memory. When MEM1 run out it freezes in libogc :\. Preventing it from running out completely now. (Thanks to NJ7 for all the tests he ran)

*Improved memory usage on category xml creation. Thanks to NJ7 for all the tests he ran here too)
*Changed TinXML to not throw an exception on every allocation fail but to return a 0 pointer
*Fixed crash with categories and disabled "Titles from WiiTDB"
*Compilation fix (forgot to remove some xml.h)
*little fix in themes xml downloader (thx dj_skual)
This commit is contained in:
dimok321 2011-06-26 21:38:05 +00:00
parent 53574d6bc5
commit cf21f13f39
38 changed files with 340 additions and 91 deletions

View File

@ -2,8 +2,8 @@
<app version="1"> <app version="1">
<name> USB Loader GX</name> <name> USB Loader GX</name>
<coder>USB Loader GX Team</coder> <coder>USB Loader GX Team</coder>
<version>2.1 r1096</version> <version>2.1 r1097</version>
<release_date>201106241934</release_date> <release_date>201106251948</release_date>
<no_ios_reload/> <no_ios_reload/>
<short_description>Loads games from USB-devices</short_description> <short_description>Loads games from USB-devices</short_description>
<long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times. <long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times.

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: David Jelinek (djelinek@hotmail.com) e->e,r->r,u->u, c->c \n" "Last-Translator: David Jelinek (djelinek@hotmail.com) e->e,r->r,u->u, c->c \n"
"Language-Team: r1056 - last version on http://djelinek.sweb.cz/_USBLoderGX/czech.lang \n" "Language-Team: r1056 - last version on http://djelinek.sweb.cz/_USBLoderGX/czech.lang \n"
@ -768,6 +768,9 @@ msgstr "Název hry [IdHry]"
msgid "Games" msgid "Games"
msgstr "Hry" msgstr "Hry"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "Zánr:" msgstr "Zánr:"
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Príchozí soubor %0.2fKB" msgstr "Príchozí soubor %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Špatné heslo" msgstr "Špatné heslo"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Fox888[dk]\n" "Last-Translator: Fox888[dk]\n"
"Language-Team: [dk]\n" "Language-Team: [dk]\n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "Spil" msgstr "Spil"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Henter fil %0.2fKB" msgstr "Henter fil %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Forkert password" msgstr "Forkert password"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2011-06-20 07:25+0100\n" "PO-Revision-Date: 2011-06-20 07:25+0100\n"
"Last-Translator: glowy\n" "Last-Translator: glowy\n"
"Language-Team: tj_cool, glowy\n" "Language-Team: tj_cool, glowy\n"
@ -768,6 +768,9 @@ msgstr "Spelnaam [SPELID]"
msgid "Games" msgid "Games"
msgstr "Spellen" msgstr "Spellen"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr "Importeer Categorieën"
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "Importeren succesvol afgerond" msgstr "Importeren succesvol afgerond"
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Binnenkomend bestand %0.2fKB" msgstr "Binnenkomend bestand %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr "Wiinnertag Pad"
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "Wiinnertag vereist dat automatisch netwerk verbinden bij applicatie start aan staat. Wil je dit nu aanzetten?" msgstr "Wiinnertag vereist dat automatisch netwerk verbinden bij applicatie start aan staat. Wil je dit nu aanzetten?"
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Fout wachtwoord" msgstr "Fout wachtwoord"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "" msgstr ""
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "" msgstr ""
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "" msgstr ""

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: c64rmx\n" "Last-Translator: c64rmx\n"
"Language-Team: \n" "Language-Team: \n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "Pelejä" msgstr "Pelejä"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "" msgstr ""
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Väärä salasana" msgstr "Väärä salasana"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Kin8\n" "Last-Translator: Kin8\n"
"Language-Team: Badablek, Amour, ikya, Cyan & Kin8\n" "Language-Team: Badablek, Amour, ikya, Cyan & Kin8\n"
@ -768,6 +768,9 @@ msgstr "NomJeu [IDJEU]"
msgid "Games" msgid "Games"
msgstr "Jeux" msgstr "Jeux"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr "Importer Catégories"
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "Catégories importées avec succès." msgstr "Catégories importées avec succès."
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Fichier entrant %0.2fKo" msgstr "Fichier entrant %0.2fKo"
@ -1544,6 +1550,9 @@ msgstr "Dossier Wiinnertag"
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "Wiinnertag nécessite une connexion automatique au réseau au lancement de l'application. Voulez-vous l'activer ?" msgstr "Wiinnertag nécessite une connexion automatique au réseau au lancement de l'application. Voulez-vous l'activer ?"
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Mot de passe incorrect" msgstr "Mot de passe incorrect"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2010-07-03 17:35-0800\n" "PO-Revision-Date: 2010-07-03 17:35-0800\n"
"Last-Translator: TheRealVisitor\n" "Last-Translator: TheRealVisitor\n"
"Language-Team: Bertilax, Snoozer, wishmasterf, ZEN.13, TheRealVisitor\n" "Language-Team: Bertilax, Snoozer, wishmasterf, ZEN.13, TheRealVisitor\n"
@ -768,6 +768,9 @@ msgstr "Spielname [SPIELID]"
msgid "Games" msgid "Games"
msgstr "Spiele" msgstr "Spiele"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "Genre:" msgstr "Genre:"
@ -807,6 +810,9 @@ msgstr "Importiere Kategorien"
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "Import erfolgreich." msgstr "Import erfolgreich."
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Eingehende Datei %0.2fKB" msgstr "Eingehende Datei %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr "Wiinertag Pfad"
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "Wiinnertag braucht eine aktivierte Netzwerkverbindung beim Start der Anwendung. Soll diese jetzt aktiviert werden?" msgstr "Wiinnertag braucht eine aktivierte Netzwerkverbindung beim Start der Anwendung. Soll diese jetzt aktiviert werden?"
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Falsches Passwort" msgstr "Falsches Passwort"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-12-29 11:05+0100\n" "PO-Revision-Date: 2009-12-29 11:05+0100\n"
"Last-Translator: Springdale\n" "Last-Translator: Springdale\n"
"Language-Team: Tusk, Springdale\n" "Language-Team: Tusk, Springdale\n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "Játékok" msgstr "Játékok"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Bejövõ fájl %0.2fKB" msgstr "Bejövõ fájl %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Hibás Jelszó" msgstr "Hibás Jelszó"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2011-03-10 21:00+0200\n" "PO-Revision-Date: 2011-03-10 21:00+0200\n"
"Last-Translator: Cambo \n" "Last-Translator: Cambo \n"
"Language-Team: Cambo\n" "Language-Team: Cambo\n"
@ -768,6 +768,9 @@ msgstr "Nomegioco [IDGIOCO]"
msgid "Games" msgid "Games"
msgstr "Giochi" msgstr "Giochi"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "Genere:" msgstr "Genere:"
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Dimensione file %0.2fKB" msgstr "Dimensione file %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Password Errata" msgstr "Password Errata"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: hosigumayuugi\n" "Last-Translator: hosigumayuugi\n"
"Language-Team: hosigumayuugi, papa, ichiroling\n" "Language-Team: hosigumayuugi, papa, ichiroling\n"
@ -768,6 +768,9 @@ msgstr "ゲーム名 [ゲームID]"
msgid "Games" msgid "Games"
msgstr "ゲーム総数" msgstr "ゲーム総数"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "ジャンル:" msgstr "ジャンル:"
@ -807,6 +810,9 @@ msgstr "カテゴリをインポート"
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "インポートに成功しました" msgstr "インポートに成功しました"
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "ファイルを受信中 %0.2fKB" msgstr "ファイルを受信中 %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr "Wiinnertag.xmlのパス"
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "Wiinnertagは自動ネット接続が有効になっている必要が有ります。有効にしますか?" msgstr "Wiinnertagは自動ネット接続が有効になっている必要が有ります。有効にしますか?"
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "暗証番号が違います" msgstr "暗証番号が違います"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: nextos@korea.com\n" "Last-Translator: nextos@korea.com\n"
"Language-Team: \n" "Language-Team: \n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "게임" msgstr "게임"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "화일 수신중 %0.2fKB" msgstr "화일 수신중 %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "잘못된 비밀번호" msgstr "잘못된 비밀번호"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: raschi\n" "Last-Translator: raschi\n"
"Language-Team: raschi\n" "Language-Team: raschi\n"
@ -768,6 +768,9 @@ msgstr "Spillnavn [SPILLID]"
msgid "Games" msgid "Games"
msgstr "Spill" msgstr "Spill"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "Sjanger:" msgstr "Sjanger:"
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Laster ned fil %0.2fKB" msgstr "Laster ned fil %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Feil passord" msgstr "Feil passord"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: ziom666 (zadania_prog@vp.pl)\n" "Last-Translator: ziom666 (zadania_prog@vp.pl)\n"
"Language-Team: \n" "Language-Team: \n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "Liczba gier" msgstr "Liczba gier"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Przychodzacy plik %0.2fKB" msgstr "Przychodzacy plik %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Bledne haslo" msgstr "Bledne haslo"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-23 18:52+0200\n" "PO-Revision-Date: 2009-10-23 18:52+0200\n"
"Last-Translator: aniemotion\n" "Last-Translator: aniemotion\n"
"Language-Team: boto12, aniemotion\n" "Language-Team: boto12, aniemotion\n"
@ -768,6 +768,9 @@ msgstr "Nome do Jogo [GAMEID]"
msgid "Games" msgid "Games"
msgstr "Jogos" msgstr "Jogos"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Recebendo arquivo %0.2fKB" msgstr "Recebendo arquivo %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Password Incorreto" msgstr "Password Incorreto"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2011-06-14 00:00-0000\n" "PO-Revision-Date: 2011-06-14 00:00-0000\n"
"Last-Translator: pplucky <pplucky@gmail.com>\n" "Last-Translator: pplucky <pplucky@gmail.com>\n"
"Language-Team: Sky8000, pplucky\n" "Language-Team: Sky8000, pplucky\n"
@ -768,6 +768,9 @@ msgstr "NomeJogo [IDJOGO]"
msgid "Games" msgid "Games"
msgstr "Jogos" msgstr "Jogos"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "Tipo:" msgstr "Tipo:"
@ -807,6 +810,9 @@ msgstr "Importar Categorias"
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "Operação de importação completada com sucesso." msgstr "Operação de importação completada com sucesso."
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "A receber ficheiro %0.2fKB" msgstr "A receber ficheiro %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr "Caminho Wiinnertag"
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "Wiinnertag necessita ligação automática à rede no arranque da aplicação. Quer habilitar agora?" msgstr "Wiinnertag necessita ligação automática à rede no arranque da aplicação. Quer habilitar agora?"
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Password Incorrecta" msgstr "Password Incorrecta"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: nikolai_ca\n" "Last-Translator: nikolai_ca\n"
"Language-Team: Kir, alendit, nikolai_ca\n" "Language-Team: Kir, alendit, nikolai_ca\n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "Игры" msgstr "Игры"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Входящий файл размером в %0.2fKB" msgstr "Входящий файл размером в %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Неверный пароль" msgstr "Неверный пароль"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: knife.hu kavid emul8ion\n" "Last-Translator: knife.hu kavid emul8ion\n"
"Language-Team: kavid\n" "Language-Team: kavid\n"
@ -768,6 +768,9 @@ msgstr "游戏名[游戏ID]"
msgid "Games" msgid "Games"
msgstr "游戏" msgstr "游戏"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "类型:" msgstr "类型:"
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "正在接收文件 %0.2fKB" msgstr "正在接收文件 %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "密码错误" msgstr "密码错误"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: SirPalax\n" "Last-Translator: SirPalax\n"
"Language-Team: Penn, SirPalax\n" "Language-Team: Penn, SirPalax\n"
@ -768,6 +768,9 @@ msgstr "NombreDelJuego [IDdelJuego]"
msgid "Games" msgid "Games"
msgstr "Juegos" msgstr "Juegos"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Archivo recibido %0.2fKB" msgstr "Archivo recibido %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Contraseña incorrecta" msgstr "Contraseña incorrecta"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2010-01-19 17:39+0200\n" "PO-Revision-Date: 2010-01-19 17:39+0200\n"
"Last-Translator: Katsurou\n" "Last-Translator: Katsurou\n"
"Language-Team: Katsurou, pirateX\n" "Language-Team: Katsurou, pirateX\n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "Spel" msgstr "Spel"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Inkommande fil %0.2fKB" msgstr "Inkommande fil %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Fel Lösenord" msgstr "Fel Lösenord"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2010-02-15 21:00+0800\n" "PO-Revision-Date: 2010-02-15 21:00+0800\n"
"Last-Translator: Jane.H\n" "Last-Translator: Jane.H\n"
"Language-Team: kyogc, Miller, Mika Li, Jane.H\n" "Language-Team: kyogc, Miller, Mika Li, Jane.H\n"
@ -768,6 +768,9 @@ msgstr "遊戲名稱 [GAMEID]"
msgid "Games" msgid "Games"
msgstr "遊戲數量" msgstr "遊戲數量"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "類型:" msgstr "類型:"
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "正在接收檔案 %0.2fKB" msgstr "正在接收檔案 %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "密碼錯誤" msgstr "密碼錯誤"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Nitro_subzero \n" "Last-Translator: Nitro_subzero \n"
"Language-Team: Nitro_subzero\n" "Language-Team: Nitro_subzero\n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "เกมส์" msgstr "เกมส์"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "ดาวน์โหลดไฟล์ %0.2fKB" msgstr "ดาวน์โหลดไฟล์ %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "รหัสผ่านผิดพลาด" msgstr "รหัสผ่านผิดพลาด"

View File

@ -5,7 +5,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: 2011-06-25 21:43+0200\n" "POT-Creation-Date: 2011-06-26 23:33+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: omercigingelini\n" "Last-Translator: omercigingelini\n"
"Language-Team: omercigingelini\n" "Language-Team: omercigingelini\n"
@ -768,6 +768,9 @@ msgstr ""
msgid "Games" msgid "Games"
msgstr "Oyunlar" msgstr "Oyunlar"
msgid "Generating GXGameCategories.xml"
msgstr ""
msgid "Genre:" msgid "Genre:"
msgstr "" msgstr ""
@ -807,6 +810,9 @@ msgstr ""
msgid "Import operation successfully completed." msgid "Import operation successfully completed."
msgstr "" msgstr ""
msgid "Importing categories"
msgstr ""
#, c-format #, c-format
msgid "Incoming file %0.2fKB" msgid "Incoming file %0.2fKB"
msgstr "Gelen dosya %0.2fKB" msgstr "Gelen dosya %0.2fKB"
@ -1544,6 +1550,9 @@ msgstr ""
msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?" msgid "Wiinnertag requires you to enable automatic network connect on application start. Do you want to enable it now?"
msgstr "" msgstr ""
msgid "Writing GXGameCategories.xml"
msgstr ""
msgid "Wrong Password" msgid "Wrong Password"
msgstr "Yanlış Parola" msgstr "Yanlış Parola"

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,9 @@
#include <malloc.h> #include <malloc.h>
#include <string.h> #include <string.h>
#include <ogc/system.h>
#define MAX_MEM1_ARENA_LO ((void *) (0x81700000-size)) // Preserve 1MB for other stuff if MEM1 almost out
#define MEM2_PRIORITY_SIZE 2097152 //2MB #define MEM2_PRIORITY_SIZE 2097152 //2MB
// Forbid the use of MEM2 through malloc // Forbid the use of MEM2 through malloc
@ -67,7 +69,7 @@ extern __typeof(malloc_usable_size) __real_malloc_usable_size;
void *__wrap_malloc(size_t size) void *__wrap_malloc(size_t size)
{ {
void *p; void *p;
if (g_bigGoesToMem2 && size > MEM2_PRIORITY_SIZE) if ((SYS_GetArena1Lo() > MAX_MEM1_ARENA_LO) || (g_bigGoesToMem2 && size > MEM2_PRIORITY_SIZE))
{ {
p = MEM2_alloc(size); p = MEM2_alloc(size);
if (p != 0) { if (p != 0) {
@ -85,7 +87,7 @@ void *__wrap_malloc(size_t size)
void *__wrap_calloc(size_t n, size_t size) void *__wrap_calloc(size_t n, size_t size)
{ {
void *p; void *p;
if (g_bigGoesToMem2 && size > MEM2_PRIORITY_SIZE) if ((SYS_GetArena1Lo() > MAX_MEM1_ARENA_LO) || (g_bigGoesToMem2 && size > MEM2_PRIORITY_SIZE))
{ {
p = MEM2_alloc(n * size); p = MEM2_alloc(n * size);
if (p != 0) if (p != 0)
@ -109,7 +111,7 @@ void *__wrap_calloc(size_t n, size_t size)
void *__wrap_memalign(size_t a, size_t size) void *__wrap_memalign(size_t a, size_t size)
{ {
void *p; void *p;
if (g_bigGoesToMem2 && size > MEM2_PRIORITY_SIZE) if ((SYS_GetArena1Lo() > MAX_MEM1_ARENA_LO) || (g_bigGoesToMem2 && size > MEM2_PRIORITY_SIZE))
{ {
if (a <= 32 && 32 % a == 0) if (a <= 32 && 32 % a == 0)
{ {

View File

@ -384,7 +384,7 @@ s32 DownloadWithResponse(const char * url, u8 **outbuffer, u32 *outsize)
strlcpy(domain, url + strlen("http://"), domainlength + 1); strlcpy(domain, url + strlen("http://"), domainlength + 1);
int connect = GetConnection(domain); int connect = GetConnection(domain);
if (connection < 0) if (connect < 0)
return -1; return -1;
//Form a nice request header to send to the webserver //Form a nice request header to send to the webserver

View File

@ -30,6 +30,7 @@
#include "usbloader/GameList.h" #include "usbloader/GameList.h"
#include "language/gettext.h" #include "language/gettext.h"
#include "FileOperations/fileops.h" #include "FileOperations/fileops.h"
#include "prompts/ProgressWindow.h"
#include "xml/WiiTDB.hpp" #include "xml/WiiTDB.hpp"
#include "utils/StringTools.h" #include "utils/StringTools.h"
#include "svnrev.h" #include "svnrev.h"
@ -133,60 +134,81 @@ bool CGameCategories::Save()
CreateSubfolder(filepath); CreateSubfolder(filepath);
StartProgress(tr("Generating GXGameCategories.xml"), tr("Please wait..."), 0, false, true);
TiXmlDocument xmlDoc; TiXmlDocument xmlDoc;
TiXmlDeclaration declaration("1.0", "UTF-8", ""); TiXmlDeclaration declaration("1.0", "UTF-8", "");
xmlDoc.InsertEndChild(declaration); xmlDoc.InsertEndChild(declaration);
TiXmlElement Revision("Revision"); TiXmlElement Revision("Revision");
TiXmlText revText(GetRev()); TiXmlText revText(GetRev());
Revision.InsertEndChild(revText); Revision.InsertEndChild(revText);
xmlDoc.InsertEndChild(Revision); xmlDoc.InsertEndChild(Revision);
int progressSize = CategoryList.size() + List.size();
int progress = 0;
//! Add all categories as an ID map //! Add all categories as an ID map
{ {
TiXmlElement Categories("Categories"); //! On LinkEndChild TinyXML owns and deletes the elements allocated here.
//! This is more memory efficient than making another copy of the elements.
TiXmlElement *Categories = new TiXmlElement("Categories");
CategoryList.goToFirst(); CategoryList.goToFirst();
do do
{ {
TiXmlElement Category("Category"); ShowProgress(progress, progressSize);
Category.SetAttribute("ID", fmt("%02i", CategoryList.getCurrentID()));
Category.SetAttribute("Name", CategoryList.getCurrentName().c_str());
Categories.InsertEndChild(Category); TiXmlElement *Category = new TiXmlElement("Category");
Category->SetAttribute("ID", fmt("%02i", CategoryList.getCurrentID()));
Category->SetAttribute("Name", CategoryList.getCurrentName().c_str());
Categories->LinkEndChild(Category);
++progress;
} }
while(CategoryList.goToNext()); while(CategoryList.goToNext());
xmlDoc.InsertEndChild(Categories); xmlDoc.LinkEndChild(Categories);
} }
//! Add game specific categories now //! Add game specific categories now
{ {
TiXmlElement GameCategories("GameCategories"); //! On LinkEndChild TinyXML owns and deletes the elements allocated here.
//! This is more memory efficient than making another copy of the elements.
TiXmlElement *GameCategories = new TiXmlElement("GameCategories");
for(map<string, vector<unsigned int> >::iterator itr = List.begin(); itr != List.end(); itr++) for(map<string, vector<unsigned int> >::iterator itr = List.begin(); itr != List.end(); itr++)
{ {
TiXmlElement Game("Game"); ShowProgress(progress, progressSize);
Game.SetAttribute("ID", itr->first.c_str());
Game.SetAttribute("Title", GameTitles.GetTitle(itr->first.c_str())); TiXmlElement *Game = new TiXmlElement("Game");
Game->SetAttribute("ID", itr->first.c_str());
Game->SetAttribute("Title", GameTitles.GetTitle(itr->first.c_str()));
for(u32 i = 0; i < itr->second.size(); ++i) for(u32 i = 0; i < itr->second.size(); ++i)
{ {
TiXmlElement Category("Category"); const char *CatName = CategoryList[itr->second[i]];
Category.SetAttribute("ID", fmt("%02i", itr->second[i])); if(!CatName)
Category.SetAttribute("Name", CategoryList[itr->second[i]]); CatName = "";
Game.InsertEndChild(Category); TiXmlElement *Category = new TiXmlElement("Category");
Category->SetAttribute("ID", fmt("%02i", itr->second[i]));
Category->SetAttribute("Name", CatName);
Game->LinkEndChild(Category);
} }
GameCategories.InsertEndChild(Game); GameCategories->LinkEndChild(Game);
++progress;
} }
xmlDoc.InsertEndChild(GameCategories); xmlDoc.LinkEndChild(GameCategories);
} }
ShowProgress(tr("Writing GXGameCategories.xml"), tr("Please wait..."), 0, progressSize, progressSize, false, true);
xmlDoc.SaveFile(configPath); xmlDoc.SaveFile(configPath);
ProgressStop();
return true; return true;
} }
@ -337,12 +359,16 @@ bool CGameCategories::ImportFromWiiTDB(const string &xmlpath)
if(!XML_DB.OpenFile(xmlpath.c_str())) if(!XML_DB.OpenFile(xmlpath.c_str()))
return false; return false;
StartProgress(tr("Importing categories"), tr("Please wait..."), 0, false, true);
XML_DB.SetLanguageCode(Settings.db_language); XML_DB.SetLanguageCode(Settings.db_language);
wString filter(gameList.GetCurrentFilter()); wString filter(gameList.GetCurrentFilter());
gameList.LoadUnfiltered(); gameList.LoadUnfiltered();
for(int i = 0; i < gameList.size(); ++i) for(int i = 0; i < gameList.size(); ++i)
{ {
ShowProgress(i, gameList.size());
vector<string> genreList; vector<string> genreList;
if(!XML_DB.GetGenreList((const char *) gameList[i]->id, genreList)) if(!XML_DB.GetGenreList((const char *) gameList[i]->id, genreList))
@ -360,5 +386,7 @@ bool CGameCategories::ImportFromWiiTDB(const string &xmlpath)
XML_DB.CloseFile(); XML_DB.CloseFile();
gameList.FilterList(filter.c_str()); gameList.FilterList(filter.c_str());
ProgressStop();
return true; return true;
} }

View File

@ -30,7 +30,7 @@ void CGameTitles::SetGameTitle(const char * id, const char * title)
const char * CGameTitles::GetTitle(const char * id) const const char * CGameTitles::GetTitle(const char * id) const
{ {
if(!id) if(!id)
return NULL; return "";
for(u32 i = 0; i < TitleList.size(); ++i) for(u32 i = 0; i < TitleList.size(); ++i)
{ {
@ -38,13 +38,24 @@ const char * CGameTitles::GetTitle(const char * id) const
return TitleList[i].Title.c_str(); return TitleList[i].Title.c_str();
} }
return NULL; //! Since not found in the WiiTDB search in the game header for a title
if(gameList.GameCount() != gameList.size())
gameList.LoadUnfiltered();
for(int i = 0; i < gameList.size(); ++i)
{
if(strncasecmp(id, (char *) gameList[i]->id, 6) == 0)
return gameList[i]->title;
}
return "";
} }
const char * CGameTitles::GetTitle(const struct discHdr *header) const const char * CGameTitles::GetTitle(const struct discHdr *header) const
{ {
if(!header) if(!header)
return NULL; return "";
for(u32 i = 0; i < TitleList.size(); ++i) for(u32 i = 0; i < TitleList.size(); ++i)
{ {

View File

@ -31,6 +31,7 @@
#include "network/networkops.h" #include "network/networkops.h"
#include "FileOperations/fileops.h" #include "FileOperations/fileops.h"
#include "prompts/PromptWindows.h" #include "prompts/PromptWindows.h"
#include "usbloader/GameList.h"
#include "language/gettext.h" #include "language/gettext.h"
static const char * OnOffText[] = static const char * OnOffText[] =
@ -59,9 +60,21 @@ FeatureSettingsMenu::FeatureSettingsMenu()
Options->SetName(Idx++, "%s", tr( "Wiinnertag" )); Options->SetName(Idx++, "%s", tr( "Wiinnertag" ));
Options->SetName(Idx++, "%s", tr( "Import Categories" )); Options->SetName(Idx++, "%s", tr( "Import Categories" ));
OldTitlesOverride = Settings.titlesOverride;
SetOptionValues(); SetOptionValues();
} }
FeatureSettingsMenu::~FeatureSettingsMenu()
{
if (Settings.titlesOverride != OldTitlesOverride)
{
GameTitles.LoadTitlesFromWiiTDB(Settings.titlestxt_path, true);
if(!Settings.titlesOverride)
gameList.ReadGameList();
}
}
void FeatureSettingsMenu::SetOptionValues() void FeatureSettingsMenu::SetOptionValues()
{ {
int Idx = 0; int Idx = 0;

View File

@ -30,10 +30,13 @@ class FeatureSettingsMenu : public SettingsMenu
{ {
public: public:
FeatureSettingsMenu(); FeatureSettingsMenu();
virtual ~FeatureSettingsMenu();
protected: protected:
void SetOptionValues(); void SetOptionValues();
int GetMenuInternal(); int GetMenuInternal();
int OldTitlesOverride;
OptionList GuiOptions; OptionList GuiOptions;
}; };

View File

@ -30,8 +30,6 @@
#include "settings/SettingsPrompts.h" #include "settings/SettingsPrompts.h"
#include "settings/GameTitles.h" #include "settings/GameTitles.h"
#include "settings/CGameCategories.hpp" #include "settings/CGameCategories.hpp"
#include "xml/xml.h"
#include "usbloader/GameList.h"
#include "usbloader/wbfs.h" #include "usbloader/wbfs.h"
#include "utils/tools.h" #include "utils/tools.h"
@ -117,18 +115,6 @@ GuiSettingsMenu::GuiSettingsMenu()
Options->SetName(Idx++, "%s", tr( "HOME Menu" )); Options->SetName(Idx++, "%s", tr( "HOME Menu" ));
SetOptionValues(); SetOptionValues();
OldTitlesOverride = Settings.titlesOverride;
}
GuiSettingsMenu::~GuiSettingsMenu()
{
if (Settings.titlesOverride != OldTitlesOverride)
{
GameTitles.LoadTitlesFromWiiTDB(Settings.titlestxt_path, true);
if(!Settings.titlesOverride)
gameList.ReadGameList();
}
} }
void GuiSettingsMenu::SetOptionValues() void GuiSettingsMenu::SetOptionValues()

View File

@ -30,13 +30,10 @@ class GuiSettingsMenu : public SettingsMenu
{ {
public: public:
GuiSettingsMenu(); GuiSettingsMenu();
virtual ~GuiSettingsMenu();
protected: protected:
void SetOptionValues(); void SetOptionValues();
int GetMenuInternal(); int GetMenuInternal();
int OldTitlesOverride;
OptionList GuiOptions; OptionList GuiOptions;
}; };

View File

@ -231,7 +231,7 @@ void ThemeDownloader::SetupMainButtons()
if (!IsNetworkInit() && !NetworkInitPrompt()) if (!IsNetworkInit() && !NetworkInitPrompt())
{ {
ShowError("Could not initialize network!"); ShowError(tr("Could not initialize network!"));
return; return;
} }

View File

@ -32,7 +32,6 @@
#include "settings/CGameStatistics.h" #include "settings/CGameStatistics.h"
#include "settings/GameTitles.h" #include "settings/GameTitles.h"
#include "settings/CGameCategories.hpp" #include "settings/CGameCategories.hpp"
#include "xml/xml.h"
#include "FreeTypeGX.h" #include "FreeTypeGX.h"
#include "GameList.h" #include "GameList.h"
#include "memory/memory.h" #include "memory/memory.h"

View File

@ -444,7 +444,7 @@ s32 Wbfs_Fat::GetHeadersCount()
// if we have titles.txt entry use that // if we have titles.txt entry use that
title = GameTitles.GetTitle(id); title = GameTitles.GetTitle(id);
// if no titles.txt get title from dir or file name // if no titles.txt get title from dir or file name
if (!title && *fname_title) if ((!title || strlen(title) == 0) && *fname_title)
title = fname_title; title = fname_title;
if (title) if (title)

View File

@ -887,7 +887,7 @@ bool TiXmlElement::Accept( TiXmlVisitor* visitor ) const
TiXmlNode* TiXmlElement::Clone() const TiXmlNode* TiXmlElement::Clone() const
{ {
TiXmlElement* clone = new TiXmlElement( Value() ); TiXmlElement* clone = new TIXML_NOTHROW TiXmlElement( Value() );
if ( !clone ) if ( !clone )
return 0; return 0;
@ -1028,7 +1028,11 @@ bool TiXmlDocument::LoadFile( FILE* file, TiXmlEncoding encoding )
} }
*/ */
char* buf = new char[ length+1 ]; char* buf = new TIXML_NOTHROW char[ length+1 ];
if(!buf) {
SetError( TIXML_ERROR, 0, 0, TIXML_ENCODING_UNKNOWN );
return false;
}
buf[0] = 0; buf[0] = 0;
if ( fread( buf, length, 1, file ) != 1 ) { if ( fread( buf, length, 1, file ) != 1 ) {
@ -1132,7 +1136,7 @@ void TiXmlDocument::CopyTo( TiXmlDocument* target ) const
TiXmlNode* TiXmlDocument::Clone() const TiXmlNode* TiXmlDocument::Clone() const
{ {
TiXmlDocument* clone = new TiXmlDocument(); TiXmlDocument* clone = new TIXML_NOTHROW TiXmlDocument();
if ( !clone ) if ( !clone )
return 0; return 0;
@ -1318,7 +1322,7 @@ bool TiXmlComment::Accept( TiXmlVisitor* visitor ) const
TiXmlNode* TiXmlComment::Clone() const TiXmlNode* TiXmlComment::Clone() const
{ {
TiXmlComment* clone = new TiXmlComment(); TiXmlComment* clone = new TIXML_NOTHROW TiXmlComment();
if ( !clone ) if ( !clone )
return 0; return 0;
@ -1365,7 +1369,7 @@ bool TiXmlText::Accept( TiXmlVisitor* visitor ) const
TiXmlNode* TiXmlText::Clone() const TiXmlNode* TiXmlText::Clone() const
{ {
TiXmlText* clone = 0; TiXmlText* clone = 0;
clone = new TiXmlText( "" ); clone = new TIXML_NOTHROW TiXmlText( "" );
if ( !clone ) if ( !clone )
return 0; return 0;
@ -1454,7 +1458,7 @@ bool TiXmlDeclaration::Accept( TiXmlVisitor* visitor ) const
TiXmlNode* TiXmlDeclaration::Clone() const TiXmlNode* TiXmlDeclaration::Clone() const
{ {
TiXmlDeclaration* clone = new TiXmlDeclaration(); TiXmlDeclaration* clone = new TIXML_NOTHROW TiXmlDeclaration();
if ( !clone ) if ( !clone )
return 0; return 0;
@ -1486,7 +1490,7 @@ bool TiXmlUnknown::Accept( TiXmlVisitor* visitor ) const
TiXmlNode* TiXmlUnknown::Clone() const TiXmlNode* TiXmlUnknown::Clone() const
{ {
TiXmlUnknown* clone = new TiXmlUnknown(); TiXmlUnknown* clone = new TIXML_NOTHROW TiXmlUnknown();
if ( !clone ) if ( !clone )
return 0; return 0;
@ -1559,10 +1563,13 @@ TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const std::string& _name )
{ {
TiXmlAttribute* attrib = Find( _name ); TiXmlAttribute* attrib = Find( _name );
if ( !attrib ) { if ( !attrib ) {
attrib = new TiXmlAttribute(); attrib = new TIXML_NOTHROW TiXmlAttribute();
if(attrib)
{
Add( attrib ); Add( attrib );
attrib->SetName( _name ); attrib->SetName( _name );
} }
}
return attrib; return attrib;
} }
#endif #endif
@ -1583,10 +1590,13 @@ TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const char* _name )
{ {
TiXmlAttribute* attrib = Find( _name ); TiXmlAttribute* attrib = Find( _name );
if ( !attrib ) { if ( !attrib ) {
attrib = new TiXmlAttribute(); attrib = new TIXML_NOTHROW TiXmlAttribute();
if(attrib)
{
Add( attrib ); Add( attrib );
attrib->SetName( _name ); attrib->SetName( _name );
} }
}
return attrib; return attrib;
} }

View File

@ -48,9 +48,11 @@ distribution.
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#define TIXML_STRING std::string #define TIXML_STRING std::string
#define TIXML_NOTHROW (std::nothrow)
#else #else
#include "tinystr.h" #include "tinystr.h"
#define TIXML_STRING TiXmlString #define TIXML_STRING TiXmlString
#define TIXML_NOTHROW
#endif #endif
// Deprecated library function hell. Compilers want to use the // Deprecated library function hell. Compilers want to use the

View File

@ -850,21 +850,21 @@ TiXmlNode* TiXmlNode::Identify( const char* p, TiXmlEncoding encoding )
#ifdef DEBUG_PARSER #ifdef DEBUG_PARSER
TIXML_LOG( "XML parsing Declaration\n" ); TIXML_LOG( "XML parsing Declaration\n" );
#endif #endif
returnNode = new TiXmlDeclaration(); returnNode = new TIXML_NOTHROW TiXmlDeclaration();
} }
else if ( StringEqual( p, commentHeader, false, encoding ) ) else if ( StringEqual( p, commentHeader, false, encoding ) )
{ {
#ifdef DEBUG_PARSER #ifdef DEBUG_PARSER
TIXML_LOG( "XML parsing Comment\n" ); TIXML_LOG( "XML parsing Comment\n" );
#endif #endif
returnNode = new TiXmlComment(); returnNode = new TIXML_NOTHROW TiXmlComment();
} }
else if ( StringEqual( p, cdataHeader, false, encoding ) ) else if ( StringEqual( p, cdataHeader, false, encoding ) )
{ {
#ifdef DEBUG_PARSER #ifdef DEBUG_PARSER
TIXML_LOG( "XML parsing CDATA\n" ); TIXML_LOG( "XML parsing CDATA\n" );
#endif #endif
TiXmlText* text = new TiXmlText( "" ); TiXmlText* text = new TIXML_NOTHROW TiXmlText( "" );
text->SetCDATA( true ); text->SetCDATA( true );
returnNode = text; returnNode = text;
} }
@ -873,7 +873,7 @@ TiXmlNode* TiXmlNode::Identify( const char* p, TiXmlEncoding encoding )
#ifdef DEBUG_PARSER #ifdef DEBUG_PARSER
TIXML_LOG( "XML parsing Unknown(1)\n" ); TIXML_LOG( "XML parsing Unknown(1)\n" );
#endif #endif
returnNode = new TiXmlUnknown(); returnNode = new TIXML_NOTHROW TiXmlUnknown();
} }
else if ( IsAlpha( *(p+1), encoding ) else if ( IsAlpha( *(p+1), encoding )
|| *(p+1) == '_' ) || *(p+1) == '_' )
@ -881,14 +881,14 @@ TiXmlNode* TiXmlNode::Identify( const char* p, TiXmlEncoding encoding )
#ifdef DEBUG_PARSER #ifdef DEBUG_PARSER
TIXML_LOG( "XML parsing Element\n" ); TIXML_LOG( "XML parsing Element\n" );
#endif #endif
returnNode = new TiXmlElement( "" ); returnNode = new TIXML_NOTHROW TiXmlElement( "" );
} }
else else
{ {
#ifdef DEBUG_PARSER #ifdef DEBUG_PARSER
TIXML_LOG( "XML parsing Unknown(2)\n" ); TIXML_LOG( "XML parsing Unknown(2)\n" );
#endif #endif
returnNode = new TiXmlUnknown(); returnNode = new TIXML_NOTHROW TiXmlUnknown();
} }
if ( returnNode ) if ( returnNode )
@ -1140,7 +1140,7 @@ const char* TiXmlElement::Parse( const char* p, TiXmlParsingData* data, TiXmlEnc
else else
{ {
// Try to read an attribute: // Try to read an attribute:
TiXmlAttribute* attrib = new TiXmlAttribute(); TiXmlAttribute* attrib = new TIXML_NOTHROW TiXmlAttribute();
if ( !attrib ) if ( !attrib )
{ {
return 0; return 0;
@ -1190,7 +1190,7 @@ const char* TiXmlElement::ReadValue( const char* p, TiXmlParsingData* data, TiXm
if ( *p != '<' ) if ( *p != '<' )
{ {
// Take what we have, make a text element. // Take what we have, make a text element.
TiXmlText* textNode = new TiXmlText( "" ); TiXmlText* textNode = new TIXML_NOTHROW TiXmlText( "" );
if ( !textNode ) if ( !textNode )
{ {