* Updated DIOS MIOS (Lite) detection up to v2.11
* Homebrew's AddBootArgument() function now accepts 
  struct as arguments (Thanks Fix94)

Nintendont :
* Always delete previous nincfg.bin file when launching a game.
* Added Argument Booting method for nintendont v1.98+ 
  (faster booting, no nincfg.bin file written to device)
* Added "Update Nintendont" option in features menu. Issue 2260
This commit is contained in:
Cyan 2014-07-14 16:31:52 +00:00
parent 46525c016e
commit 0cb0b7537f
33 changed files with 296 additions and 66 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>3.0 r1228</version> <version>3.0 r1229</version>
<release_date>20140712125119</release_date> <release_date>20140714161827</release_date>
<!-- // remove this line to enable arguments <!-- // remove this line to enable arguments
<arguments> <arguments>
<arg>--ios=250</arg> <arg>--ios=250</arg>

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "Prejete si synchronizovat informace o volných sektorech na vsech FAT 32 oddílech?" msgstr "Prejete si synchronizovat informace o volných sektorech na vsech FAT 32 oddílech?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Prejete si zaktualizovat vsechny jazykové soubory?" msgstr "Prejete si zaktualizovat vsechny jazykové soubory?"
@ -2104,6 +2107,9 @@ msgstr "Aktualizace DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Zaktualizuj soubory" msgstr "Zaktualizuj soubory"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Cesta pro aktualizaci" msgstr "Cesta pro aktualizaci"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "Vil du synkronisere fri plads info sector på alle FAT32 Partitioner?" msgstr "Vil du synkronisere fri plads info sector på alle FAT32 Partitioner?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Skal alle sprogfiler opdateres/downloades?" msgstr "Skal alle sprogfiler opdateres/downloades?"
@ -2104,6 +2107,9 @@ msgstr "Opdatér DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Opdatér filer" msgstr "Opdatér filer"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Sti til opdateringer" msgstr "Sti til opdateringer"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr "Wil je het spel nu starten?"
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "Wil je de vrije ruimte informatie sector synchroniseren op alle FAT32 partities?" msgstr "Wil je de vrije ruimte informatie sector synchroniseren op alle FAT32 partities?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Wil je alle taalbestanden updaten/downloaden?" msgstr "Wil je alle taalbestanden updaten/downloaden?"
@ -2104,6 +2107,9 @@ msgstr "DOL updaten"
msgid "Update Files" msgid "Update Files"
msgstr "Bestanden Updaten" msgstr "Bestanden Updaten"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Updatelocatie" msgstr "Updatelocatie"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "" msgstr ""
@ -2104,6 +2107,9 @@ msgstr ""
msgid "Update Files" msgid "Update Files"
msgstr "" msgstr ""
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Haluatko päivittää/ladata kaikki kielitiedostot?" msgstr "Haluatko päivittää/ladata kaikki kielitiedostot?"
@ -2104,6 +2107,9 @@ msgstr "Päivitä DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Päivitä tiedostot" msgstr "Päivitä tiedostot"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Päivityspolku" msgstr "Päivityspolku"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n" "PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Cyan\n" "Last-Translator: Cyan\n"
"Language-Team: Badablek, Amour, ikya, Cyan & Kin8\n" "Language-Team: Badablek, Amour, ikya, Cyan & Kin8\n"
@ -691,6 +691,9 @@ msgstr "Voulez-vous démarrer le jeu maintenant ?"
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "Voulez-vous synchroniser l'information d'espace libre disponible sur toutes les partitions FAT32 ?" msgstr "Voulez-vous synchroniser l'information d'espace libre disponible sur toutes les partitions FAT32 ?"
msgid "Do you want to update this file?"
msgstr "Voulez-vous mettre à jour ce fichier ?"
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Voulez-vous actualiser/télécharger tous les fichiers langue ?" msgstr "Voulez-vous actualiser/télécharger tous les fichiers langue ?"
@ -2104,6 +2107,9 @@ msgstr "DOL seul"
msgid "Update Files" msgid "Update Files"
msgstr "MàJ Fichiers" msgstr "MàJ Fichiers"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Dossier de mise à jour" msgstr "Dossier de mise à jour"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr "Soll ein neues Spiel gestartet werden?"
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "Soll die freier Speicher Info auf allen Partitionen synchronisiert werden?" msgstr "Soll die freier Speicher Info auf allen Partitionen synchronisiert werden?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Alle Sprachdateien aktualisieren?" msgstr "Alle Sprachdateien aktualisieren?"
@ -2104,6 +2107,9 @@ msgstr "Nur DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Aktualisieren" msgstr "Aktualisieren"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Updates" msgstr "Updates"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+0200\n"
"Last-Translator: nakata6790\n" "Last-Translator: nakata6790\n"
"Language-Team: nakata6790 (aka0107@gmail.com)\n" "Language-Team: nakata6790 (aka0107@gmail.com)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -690,6 +690,9 @@ msgstr "ÈÝëåôå íá åêêéíÞóåôå ôï ðñüãñáììá ôþñá;
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "ÈÝëåôå íá óõã÷ñïíßóåôå ôïí êåíü ÷þñï áðü üëá ôá FAT32 partitions;" msgstr "ÈÝëåôå íá óõã÷ñïíßóåôå ôïí êåíü ÷þñï áðü üëá ôá FAT32 partitions;"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "ÈÝëåôå íá áíáâáèìßóåôå/êáôåâÜóåôå üëá ôá áñ÷åßá ìåôáöñÜóåùí;" msgstr "ÈÝëåôå íá áíáâáèìßóåôå/êáôåâÜóåôå üëá ôá áñ÷åßá ìåôáöñÜóåùí;"
@ -2103,6 +2106,9 @@ msgstr "ÁíáâÜèìéóç DOL"
msgid "Update Files" msgid "Update Files"
msgstr "ÁíáâÜèìéóç áñ÷åßùí" msgstr "ÁíáâÜèìéóç áñ÷åßùí"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Minden nyelvi fájl letöltése/frissítése?" msgstr "Minden nyelvi fájl letöltése/frissítése?"
@ -2104,6 +2107,9 @@ msgstr "DOL Frissítése"
msgid "Update Files" msgid "Update Files"
msgstr "Fájlok frissítése" msgstr "Fájlok frissítése"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Frissítés Útvonala" msgstr "Frissítés Útvonala"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+0200\n"
"PO-Revision-Date: 2011-09-11 12:19+0100\n" "PO-Revision-Date: 2011-09-11 12:19+0100\n"
"Last-Translator: xFede\n" "Last-Translator: xFede\n"
"Language-Team: xFede (fedeanto11@gmail.com)\n" "Language-Team: xFede (fedeanto11@gmail.com)\n"
@ -691,6 +691,9 @@ msgstr "Vuoi avviare il gioco ora?"
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "Vuoi sincronizzare le info sullo spazio libero in tutte le partizioni FAT32?" msgstr "Vuoi sincronizzare le info sullo spazio libero in tutte le partizioni FAT32?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Vuoi scaricare/aggiornare tutte le traduzioni?" msgstr "Vuoi scaricare/aggiornare tutte le traduzioni?"
@ -2104,6 +2107,9 @@ msgstr "Aggiorna DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Aggiorna i file" msgstr "Aggiorna i file"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Percorso degli agg." msgstr "Percorso degli agg."

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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\n" "Language-Team: hosigumayuugi\n"
@ -691,6 +691,9 @@ msgstr "ゲームを起動しますか?"
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "全てのFAT32領域のセクタで空き容量情報を同期しますか" msgstr "全てのFAT32領域のセクタで空き容量情報を同期しますか"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "すべての言語をダウンロードしますか?" msgstr "すべての言語をダウンロードしますか?"
@ -2104,6 +2107,9 @@ msgstr "DOLのみ"
msgid "Update Files" msgid "Update Files"
msgstr "すべて更新" msgstr "すべて更新"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "GXのdol" msgstr "GXのdol"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "정말로 모든 언어화일을 업데이트하고 다운로드 할까요?" msgstr "정말로 모든 언어화일을 업데이트하고 다운로드 할까요?"
@ -2104,6 +2107,9 @@ msgstr "DOL 업데이트"
msgid "Update Files" msgid "Update Files"
msgstr "화일 업데이트" msgstr "화일 업데이트"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "Vil du synkronisere ledig plass info sektor på alle FAT32 partisjoner?" msgstr "Vil du synkronisere ledig plass info sektor på alle FAT32 partisjoner?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Vil du oppdatere/laste ned alle språkfiler?" msgstr "Vil du oppdatere/laste ned alle språkfiler?"
@ -2104,6 +2107,9 @@ msgstr "Oppdater DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Oppdater filer" msgstr "Oppdater filer"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Oppdatering sti" msgstr "Oppdatering sti"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Zaktualizowac wszystkie pliki jezykowe?" msgstr "Zaktualizowac wszystkie pliki jezykowe?"
@ -2104,6 +2107,9 @@ msgstr "Zaktualizuj Dol"
msgid "Update Files" msgid "Update Files"
msgstr "Zaktualizuj pliki" msgstr "Zaktualizuj pliki"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Sciezka aktualizacji" msgstr "Sciezka aktualizacji"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Deseja atualizar todos os arquivos de idioma?" msgstr "Deseja atualizar todos os arquivos de idioma?"
@ -2104,6 +2107,9 @@ msgstr "Atualizar DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Atualizar arquivos" msgstr "Atualizar arquivos"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Pasta Atualizações" msgstr "Pasta Atualizações"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+0200\n"
"PO-Revision-Date: 2011-11-03 11:00+0000\n" "PO-Revision-Date: 2011-11-03 11: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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "Deseja sincronizar a info de espaço livre em todas as partições FAT32?" msgstr "Deseja sincronizar a info de espaço livre em todas as partições FAT32?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Queres actualizar todos os ficheiros de idioma?" msgstr "Queres actualizar todos os ficheiros de idioma?"
@ -2104,6 +2107,9 @@ msgstr "Actualizar DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Actualizar ficheiros" msgstr "Actualizar ficheiros"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Cam. Actualização" msgstr "Cam. Actualização"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Вы действительно хотите обновить/загрузить все языковые файлы?" msgstr "Вы действительно хотите обновить/загрузить все языковые файлы?"
@ -2104,6 +2107,9 @@ msgstr "Обновить DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Обновить файлы" msgstr "Обновить файлы"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+0200\n"
"PO-Revision-Date: 2013-08-13 07:03+0800\n" "PO-Revision-Date: 2013-08-13 07:03+0800\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: oCameLo\n" "Language-Team: oCameLo\n"
@ -691,6 +691,9 @@ msgstr "是否立刻开始游戏?"
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "是否同步剩余空间信息扇区到所有 FAT32 分区?" msgstr "是否同步剩余空间信息扇区到所有 FAT32 分区?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "升级/下载语言文件?" msgstr "升级/下载语言文件?"
@ -2104,6 +2107,9 @@ msgstr "仅升级主程序"
msgid "Update Files" msgid "Update Files"
msgstr "升级文件" msgstr "升级文件"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+0200\n"
"PO-Revision-Date: 2011-07-25 16:40+0200\n" "PO-Revision-Date: 2011-07-25 16:40+0200\n"
"Last-Translator: Galen/xFede\n" "Last-Translator: Galen/xFede\n"
"Language-Team: Penn, SirPalax, hvy109\n" "Language-Team: Penn, SirPalax, hvy109\n"
@ -691,6 +691,9 @@ msgstr "¿Quieres comenzar el juego ahora?"
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "¿Quieres sincronizar el sector de información de espacio libre en todas las particiones FAT32?" msgstr "¿Quieres sincronizar el sector de información de espacio libre en todas las particiones FAT32?"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "¿Quieres actualizar/descargar todos los archivos de idiomas?" msgstr "¿Quieres actualizar/descargar todos los archivos de idiomas?"
@ -2104,6 +2107,9 @@ msgstr "Actualizar DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Actual. archivos" msgstr "Actual. archivos"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Ruta Actualización" msgstr "Ruta Actualización"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Vill du uppdatera/ladda ner alla språkfiler?" msgstr "Vill du uppdatera/ladda ner alla språkfiler?"
@ -2104,6 +2107,9 @@ msgstr "Updatera DOL"
msgid "Update Files" msgid "Update Files"
msgstr "Uppdatera Filer" msgstr "Uppdatera Filer"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Sökväg till uppdatering" msgstr "Sökväg till uppdatering"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr "是否現在要開始遊戲?"
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "是否要同步所有FAT32分區可用空間資訊" msgstr "是否要同步所有FAT32分區可用空間資訊"
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "是否要更新/下載所有語言檔案嗎?" msgstr "是否要更新/下載所有語言檔案嗎?"
@ -2104,6 +2107,9 @@ msgstr "僅更新主程式"
msgid "Update Files" msgid "Update Files"
msgstr "更新檔案" msgstr "更新檔案"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "ต้องการอัพเดทหรือดาวน์โหลด ไฟล์ภาษา ทั้งหมด?" msgstr "ต้องการอัพเดทหรือดาวน์โหลด ไฟล์ภาษา ทั้งหมด?"
@ -2104,6 +2107,9 @@ msgstr "อัพเดท DOL"
msgid "Update Files" msgid "Update Files"
msgstr "อัพเดทไฟล์" msgstr "อัพเดทไฟล์"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "ที่อยู่ Update" msgstr "ที่อยู่ Update"

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: 2014-07-12 14:51+0200\n" "POT-Creation-Date: 2014-07-14 18:18+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"
@ -691,6 +691,9 @@ msgstr ""
msgid "Do you want to sync free space info sector on all FAT32 partitions?" msgid "Do you want to sync free space info sector on all FAT32 partitions?"
msgstr "" msgstr ""
msgid "Do you want to update this file?"
msgstr ""
msgid "Do you wish to update/download all language files?" msgid "Do you wish to update/download all language files?"
msgstr "Tüm dil dosyalarını indirmek/güncellemek istiyor musunuz?" msgstr "Tüm dil dosyalarını indirmek/güncellemek istiyor musunuz?"
@ -2104,6 +2107,9 @@ msgstr "DOL Güncelle"
msgid "Update Files" msgid "Update Files"
msgstr "Dosyaları Güncelle" msgstr "Dosyaları Güncelle"
msgid "Update Nintendont"
msgstr ""
msgid "Update Path" msgid "Update Path"
msgstr "Güncelleme Yolu" msgstr "Güncelleme Yolu"

