From b7da5eb058d1c83fd75e655cf875387f547dbe22 Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Sat, 1 Aug 2009 22:40:01 +0000 Subject: [PATCH] *Fixed the Format Menu which was not working at all before lol *Added auto create subfolders to GCT creation. *Some minor fixes --- Languages/czech.lang | 14 ++--- Languages/danish.lang | 17 +++--- Languages/dutch.lang | 17 +++--- Languages/english.lang | 11 ++-- Languages/finnish.lang | 17 +++--- Languages/french.lang | 17 +++--- Languages/german.lang | 21 ++++--- Languages/hungarian.lang | 17 +++--- Languages/italian.lang | 17 +++--- Languages/japanese.lang | 17 +++--- Languages/korean.lang | 17 +++--- Languages/norwegian.lang | 17 +++--- Languages/polish.lang | 14 ++--- Languages/portuguese_br.lang | 17 +++--- Languages/portuguese_pt.lang | 17 +++--- Languages/russian.lang | 17 +++--- Languages/schinese.lang | 17 +++--- Languages/spanish.lang | 17 +++--- Languages/swedish.lang | 17 +++--- Languages/tchinese.lang | 17 +++--- Languages/turkish.lang | 17 +++--- source/cheats/cheatmenu.cpp | 8 ++- source/libwiigui/gui_gamebrowser.cpp | 7 ++- source/libwiigui/gui_gamegrid.cpp | 16 ++++-- source/menu.cpp | 84 ++++++++++++++-------------- 25 files changed, 264 insertions(+), 200 deletions(-) diff --git a/Languages/czech.lang b/Languages/czech.lang index 44d501ce..4c465415 100644 --- a/Languages/czech.lang +++ b/Languages/czech.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: David Jelinek (djelinek@hotmail.com) \n" "Language-Team: r686 - last version on http://startgolf.tym.cz/czech.lang \n" @@ -454,6 +454,9 @@ msgstr "Ukoncit USB Loader GX?" msgid "Failed formating" msgstr "Neúspešné formátování" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Ún" @@ -713,9 +716,6 @@ msgstr "Nechybí žádný soubor!" msgid "No new updates." msgstr "Není dostupná žádná aktualizace." -msgid "No partitions found" -msgstr "Nebyl nalezen žádný oddíl" - msgid "Normal" msgstr "Normální" @@ -830,9 +830,6 @@ msgstr "Prejmenovat hru na WBFS" msgid "Reset Playcounter" msgstr "Vynulovat cítac spuštení" -msgid "Restart" -msgstr "" - msgid "Restarting..." msgstr "Restartuji..." @@ -1142,3 +1139,6 @@ msgstr "z " msgid "seconds left" msgstr "sekund zbývá" + +#~ msgid "No partitions found" +#~ msgstr "Nebyl nalezen žádný oddíl" diff --git a/Languages/danish.lang b/Languages/danish.lang index 710bd8af..4f2cb3ff 100644 --- a/Languages/danish.lang +++ b/Languages/danish.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 23:02+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "Afslut USB Loader GX?" msgid "Failed formating" msgstr "Formateringen mislykkedes" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Feb" @@ -713,9 +716,6 @@ msgstr "Ingen filer mangler!" msgid "No new updates." msgstr "Ingen nye opdateringer." -msgid "No partitions found" -msgstr "Ingen partitioner fundet" - msgid "Normal" msgstr "Normal" @@ -830,9 +830,6 @@ msgstr "Omdøb spil på WBFS" msgid "Reset Playcounter" msgstr "Nulstil spiltæller" -msgid "Restart" -msgstr "Genstart" - msgid "Restarting..." msgstr "Genstarter..." @@ -1143,5 +1140,11 @@ msgstr "af" msgid "seconds left" msgstr "sekunder tilbage" +#~ msgid "No partitions found" +#~ msgstr "Ingen partitioner fundet" + +#~ msgid "Restart" +#~ msgstr "Genstart" + #~ msgid "Saving" #~ msgstr "Gemmer" diff --git a/Languages/dutch.lang b/Languages/dutch.lang index 7526e26f..e1e47922 100644 --- a/Languages/dutch.lang +++ b/Languages/dutch.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: tj_cool\n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "USB Loader GX Afsluiten?" msgid "Failed formating" msgstr "Formatteren mislukt" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Feb" @@ -713,9 +716,6 @@ msgstr "Geen missende bestanden!" msgid "No new updates." msgstr "Geen nieuwe updates." -msgid "No partitions found" -msgstr "Geen partities gevonden" - msgid "Normal" msgstr "Normaal" @@ -830,9 +830,6 @@ msgstr "Spel hernoemen op WBFS" msgid "Reset Playcounter" msgstr "Speeltellers resetten" -msgid "Restart" -msgstr "Herstarten" - msgid "Restarting..." msgstr "Herstarten..." @@ -1143,5 +1140,11 @@ msgstr "van" msgid "seconds left" msgstr "seconden over:" +#~ msgid "No partitions found" +#~ msgstr "Geen partities gevonden" + +#~ msgid "Restart" +#~ msgstr "Herstarten" + #~ msgid "Saving" #~ msgstr "Bewaren..." diff --git a/Languages/english.lang b/Languages/english.lang index 23c08d34..1e786574 100644 --- a/Languages/english.lang +++ b/Languages/english.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "" msgid "Failed formating" msgstr "" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "" @@ -713,9 +716,6 @@ msgstr "" msgid "No new updates." msgstr "" -msgid "No partitions found" -msgstr "" - msgid "Normal" msgstr "" @@ -830,9 +830,6 @@ msgstr "" msgid "Reset Playcounter" msgstr "" -msgid "Restart" -msgstr "" - msgid "Restarting..." msgstr "" diff --git a/Languages/finnish.lang b/Languages/finnish.lang index 20325208..f85eb9ec 100644 --- a/Languages/finnish.lang +++ b/Languages/finnish.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "Poistu USB Loader GX:stä?" msgid "Failed formating" msgstr "Formatointi ei onnistunut" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "" @@ -713,9 +716,6 @@ msgstr "Ei tiedostoja kadoksissa!" msgid "No new updates." msgstr "" -msgid "No partitions found" -msgstr "Osioita ei löytynyt" - msgid "Normal" msgstr "Normaali" @@ -830,9 +830,6 @@ msgstr "Uudelleennimeä peli" msgid "Reset Playcounter" msgstr "" -msgid "Restart" -msgstr "Käynnistä uudelleen" - msgid "Restarting..." msgstr "" @@ -1142,3 +1139,9 @@ msgstr "josta" msgid "seconds left" msgstr "sekuntia jäljellä" + +#~ msgid "No partitions found" +#~ msgstr "Osioita ei löytynyt" + +#~ msgid "Restart" +#~ msgstr "Käynnistä uudelleen" diff --git a/Languages/french.lang b/Languages/french.lang index bc3a427c..e02f723f 100644 --- a/Languages/french.lang +++ b/Languages/french.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: Kin8\n" "Language-Team: Badablek, Amour, ikya, OuahOuah, dj_skual & Kin8\n" @@ -454,6 +454,9 @@ msgstr "Quitter USB Loader GX ?" msgid "Failed formating" msgstr "Échec du formatage" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Fév" @@ -713,9 +716,6 @@ msgstr "Aucun fichier manquant !" msgid "No new updates." msgstr "Pas de nouvelle Mise à Jour." -msgid "No partitions found" -msgstr "Aucune partition trouvée" - msgid "Normal" msgstr "4:3" @@ -830,9 +830,6 @@ msgstr "Renommer un jeu" msgid "Reset Playcounter" msgstr "Reset Utilisation du Jeu" -msgid "Restart" -msgstr "Redémarrer" - msgid "Restarting..." msgstr "Redémarrage..." @@ -1143,5 +1140,11 @@ msgstr "sur" msgid "seconds left" msgstr "secondes restantes" +#~ msgid "No partitions found" +#~ msgstr "Aucune partition trouvée" + +#~ msgid "Restart" +#~ msgstr "Redémarrer" + #~ msgid "Saving" #~ msgstr "Sauvegarde" diff --git a/Languages/german.lang b/Languages/german.lang index 2805b535..ffa1a8e0 100644 --- a/Languages/german.lang +++ b/Languages/german.lang @@ -1,10 +1,10 @@ -# USB Loader GX language source file. +# USB Loader GX language source file. # msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 23:13+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "USB Loader GX beenden?" msgid "Failed formating" msgstr "Formatieren fehlgeschlagen" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Feb" @@ -713,9 +716,6 @@ msgstr "Alle Dateien vorhanden!" msgid "No new updates." msgstr "Keine Aktualisierung vorhanden." -msgid "No partitions found" -msgstr "Keine Partitionen gefunden" - msgid "Normal" msgstr "Normal" @@ -830,9 +830,6 @@ msgstr "Spiel umbenennen" msgid "Reset Playcounter" msgstr "Spielzähler zurücksetzen" -msgid "Restart" -msgstr "Neustart" - msgid "Restarting..." msgstr "Starte Neu..." @@ -949,7 +946,7 @@ msgid "Themepath change" msgstr "Theme Pfad ändern" msgid "Time left:" -msgstr "Zeit verbleibend:" +msgstr "Noch:" msgid "Title Launcher" msgstr "" @@ -1143,6 +1140,12 @@ msgstr "von" msgid "seconds left" msgstr "Sekunden verbleiben" +#~ msgid "No partitions found" +#~ msgstr "Keine Partitionen gefunden" + +#~ msgid "Restart" +#~ msgstr "Neustart" + #~ msgid "Saving" #~ msgstr "Speichere" diff --git a/Languages/hungarian.lang b/Languages/hungarian.lang index 63b70162..a063635e 100644 --- a/Languages/hungarian.lang +++ b/Languages/hungarian.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: Tusk\n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "Kilépsz az USB Loader GX-bõl?" msgid "Failed formating" msgstr "Formázás sikertelen" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Feb" @@ -713,9 +716,6 @@ msgstr "Egy fájl sem hiányzik!" msgid "No new updates." msgstr "Nem elérhetõ frissítés." -msgid "No partitions found" -msgstr "Nem találtam particiót" - msgid "Normal" msgstr "Normális" @@ -830,9 +830,6 @@ msgstr "WBFS játék átnevezése" msgid "Reset Playcounter" msgstr "Elindítások Nullázása" -msgid "Restart" -msgstr "Újraindítás" - msgid "Restarting..." msgstr "Újraindítás..." @@ -1142,3 +1139,9 @@ msgstr " " msgid "seconds left" msgstr "hátralévõ másodperc" + +#~ msgid "No partitions found" +#~ msgstr "Nem találtam particiót" + +#~ msgid "Restart" +#~ msgstr "Újraindítás" diff --git a/Languages/italian.lang b/Languages/italian.lang index 57438248..cd917110 100644 --- a/Languages/italian.lang +++ b/Languages/italian.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-24 11:00+0200\n" "Last-Translator: Cambo \n" "Language-Team: FoxeJoe & Cambo\n" @@ -454,6 +454,9 @@ msgstr "Esci da USB Loader GX?" msgid "Failed formating" msgstr "Errore Formattazione" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "febbraio" @@ -713,9 +716,6 @@ msgstr "Nessun file mancante!" msgid "No new updates." msgstr "Nessun Aggiornamento." -msgid "No partitions found" -msgstr "Nessuna partizione trovata" - msgid "Normal" msgstr "Normale" @@ -830,9 +830,6 @@ msgstr "Rinomina Gioco su WBFS" msgid "Reset Playcounter" msgstr "Azzera contatore" -msgid "Restart" -msgstr "Riavvia" - msgid "Restarting..." msgstr "Sto riavviando..." @@ -1143,5 +1140,11 @@ msgstr "di" msgid "seconds left" msgstr "secondi mancanti" +#~ msgid "No partitions found" +#~ msgstr "Nessuna partizione trovata" + +#~ msgid "Restart" +#~ msgstr "Riavvia" + #~ msgid "Saving" #~ msgstr "Sto salvando" diff --git a/Languages/japanese.lang b/Languages/japanese.lang index 1bd1d175..71b2be26 100644 --- a/Languages/japanese.lang +++ b/Languages/japanese.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "USB Loader GXを終了しますか?" msgid "Failed formating" msgstr "フォーマットに失敗しました" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "2月" @@ -713,9 +716,6 @@ msgstr "ファイルを検出できませんでした!" msgid "No new updates." msgstr "更新はありません" -msgid "No partitions found" -msgstr "パーティションを検出できませんでした" - msgid "Normal" msgstr "Normal(4:3)" @@ -830,9 +830,6 @@ msgstr "WBFS上のゲーム名変更" msgid "Reset Playcounter" msgstr "プレイ回数のリセット" -msgid "Restart" -msgstr "再起動" - msgid "Restarting..." msgstr "再起動中..." @@ -1142,3 +1139,9 @@ msgstr "of" msgid "seconds left" msgstr "完了までの秒数" + +#~ msgid "No partitions found" +#~ msgstr "パーティションを検出できませんでした" + +#~ msgid "Restart" +#~ msgstr "再起動" diff --git a/Languages/korean.lang b/Languages/korean.lang index 6c73d149..7b10ac0f 100644 --- a/Languages/korean.lang +++ b/Languages/korean.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "USB로더 GX를 종료할까요?" msgid "Failed formating" msgstr "포맷 실패" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "" @@ -713,9 +716,6 @@ msgstr "누락 파일 없음!" msgid "No new updates." msgstr "" -msgid "No partitions found" -msgstr "파티션이 없습니다." - msgid "Normal" msgstr "일반" @@ -830,9 +830,6 @@ msgstr "WBFS에서 게임 이름 변경" msgid "Reset Playcounter" msgstr "" -msgid "Restart" -msgstr "다시 시작" - msgid "Restarting..." msgstr "" @@ -1142,3 +1139,9 @@ msgstr "중" msgid "seconds left" msgstr "초 남았습니다" + +#~ msgid "No partitions found" +#~ msgstr "파티션이 없습니다." + +#~ msgid "Restart" +#~ msgstr "다시 시작" diff --git a/Languages/norwegian.lang b/Languages/norwegian.lang index 99f7778d..7acfa860 100644 --- a/Languages/norwegian.lang +++ b/Languages/norwegian.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 23:13+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "Avslutt USB Loader GX?" msgid "Failed formating" msgstr "Feil ved formatering" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Feb" @@ -713,9 +716,6 @@ msgstr "Ingen filer mangler!" msgid "No new updates." msgstr "Ingen nye oppdateringer." -msgid "No partitions found" -msgstr "Ingen partisjoner funnet" - msgid "Normal" msgstr "Normal" @@ -830,9 +830,6 @@ msgstr "Gi nytt navn til spill på WBFS" msgid "Reset Playcounter" msgstr "Nullstill teller" -msgid "Restart" -msgstr "Start på nytt" - msgid "Restarting..." msgstr "Starter på nytt..." @@ -1143,5 +1140,11 @@ msgstr "av" msgid "seconds left" msgstr "sekunder gjenstår" +#~ msgid "No partitions found" +#~ msgstr "Ingen partisjoner funnet" + +#~ msgid "Restart" +#~ msgstr "Start på nytt" + #~ msgid "Saving" #~ msgstr "Lagrer" diff --git a/Languages/polish.lang b/Languages/polish.lang index 22eabffb..63544b00 100644 --- a/Languages/polish.lang +++ b/Languages/polish.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: ziom666 (zadania_prog@vp.pl)\n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "Zakonczyc prace programu?" msgid "Failed formating" msgstr "Nie udalo sie sformatowac" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Luty" @@ -713,9 +716,6 @@ msgstr "" msgid "No new updates." msgstr "Posiadasz aktualna wersje" -msgid "No partitions found" -msgstr "Nie wykryto zadnej partycji" - msgid "Normal" msgstr "Standardowe" @@ -830,9 +830,6 @@ msgstr "Zmien tytul gry na WBFS" msgid "Reset Playcounter" msgstr "Zrestartuj licznik" -msgid "Restart" -msgstr "" - msgid "Restarting..." msgstr "Restartowanie..." @@ -1142,3 +1139,6 @@ msgstr "z" msgid "seconds left" msgstr "sekund pozostalo" + +#~ msgid "No partitions found" +#~ msgstr "Nie wykryto zadnej partycji" diff --git a/Languages/portuguese_br.lang b/Languages/portuguese_br.lang index 537f0ca7..86718b21 100644 --- a/Languages/portuguese_br.lang +++ b/Languages/portuguese_br.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "Deseja sair do USB Loader GX?" msgid "Failed formating" msgstr "Falha ao formatar" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Fev" @@ -713,9 +716,6 @@ msgstr "Não há arquivos faltando!" msgid "No new updates." msgstr "Não há novas atualizações." -msgid "No partitions found" -msgstr "Partições não encontradas" - msgid "Normal" msgstr "Normal" @@ -830,9 +830,6 @@ msgstr "Renomear jogo na partição WBFS" msgid "Reset Playcounter" msgstr "" -msgid "Restart" -msgstr "Reiniciar" - msgid "Restarting..." msgstr "Reiniciando..." @@ -1142,3 +1139,9 @@ msgstr "de" msgid "seconds left" msgstr "segundos restantes" + +#~ msgid "No partitions found" +#~ msgstr "Partições não encontradas" + +#~ msgid "Restart" +#~ msgstr "Reiniciar" diff --git a/Languages/portuguese_pt.lang b/Languages/portuguese_pt.lang index 6b08fc31..5625f0c1 100644 --- a/Languages/portuguese_pt.lang +++ b/Languages/portuguese_pt.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-30 12:36\n" "Last-Translator: Sky8000\n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "Pretende sair do USB Loader GX?" msgid "Failed formating" msgstr "Falha ao formatar" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Fev" @@ -713,9 +716,6 @@ msgstr "Não há ficheiros em falta!" msgid "No new updates." msgstr "Não existem novas actualizações." -msgid "No partitions found" -msgstr "Não foram encontradas partições" - msgid "Normal" msgstr "Normal" @@ -830,9 +830,6 @@ msgstr "Alterar nome do jogo na partição WBFS" msgid "Reset Playcounter" msgstr "Limpar Contagem" -msgid "Restart" -msgstr "Reiniciar" - msgid "Restarting..." msgstr "A Wii irá reiniciar" @@ -1143,5 +1140,11 @@ msgstr "de" msgid "seconds left" msgstr "segundos restantes" +#~ msgid "No partitions found" +#~ msgstr "Não foram encontradas partições" + +#~ msgid "Restart" +#~ msgstr "Reiniciar" + #~ msgid "Saving" #~ msgstr "Gravando" diff --git a/Languages/russian.lang b/Languages/russian.lang index ade4056d..16339751 100644 --- a/Languages/russian.lang +++ b/Languages/russian.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: Kir\n" "Language-Team: Kir\n" @@ -454,6 +454,9 @@ msgstr "Выйти из USB Loader GX?" msgid "Failed formating" msgstr "Форматирование не удалось" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Фев" @@ -713,9 +716,6 @@ msgstr "Файл не найден!" msgid "No new updates." msgstr "Нет обновлений" -msgid "No partitions found" -msgstr "Разделы не найдены" - msgid "Normal" msgstr "Обычный" @@ -830,9 +830,6 @@ msgstr "Переименовать игры в WBFS" msgid "Reset Playcounter" msgstr "Сбросить счетчик запусков" -msgid "Restart" -msgstr "Перезапустить" - msgid "Restarting..." msgstr "Перезапускаю..." @@ -1142,3 +1139,9 @@ msgstr "из" msgid "seconds left" msgstr "секунд осталось" + +#~ msgid "No partitions found" +#~ msgstr "Разделы не найдены" + +#~ msgid "Restart" +#~ msgstr "Перезапустить" diff --git a/Languages/schinese.lang b/Languages/schinese.lang index 6f0c31f7..600aa73c 100644 --- a/Languages/schinese.lang +++ b/Languages/schinese.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "离开 USB Loader GX?" msgid "Failed formating" msgstr "格式化失败" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "" @@ -713,9 +716,6 @@ msgstr "没有缺少的文件!" msgid "No new updates." msgstr "" -msgid "No partitions found" -msgstr "找不到分区" - msgid "Normal" msgstr "一般" @@ -830,9 +830,6 @@ msgstr "改变WBFS(硬盘)上的游戏名称" msgid "Reset Playcounter" msgstr "" -msgid "Restart" -msgstr "重新启动" - msgid "Restarting..." msgstr "" @@ -1142,3 +1139,9 @@ msgstr "的" msgid "seconds left" msgstr "剩余秒数" + +#~ msgid "No partitions found" +#~ msgstr "找不到分区" + +#~ msgid "Restart" +#~ msgstr "重新启动" diff --git a/Languages/spanish.lang b/Languages/spanish.lang index 8d90464c..c5426630 100644 --- a/Languages/spanish.lang +++ b/Languages/spanish.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "¿Salir de USB Loader GX?" msgid "Failed formating" msgstr "Fallo al formatear" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "Feb" @@ -713,9 +716,6 @@ msgstr "¡No faltan archivos!" msgid "No new updates." msgstr "No hay actualizaciones." -msgid "No partitions found" -msgstr "Particiones no encontradas" - msgid "Normal" msgstr "Normal" @@ -830,9 +830,6 @@ msgstr "Renombrar juego en WBFS" msgid "Reset Playcounter" msgstr "Reiniciar conteo jugados" -msgid "Restart" -msgstr "Reiniciar" - msgid "Restarting..." msgstr "Reiniciando..." @@ -1143,5 +1140,11 @@ msgstr "de" msgid "seconds left" msgstr "segundos restantes" +#~ msgid "No partitions found" +#~ msgstr "Particiones no encontradas" + +#~ msgid "Restart" +#~ msgstr "Reiniciar" + #~ msgid "Saving" #~ msgstr "Guardando" diff --git a/Languages/swedish.lang b/Languages/swedish.lang index af598544..213af4fe 100644 --- a/Languages/swedish.lang +++ b/Languages/swedish.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-31 12:20+0200\n" "Last-Translator: Katsurou\n" "Language-Team: Katsurou, pirateX\n" @@ -454,6 +454,9 @@ msgstr "Avsluta USB Loader GX?" msgid "Failed formating" msgstr "Formatering misslyckad" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "" @@ -713,9 +716,6 @@ msgstr "Inga filer saknas!" msgid "No new updates." msgstr "Inga nya uppdateringar" -msgid "No partitions found" -msgstr "Hittade ingen partition" - msgid "Normal" msgstr "Vanlig" @@ -830,9 +830,6 @@ msgstr "Döp om spel på WBFS" msgid "Reset Playcounter" msgstr "Återställ spelat-räknaren" -msgid "Restart" -msgstr "Starta om" - msgid "Restarting..." msgstr "Startar om..." @@ -1143,5 +1140,11 @@ msgstr "av" msgid "seconds left" msgstr "sekunder kvar" +#~ msgid "No partitions found" +#~ msgstr "Hittade ingen partition" + +#~ msgid "Restart" +#~ msgstr "Starta om" + #~ msgid "Saving" #~ msgstr "Sparar" diff --git a/Languages/tchinese.lang b/Languages/tchinese.lang index 543118c1..3a12ecc2 100644 --- a/Languages/tchinese.lang +++ b/Languages/tchinese.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "離開 USB Loader GX?" msgid "Failed formating" msgstr "格式化失敗" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "二月" @@ -713,9 +716,6 @@ msgstr "沒有缺少的檔案!" msgid "No new updates." msgstr "無可用更新" -msgid "No partitions found" -msgstr "找不到磁區" - msgid "Normal" msgstr "一般" @@ -830,9 +830,6 @@ msgstr "變更WBFS上的遊戲名稱" msgid "Reset Playcounter" msgstr "重置執行次數" -msgid "Restart" -msgstr "重新啟動" - msgid "Restarting..." msgstr "正在重新啟動" @@ -1143,5 +1140,11 @@ msgstr "剩餘空間 總容量" msgid "seconds left" msgstr "剩餘秒數" +#~ msgid "No partitions found" +#~ msgstr "找不到磁區" + +#~ msgid "Restart" +#~ msgstr "重新啟動" + #~ msgid "Saving" #~ msgstr "正在儲存" diff --git a/Languages/turkish.lang b/Languages/turkish.lang index d6e6fd7b..e3c0bd16 100644 --- a/Languages/turkish.lang +++ b/Languages/turkish.lang @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: USB Loader GX\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-07-31 20:03+0200\n" +"POT-Creation-Date: 2009-08-02 00:25+0200\n" "PO-Revision-Date: 2009-07-18 15:18+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -454,6 +454,9 @@ msgstr "USB Loader GX'dan çik?" msgid "Failed formating" msgstr "Biçimlendirme basarisiz oldu" +msgid "Failed to open partition" +msgstr "" + msgid "Feb" msgstr "" @@ -713,9 +716,6 @@ msgstr "Kayip dosya yok!" msgid "No new updates." msgstr "" -msgid "No partitions found" -msgstr "Bölüm bulunamadi" - msgid "Normal" msgstr "Normal" @@ -830,9 +830,6 @@ msgstr "WBFS'deki oyunu yeniden isimlendir" msgid "Reset Playcounter" msgstr "" -msgid "Restart" -msgstr "Yeniden Baslat" - msgid "Restarting..." msgstr "" @@ -1142,3 +1139,9 @@ msgstr "/" msgid "seconds left" msgstr "saniye kaldi" + +#~ msgid "No partitions found" +#~ msgstr "Bölüm bulunamadi" + +#~ msgid "Restart" +#~ msgstr "Yeniden Baslat" diff --git a/source/cheats/cheatmenu.cpp b/source/cheats/cheatmenu.cpp index 389eeaad..7400d93d 100644 --- a/source/cheats/cheatmenu.cpp +++ b/source/cheats/cheatmenu.cpp @@ -6,7 +6,8 @@ #include "libwiigui/gui_customoptionbrowser.h" #include "prompts/PromptWindows.h" #include "language/gettext.h" -#include "fatmounter.h" +#include "fatmounter.h" +#include "listfiles.h" #include "menu.h" #include "filelist.h" #include "sys.h" @@ -35,7 +36,7 @@ int CheatMenu(const char * gameID) { snprintf(imgPath, sizeof(imgPath), "%ssettings_background.png", CFG.theme_path); GuiImageData settingsbg(imgPath, settings_background_png); GuiImage settingsbackground(&settingsbg); - + GuiTrigger trigA; trigA.SetSimpleTrigger(-1, WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A, PAD_BUTTON_A); GuiTrigger trigB; @@ -126,7 +127,8 @@ int CheatMenu(const char * gameID) { selectednrs[x] = i; x++; } - } + } + subfoldercreate(Settings.Cheatcodespath); string chtpath = Settings.Cheatcodespath; string gctfname = chtpath + c.getGameID() + ".gct"; c.createGCT(selectednrs,x,gctfname.c_str()); diff --git a/source/libwiigui/gui_gamebrowser.cpp b/source/libwiigui/gui_gamebrowser.cpp index 90c6ea63..cf03013a 100644 --- a/source/libwiigui/gui_gamebrowser.cpp +++ b/source/libwiigui/gui_gamebrowser.cpp @@ -199,6 +199,9 @@ GuiGameBrowser::~GuiGameBrowser() void GuiGameBrowser::SetFocus(int f) { LOCK(this); + if(!gameCnt) + return; + focus = f; for(int i=0; iIsVisible()) + if(!this->IsVisible() || !gameCnt) return; bgGameImg->Draw(); @@ -340,7 +343,7 @@ void GuiGameBrowser::UpdateListEntries() void GuiGameBrowser::Update(GuiTrigger * t) { LOCK(this); - if(state == STATE_DISABLED || !t) + if(state == STATE_DISABLED || !t || !gameCnt) return; int next, prev; diff --git a/source/libwiigui/gui_gamegrid.cpp b/source/libwiigui/gui_gamegrid.cpp index 47f2e86d..1b71d187 100644 --- a/source/libwiigui/gui_gamegrid.cpp +++ b/source/libwiigui/gui_gamegrid.cpp @@ -54,9 +54,9 @@ GuiGameGrid::GuiGameGrid(int w, int h, struct discHdr * l, int count, const char gameCnt = (count < SAFETY) ? count : SAFETY; gameList = l; c=count; - listOffset = (offset == 0) ? this->FindMenuItem(-1, 1) : offset; + listOffset = 0; selectable = true; - selectedItem = selected - offset; + selectedItem = 0; focus = 1; // allow focus firstPic = 0; clickedItem = -1; @@ -143,6 +143,9 @@ GuiGameGrid::GuiGameGrid(int w, int h, struct discHdr * l, int count, const char coverImg = new GuiImage * [gameCnt]; cover = new GuiImageData * [gameCnt]; + if(!gameCnt) + return; + for(int i=0; iIsVisible()) + if(!this->IsVisible() || gameCnt > 0) return; if(c>0){ @@ -628,6 +634,8 @@ void GuiGameGrid::Draw() */ void GuiGameGrid::ChangeRows(int n) { + if(!gameCnt) + return; rows=n; Settings.gridRows = rows; @@ -915,7 +923,7 @@ void GuiGameGrid::ChangeRows(int n) void GuiGameGrid::Update(GuiTrigger * t) { LOCK(this); - if(state == STATE_DISABLED || !t) + if(state == STATE_DISABLED || !t || !gameCnt) return; if(!(game[0]->GetEffect() || game[0]->GetEffectOnOver())) { diff --git a/source/menu.cpp b/source/menu.cpp index 30be709f..dd2008e2 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -16,6 +16,7 @@ #include "libwiigui/gui_gamegrid.h" #include "libwiigui/gui_gamecarousel.h" #include "libwiigui/gui_gamebrowser.h" +#include "libwiigui/gui_customoptionbrowser.h" #include "usbloader/usbstorage.h" #include "usbloader/wbfs.h" #include "usbloader/disc.h" @@ -1482,14 +1483,19 @@ static int MenuInstall() { ***************************************************************************/ static int MenuFormat() { + USBDevice_deInit(); + sleep(1); + + USBStorage_Init(); + int menu = MENU_NONE; char imgPath[100]; - OptionList options; + customOptionList options(5); partitionEntry partitions[MAX_PARTITIONS]; - u32 cnt, sector_size, selected = 2000; + u32 cnt, sector_size; int choice, ret; char text[ISFS_MAXPATH]; @@ -1504,16 +1510,14 @@ static int MenuFormat() { f32 size = entry->size * (sector_size / GBSIZE); if (size) { - sprintf(options.name[cnt], "%s %d:",tr("Partition"), cnt+1); - sprintf (options.value[cnt],"%.2fGB", size); + options.SetName(cnt, "%s %d:",tr("Partition"), cnt+1); + options.SetValue(cnt,"%.2fGB", size); } else { - sprintf(options.name[cnt], "%s %d:",tr("Partition"), cnt+1); - sprintf (options.value[cnt],tr("Can't be formated")); + options.SetName(cnt, "%s %d:",tr("Partition"), cnt+1); + options.SetValue(cnt,tr("Can't be formated")); } } - options.length = cnt; - GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM, Settings.sfxvolume); GuiSound btnClick(button_click2_pcm, button_click2_pcm_size, SOUND_PCM, Settings.sfxvolume); snprintf(imgPath, sizeof(imgPath), "%swiimote_poweroff.png", CFG.theme_path); @@ -1542,13 +1546,12 @@ static int MenuFormat() { GuiImage exitBtnImgOver(&btnhomeOver); exitBtnImg.SetWidescreen(CFG.widescreen); exitBtnImgOver.SetWidescreen(CFG.widescreen); - GuiButton exitBtn(&exitBtnImg,&exitBtnImgOver, 0, 3, 0,-10, &trigA, &btnSoundOver, &btnClick,1); + GuiButton exitBtn(&exitBtnImg,&exitBtnImgOver, 0, 3, THEME.home_x, THEME.home_y, &trigA, &btnSoundOver, &btnClick,1); exitBtn.SetTrigger(&trigHome); - GuiOptionBrowser optionBrowser(THEME.selection_w, THEME.selection_h, &options, CFG.theme_path, bg_options_png, 1, 0); - optionBrowser.SetPosition(THEME.selection_x, THEME.selection_y); - optionBrowser.SetAlignment(ALIGN_LEFT, ALIGN_CENTRE); - optionBrowser.SetCol2Position(200); + GuiCustomOptionBrowser optionBrowser(396, 280, &options, CFG.theme_path, "bg_options_settings.png", bg_options_settings_png, 0, 10); + optionBrowser.SetPosition(0, 40); + optionBrowser.SetAlignment(ALIGN_CENTRE, ALIGN_TOP); HaltGui(); GuiWindow w(screenwidth, screenheight); @@ -1561,48 +1564,53 @@ static int MenuFormat() { ResumeGui(); while (menu == MENU_NONE) { + VIDEO_WaitVSync (); - selected = optionBrowser.GetClickedOption(); + ret = optionBrowser.GetClickedOption(); - for (cnt = 0; cnt < MAX_PARTITIONS; cnt++) { - if ((cnt == selected)&&((Settings.godmode == 1)|| - (!strcmp("", Settings.unlockCode)))) { - partitionEntry *entry = &partitions[selected]; + if(ret >= 0) { + if(Settings.godmode == 1) { + partitionEntry *entry = &partitions[ret]; if (entry->size) { - sprintf(text, "%s %d : %.2fGB",tr("Partition"), selected+1, entry->size * (sector_size / GBSIZE)); + sprintf(text, "%s %d : %.2fGB",tr("Partition"), ret+1, entry->size * (sector_size / GBSIZE)); choice = WindowPrompt( tr("Do you want to format:"), text,tr("Yes"),tr("No")); if (choice == 1) { ret = FormatingPartition(tr("Formatting, please wait..."), entry); if (ret < 0) { WindowPrompt(tr("Error !"),tr("Failed formating"),tr("Return")); menu = MENU_SETTINGS; - } else { + sleep(1); ret = WBFS_Open(); sprintf(text, "%s %s", text,tr("formatted!")); WindowPrompt(tr("Success:"),text,tr("OK")); + if(ret < 0) { + WindowPrompt(tr("ERROR"), tr("Failed to open partition"), tr("OK")); + Sys_LoadMenu(); + } menu = MENU_DISCLIST; } } - } - } else if ( (cnt == selected)&&(Settings.godmode == 0) ) { - mainWindow->Remove(&optionBrowser); - char entered[20] = ""; - int result = OnScreenKeyboard(entered, 20,0); - mainWindow->Append(&optionBrowser); - if ( result == 1 ) { - if (!strcmp(entered, Settings.unlockCode)) { //if password correct - if (Settings.godmode == 0) { - WindowPrompt(tr("Correct Password"),tr("All the features of USB Loader GX are unlocked."),tr("OK")); - Settings.godmode = 1; + } else if(Settings.godmode == 0) { + mainWindow->Remove(&optionBrowser); + char entered[20] = ""; + int result = OnScreenKeyboard(entered, 20,0); + mainWindow->Append(&optionBrowser); + if ( result == 1 ) { + if (!strcmp(entered, Settings.unlockCode)) { //if password correct + if (Settings.godmode == 0) { + WindowPrompt(tr("Correct Password"),tr("All the features of USB Loader GX are unlocked."),tr("OK")); + Settings.godmode = 1; + } + } else { + WindowPrompt(tr("Wrong Password"),tr("USB Loader GX is protected"),tr("OK")); } - } else { - WindowPrompt(tr("Wrong Password"),tr("USB Loader GX is protected"),tr("OK")); } } } } + if (shutdown == 1) Sys_Shutdown(); if (reset == 1) @@ -1628,7 +1636,7 @@ static int MenuFormat() { mainWindow->Remove(&optionBrowser); mainWindow->Remove(&w); ResumeGui(); - USBDevice_Init(); + return menu; } @@ -1642,7 +1650,6 @@ static int MenuCheck() { s32 ret2, wbfsinit; OptionList options; options.length = i; - partitionEntry partitions[MAX_PARTITIONS]; VIDEO_WaitVSync (); @@ -1684,13 +1691,6 @@ static int MenuCheck() { if (choice == 0) { Sys_LoadMenu(); } else { - /* Get partition entries */ - u32 sector_size; - ret2 = Partition_GetEntries(partitions, §or_size); - if (ret2 < 0) { - WindowPrompt (tr("No partitions found"),0, tr("Restart")); - Sys_LoadMenu(); - } menu = MENU_FORMAT; } }