View File

@ -47,7 +47,9 @@ enum ninconfig
NIN_CFG_AUTO_BOOT = (1<<7), NIN_CFG_AUTO_BOOT = (1<<7),
NIN_CFG_HID = (1<<8), NIN_CFG_HID = (1<<8),
NIN_CFG_OSREPORT = (1<<9), NIN_CFG_OSREPORT = (1<<9),
NIN_CFG_USB = (1<<10), NIN_CFG_USB = (1<<10), // r40
NIN_CFG_LED = (1<<11), // v1.45
NIN_CFG_LOG = (1<<12), // v1.109
}; };
enum ninvideomode enum ninvideomode

View File

@ -76,7 +76,7 @@ void hexdump(void *d, int len)
int i, off; int i, off;
data = (u8*) d; data = (u8*) d;
gprintf("\n 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF"); gprintf("\n 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF");
gprintf("\n==== =============================================== ================\n"); gprintf("\n==== =============================================== ================\n");
for (off = 0; off < len; off += 16) for (off = 0; off < len; off += 16)

View File

@ -29,12 +29,18 @@ static u8 *homebrewbuffer = EXECUTE_ADDR;
static u32 homebrewsize = 0; static u32 homebrewsize = 0;
static std::vector<std::string> Arguments; static std::vector<std::string> Arguments;
void AddBootArgument(const char * argv) void AddBootArgument(const char *argv)
{ {
std::string arg(argv); std::string arg(argv);
Arguments.push_back(arg); Arguments.push_back(arg);
} }
void AddBootArgument(const char *argv, unsigned int size)
{
std::string arg(argv, size);
Arguments.push_back(arg);
}
int CopyHomebrewMemory(u8 *temp, u32 pos, u32 len) int CopyHomebrewMemory(u8 *temp, u32 pos, u32 len)
{ {
homebrewsize += len; homebrewsize += len;
@ -80,7 +86,7 @@ static int SetupARGV(struct __argv * args)
/** Append Arguments **/ /** Append Arguments **/
for (u32 i = 0; i < Arguments.size(); i++) for (u32 i = 0; i < Arguments.size(); i++)
{ {
strcpy(&args->commandLine[position], Arguments[i].c_str()); memcpy(&args->commandLine[position], Arguments[i].c_str(), Arguments[i].size() +1);
position += Arguments[i].size() + 1; position += Arguments[i].size() + 1;
argc++; argc++;
} }

View File

@ -4,7 +4,8 @@
int BootHomebrew(const char * filepath); int BootHomebrew(const char * filepath);
int BootHomebrewFromMem(); int BootHomebrewFromMem();
int CopyHomebrewMemory(u8 *temp, u32 pos, u32 len); int CopyHomebrewMemory(u8 *temp, u32 pos, u32 len);
void AddBootArgument(const char * arg); void AddBootArgument(const char * argv);
void AddBootArgument(const char * argv, unsigned int size);
void FreeHomebrewBuffer(); void FreeHomebrewBuffer();
#endif #endif

View File

@ -77,10 +77,12 @@ static const char * DMLVersions[] =
"v2.9", // DM 2.9 "v2.9", // DM 2.9
"v2.0", // QuadForce v2.0 "v2.0", // QuadForce v2.0
"v3.0", // QuadForce v3.0 "v3.0", // QuadForce v3.0
"v4.0+", // QuadForce v4.0 SD "v4.0", // QuadForce v4.0 SD
"v2.10+", // DML 2.10 "v2.10", // DML 2.10
"v2.10+", // DM 2.10 "v2.10", // DM 2.10
"v4.1", // QuadForce v4.1 USB "v4.1", // QuadForce v4.1 USB
"v2.11+", // DML 2.11
"v2.11+", // DM 2.11
}; };

View File

@ -30,6 +30,7 @@
#include "settings/SettingsPrompts.h" #include "settings/SettingsPrompts.h"
#include "network/Wiinnertag.h" #include "network/Wiinnertag.h"
#include "network/networkops.h" #include "network/networkops.h"
#include "network/FileDownloader.h"
#include "FileOperations/fileops.h" #include "FileOperations/fileops.h"
#include "prompts/PromptWindows.h" #include "prompts/PromptWindows.h"
#include "prompts/ProgressWindow.h" #include "prompts/ProgressWindow.h"
@ -70,6 +71,7 @@ FeatureSettingsMenu::FeatureSettingsMenu()
Options->SetName(Idx++, "%s", tr( "Export SYSCONF to EmuNand" )); Options->SetName(Idx++, "%s", tr( "Export SYSCONF to EmuNand" ));
Options->SetName(Idx++, "%s", tr( "Dump NAND to EmuNand" )); Options->SetName(Idx++, "%s", tr( "Dump NAND to EmuNand" ));
Options->SetName(Idx++, "%s", tr( "Install WAD to EmuNand" )); Options->SetName(Idx++, "%s", tr( "Install WAD to EmuNand" ));
Options->SetName(Idx++, "%s", tr( "Update Nintendont" ));
OldTitlesOverride = Settings.titlesOverride; OldTitlesOverride = Settings.titlesOverride;
OldCacheTitles = Settings.CacheTitles; OldCacheTitles = Settings.CacheTitles;
@ -146,6 +148,9 @@ void FeatureSettingsMenu::SetOptionValues()
//! Settings: Install WAD to EmuNand //! Settings: Install WAD to EmuNand
Options->SetValue(Idx++, " "); Options->SetValue(Idx++, " ");
//! Settings: Update Nintendont
Options->SetValue(Idx++, " ");
} }
int FeatureSettingsMenu::GetMenuInternal() int FeatureSettingsMenu::GetMenuInternal()
@ -494,6 +499,31 @@ int FeatureSettingsMenu::GetMenuInternal()
this->Append(optionBrowser); this->Append(optionBrowser);
} }
//! Settings: Update Nintendont
else if (ret == ++Idx)
{
char NINUpdatePath[100];
snprintf(NINUpdatePath, sizeof(NINUpdatePath), "%sboot.dol", Settings.NINLoaderPath);
int choice = WindowPrompt(tr( "Do you want to update this file?" ), NINUpdatePath, tr( "Yes" ), tr( "Cancel" ));
if (choice == 1)
{
// Download latest loader.dol as boot.dol
int filesize = DownloadFileToPath("http://nintendon-t.googlecode.com/svn/trunk/loader/loader.dol", NINUpdatePath, false);
if(filesize <= 0)
WindowPrompt(tr( "Update failed" ), 0, tr( "OK" ));
else
{
//remove existing loader.dol file if found as it has priority over boot.dol
snprintf(NINUpdatePath, sizeof(NINUpdatePath), "%s/loader.dol", Settings.NINLoaderPath);
RemoveFile(NINUpdatePath);
WindowPrompt(tr( "Successfully Updated" ), 0, tr( "OK" ));
}
}
}
SetOptionValues(); SetOptionValues();
return MENU_NONE; return MENU_NONE;

View File

@ -359,7 +359,12 @@ u8 IosLoader::GetDMLVersion(char* releaseDate)
strptime("May 24 2013 21:22:22", "%b %d %Y %H:%M:%S", &time); strptime("May 24 2013 21:22:22", "%b %d %Y %H:%M:%S", &time);
const time_t dm_2_10_time = mktime(&time); const time_t dm_2_10_time = mktime(&time);
if(difftime(unixTime, dm_2_10_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_10; // Timestamp of DM 2.11
strptime("Jul 2 2014 10:31:15", "%b %d %Y %H:%M:%S", &time);
const time_t dm_2_11_time = mktime(&time);
if(difftime(unixTime, dm_2_11_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_11;
else if(difftime(unixTime, dm_2_10_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_10;
else if(difftime(unixTime, dm_2_9_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_9; else if(difftime(unixTime, dm_2_9_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_9;
else if(difftime(unixTime, dm_2_8_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_8; else if(difftime(unixTime, dm_2_8_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_8;
else if(difftime(unixTime, dm_2_7_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_7; else if(difftime(unixTime, dm_2_7_time) >= 0) currentDMLVersion = DML_VERSION_DM_2_7;
@ -434,7 +439,12 @@ u8 IosLoader::GetDMLVersion(char* releaseDate)
strptime("May 24 2013 18:51:58", "%b %d %Y %H:%M:%S", &time); strptime("May 24 2013 18:51:58", "%b %d %Y %H:%M:%S", &time);
const time_t dml_2_10_time = mktime(&time); const time_t dml_2_10_time = mktime(&time);
if(difftime(unixTime, dml_2_10_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_10; // Timestamp of DML 2.11
strptime("Jul 2 2014 10:31:06", "%b %d %Y %H:%M:%S", &time);
const time_t dml_2_11_time = mktime(&time);
if(difftime(unixTime, dml_2_11_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_11;
else if(difftime(unixTime, dml_2_10_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_10;
else if(difftime(unixTime, dml_2_9_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_9; else if(difftime(unixTime, dml_2_9_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_9;
else if(difftime(unixTime, dml_2_8_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_8; else if(difftime(unixTime, dml_2_8_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_8;
else if(difftime(unixTime, dml_2_7_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_7; else if(difftime(unixTime, dml_2_7_time) >= 0) currentDMLVersion = DML_VERSION_DML_2_7;

View File

@ -65,7 +65,9 @@ enum DMLVersions
DML_VERSION_QUAD_4_0, // May 12 2013 20:22:57 DML_VERSION_QUAD_4_0, // May 12 2013 20:22:57
DML_VERSION_DML_2_10, // May 24 2013 18:51:58 DML_VERSION_DML_2_10, // May 24 2013 18:51:58
DML_VERSION_DM_2_10, // May 24 2013 21:22:22 DML_VERSION_DM_2_10, // May 24 2013 21:22:22
DML_VERSION_QUAD_4_1, // May 26 2013 ??:??:?? (USB) DML_VERSION_QUAD_4_1, // May 26 2013.00:15:28 (USB)
DML_VERSION_DML_2_11, // Jul 2 2014 10:31:06
DML_VERSION_DM_2_11, // Jul 2 2014 10:31:15
DML_VERSION_MAX_VERSION, DML_VERSION_MAX_VERSION,
}; };

View File

@ -995,9 +995,11 @@ int GameBooter::BootNintendont(struct discHdr *gameHdr)
return 0; return 0;
} }
gprintf("NIN: Loader path = %s \n",NIN_loader_path); gprintf("NIN: Loader path = %s \n",NIN_loader_path);
gprintf("NIN: Game path = %s \n",RealPath);
// Check Nintendont version // Check Nintendont version
u32 NIN_cfg_version = NIN_CFG_VERSION; u32 NIN_cfg_version = NIN_CFG_VERSION;
bool NINArgsboot = false;
u8 *buffer = NULL; u8 *buffer = NULL;
u32 filesize = 0; u32 filesize = 0;
if(LoadFileToMem(NIN_loader_path, &buffer, &filesize)) if(LoadFileToMem(NIN_loader_path, &buffer, &filesize))
@ -1049,6 +1051,18 @@ int GameBooter::BootNintendont(struct discHdr *gameHdr)
break; break;
} }
} }
if(found)
{
for(u32 i = 0; i < filesize; i += 0x10)
{
if((*(u32*)(buffer+i)) == 'args' && (*(u32*)(buffer+i+4)) == 'boot')
{
gprintf("NIN: argsboot found at %08x, using arguments instead of Nincfg.bin\n", i);
NINArgsboot = true;
break;
}
}
}
free(buffer); free(buffer);
if(!found) if(!found)
@ -1173,10 +1187,6 @@ int GameBooter::BootNintendont(struct discHdr *gameHdr)
snprintf(gamePath, sizeof(gamePath), "%s/disc2.iso", gamePath); snprintf(gamePath, sizeof(gamePath), "%s/disc2.iso", gamePath);
} }
// Nintendont Config file path
char NINCfgPath[17];
snprintf(NINCfgPath, sizeof(NINCfgPath), "%s:/nincfg.bin", DeviceHandler::GetDevicePrefix(NIN_loader_path));
gprintf("NIN: Cfg path : %s \n", NINCfgPath);
// Nintendont Config file settings // Nintendont Config file settings
NIN_CFG *nin_config = NULL; NIN_CFG *nin_config = NULL;
@ -1293,40 +1303,69 @@ int GameBooter::BootNintendont(struct discHdr *gameHdr)
} }
gprintf("NIN: Language 0x%08x \n", nin_config->Language); gprintf("NIN: Language 0x%08x \n", nin_config->Language);
//write config file to nintendont's partition root. // Delete existing nincfg.bin files
FILE *fp = fopen(NINCfgPath, "wb"); RemoveFile("sd:/nincfg.bin");
if (fp) RemoveFile("usb1:/nincfg.bin");
if(NINArgsboot)
{ {
fwrite (nin_config , sizeof(char), sizeof(NIN_CFG), fp); // initialize homebrew and arguments
fclose(fp); buffer = NULL;
filesize = 0;
LoadFileToMem(NIN_loader_path, &buffer, &filesize);
if(!buffer)
{
return 0;
}
FreeHomebrewBuffer();
CopyHomebrewMemory(buffer, 0, filesize);
AddBootArgument(NIN_loader_path);
AddBootArgument((char*)nin_config, sizeof(NIN_CFG));
// Launch Nintendont
return !(BootHomebrewFromMem() < 0);
} }
else else
{ {
gprintf("Could not open NINCfgPath in write mode"); // Nintendont Config file path
int choice = WindowPrompt(tr("Warning:"), tr("USBloaderGX couldn't write Nintendont config file. Launch Nintendont anyway?"), tr("Yes"), tr("Cancel")); char NINCfgPath[17];
if(choice == 0) snprintf(NINCfgPath, sizeof(NINCfgPath), "%s:/nincfg.bin", DeviceHandler::GetDevicePrefix(NIN_loader_path));
return 0; gprintf("NIN: Cfg path : %s \n", NINCfgPath);
}
// Copy Nintendont Config file to game path //write config file to nintendont's partition root.
if(strncmp(NINCfgPath, RealPath, 2) != 0) FILE *fp = fopen(NINCfgPath, "wb");
{ if (fp)
char NINDestPath[17];
snprintf(NINDestPath, sizeof(NINDestPath), "%s:/nincfg.bin", DeviceHandler::GetDevicePrefix(RealPath));
gprintf("NIN: Copying %s to %s...", NINCfgPath, NINDestPath);
if(CopyFile(NINCfgPath, NINDestPath) < 0)
{ {
gprintf("\nError: Couldn't copy %s to %s.\n", NINCfgPath, NINDestPath); fwrite (nin_config , sizeof(char), sizeof(NIN_CFG), fp);
RemoveFile(NINDestPath); fclose(fp);
if(WindowPrompt(tr("Warning:"), tr("USBloaderGX couldn't write Nintendont config file. Launch Nintendont anyway?"), tr("Yes"), tr("Cancel")) == 0) }
else
{
gprintf("Could not open NINCfgPath in write mode");
int choice = WindowPrompt(tr("Warning:"), tr("USBloaderGX couldn't write Nintendont config file. Launch Nintendont anyway?"), tr("Yes"), tr("Cancel"));
if(choice == 0)
return 0; return 0;
} }
gprintf("done\n");
// Copy Nintendont Config file to game path
if(strncmp(NINCfgPath, RealPath, 2) != 0)
{
char NINDestPath[17];
snprintf(NINDestPath, sizeof(NINDestPath), "%s:/nincfg.bin", DeviceHandler::GetDevicePrefix(RealPath));
gprintf("NIN: Copying %s to %s...", NINCfgPath, NINDestPath);
if(CopyFile(NINCfgPath, NINDestPath) < 0)
{
gprintf("\nError: Couldn't copy %s to %s.\n", NINCfgPath, NINDestPath);
RemoveFile(NINDestPath);
if(WindowPrompt(tr("Warning:"), tr("USBloaderGX couldn't write Nintendont config file. Launch Nintendont anyway?"), tr("Yes"), tr("Cancel")) == 0)
return 0;
}
gprintf("done\n");
}
// Launch Nintendont
return !(BootHomebrew(NIN_loader_path) < 0);
} }
// Launch Nintendont
return !(BootHomebrew(NIN_loader_path) < 0);
} }
void GameBooter::PatchSram(int language, bool patchVideoMode, bool progressive) void GameBooter::PatchSram(int language, bool patchVideoMode, bool progressive)