Compare commits

...

3 Commits

Author SHA1 Message Date
dimok789 3b3f6f54d2 - updated URL to sourceforge
- bump version to 1.9
2015-04-26 16:52:40 +00:00
dimok789 c3ad487607 USBLoaderGX_Installer
*add release version individual language download URL
2012-05-10 06:31:19 +00:00
dimok789 90372c0720 *preparation for new installer 2012-05-08 15:09:29 +00:00
696 changed files with 1759 additions and 143237 deletions

View File

@ -1,54 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app version="1">
<name> USB Loader GX</name>
<coder>USB Loader GX Team</coder>
<version>2.3 r1166</version>
<release_date>201205061159</release_date>
<!-- // remove this line to enable arguments
<arguments>
<arg>--ios=250</arg>
<arg>--usbport=0</arg>
</arguments>
// remove this line to enable arguments -->
<no_ios_reload/>
<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.
The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.
Features are automatic widescreen detection, coverdownload, parental control, theme support and many more.
Credits:
Coding: Dimok, nIxx, giantpune, ardi, Hungyip84, DrayX7, Lustar, r-win, WiiShizzza
Artworks: cyrex, NeoRame
Validation: Cyan and many others
Issue management: Cyan / Dimok
WiiTDB / Hosting covers: Lustar
Hosting updates files: CorneliousJD
USBLoader sources: Waninkoko, Kwiirk, Hermes
cIOS maintenance: davebaol, xabby666, XFlak and Rodries
Languages files updates: Kinyo and translaters
Hosting themes: Deak Phreak
Libwiigui: Tantric
Libogc/Devkit: Shagkur and Wintermute
FreeTypeGX: Armin Tamzarian.
Links:
USB Loader GX Project Page and Support Site:
http://code.google.com/p/usbloader-gui/
Help Website:
http://usbloadergx.koureio.net/
WiiTDB Site:
http://wiitdb.com
Themes Site:
http://wii.spiffy360.com
Languages Translaters Page:
http://gbatemp.net/index.php?showtopic=155252
Libwiigui Website:
http://wiibrew.org/wiki/Libwiigui/
FreeTypeGX Project Page:
http://code.google.com/p/freetypegx/
Gettext Official Page:
http://www.gnu.org/software/gettext/gettext.html
</long_description>
</app>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

File diff suppressed because it is too large Load Diff

32
InstallerConfig.nsh Normal file
View File

@ -0,0 +1,32 @@
;Copyright 2012 NeoRame
;Website: http://code.google.com/p/usbloader-gui/
;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.
;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.
;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;GNU General Public License for more details.
;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
;== Basic Information. Basic information about the portable app
!define NAME "USBLoaderGX"
!define NAME2 "USB Loader GX"
!define SHORTNAME "usbloader_gx"
!define VERSION "1.90.0.0"
!define SHORTVERSION "1.9"
!define FILENAME "${NAME}_${SHORTVERSION}_Installer"
!define URL "http://sourceforge.net/projects/usbloadergx/"
!define TEAM "Team USB Loader GX"
!define INSTALLERLANGUAGE "ENGLISH" ;one of the NSIS pre-defined languages supported: English, French, Italian, German, Japanese, SimpChinese

98
LANG.nsh Normal file
View File

@ -0,0 +1,98 @@
;=== Deutsch
LangString welcome ${LANG_GERMAN} "Dieser Assistent wird Sie bei der Installation von ${NAME2} unterstützen.$\r$\rWichtig: Für die Installation wird eine Internetverbindung benötigt. $\r$\n$\r$\nKlicken Sie bitte auf Weiter, um fortzusetzen."
LangString finish ${LANG_GERMAN} "${NAME2} rev.$R5 wurde auf Ihrer SD Karte installiert.$\r$\n$\r$\nBitte Beenden klicken, um diesen Assistenten zu verlassen."
;Language strings
LangString DESC_SecMain ${LANG_German} "Installiert ${NAME2} und alle benötigten Dateien auf Ihre SD Karte."
LangString DESC_SecOptional1 ${LANG_German} "Installiert die gewünschten Sprachdateien auf Ihre SD Karte."
LangString DESC_SecOptional2 ${LANG_German} "WiiTDB wird für die Spielinfo Anzeige benötigt."
LangString DESC_SecOptional3 ${LANG_German} "${NAME2} Wii Kanal.$\r$\n$\r$\nZum installieren des Kanals benutzen Sie bitte den Wad Manager von Waninkoko!"
LangString DESC_SecOptional4 ${LANG_German} "Eine kleine Kollektion von fertigen TXT Cheat Dateien für die Cheatfunktion des Loaders."
LangString DESC_SecOptional5 ${LANG_German} "Bereinigt die Imageordner von schon vorhandenen Bildern da nicht alle Bildgrößen unterstützt werden.$\r$\n$\r$\n*ACHTUNG*$\r$\nDer Inhalt der Ordner wird dabei gelöscht!!!"
LangString DESC_SecOptional6 ${LANG_German} "Inhalt des Boxart Ordner löschen."
LangString DESC_SecOptional7 ${LANG_German} "Inhalt des Disk Cover Ordner löschen."
LangString DESC_clean ${LANG_German} "Bereinigen"
LangString DESC_Op_Lang ${LANG_German} "Sprache"
LangString DESC_DB ${LANG_German} "WiiTDB"
LangString DESC_Op_Chan ${LANG_German} "USBLoaderGX Kanal"
LangString DESC_Cheats ${LANG_German} "Cheats"
LangString DESC_Folder1 ${LANG_German} "Boxart Ordner"
LangString DESC_Folder2 ${LANG_German} "Disk Cover Ordner"
LangString DESC_SD ${LANG_German} "Pfad SD"
LangString DESC_USB ${LANG_German} "Pfad USB"
LangString DESC_SD_Des ${LANG_German} "Wähle Sie diese Option wenn Sie ${NAME2} auf ihre SD Karte installieren"
LangString DESC_USB_Des ${LANG_German} "Wähle Sie diese Option wenn Sie ${NAME2} auf ihre USB Festplatte installieren"
${ReadmeLanguage} "${LANG_GERMAN}" \
"Read Mii" \
"Bitte lesen Sie die folgenden und wichtigen Informationen." \
"Über $(^name) rev.$R5:" \
"$\n Klicken Sie auf die Scrollbar Pfeile oder drücken sie Bild runter um den vollstädigen Text zu $\n lesen."
;=== English
LangString welcome ${LANG_ENGLISH} "This wizard will guide you through the installation of ${NAME2}.$\r$\rImportant: The installation requires an Internet connection. $\r$\n$\r$\nClick Next to continue."
LangString finish ${LANG_ENGLISH} "${NAME2} rev.$R5 has been installed on your SD Card.$\r$\n$\r$\nClick Finish to close this wizard."
;Language strings
LangString DESC_SecMain ${LANG_ENGLISH} "Install ${NAME2} and all needed files on your SD Card."
LangString DESC_SecOptional1 ${LANG_ENGLISH} "Install the desired language file on your SD Card."
LangString DESC_SecOptional2 ${LANG_ENGLISH} "WiiTDB is needed for the Game Info prompt."
LangString DESC_SecOptional3 ${LANG_ENGLISH} "${NAME2} Wii Channel.$\r$\n$\r$\nTo install this channel please use the Wad Manager on Waninkoko´s website!"
LangString DESC_SecOptional4 ${LANG_ENGLISH} "A small collection of TXT cheat files for the Loaders Cheat Menu."
LangString DESC_SecOptional5 ${LANG_ENGLISH} "Cleanup the image folder from existing images because not all image sizes are supported.$\r$\n$\r$\n*ATTENTION*$\r$\nThe content of the folders will be deleted!!!"
LangString DESC_SecOptional6 ${LANG_ENGLISH} "Delete content of Boxart folder."
LangString DESC_SecOptional7 ${LANG_ENGLISH} "Delete content of Disc Cover folder."
LangString DESC_clean ${LANG_ENGLISH} "Cleanup"
LangString DESC_Op_Lang ${LANG_ENGLISH} "Language"
LangString DESC_DB ${LANG_ENGLISH} "WiiTDB"
LangString DESC_Op_Chan ${LANG_ENGLISH} "USBLoaderGX Channel"
LangString DESC_Cheats ${LANG_ENGLISH} "Cheats"
LangString DESC_Folder1 ${LANG_ENGLISH} "Boxart folder"
LangString DESC_Folder2 ${LANG_ENGLISH} "Disc Cover folder"
LangString DESC_SD ${LANG_ENGLISH} "Path SD"
LangString DESC_USB ${LANG_ENGLISH} "Path USB"
LangString DESC_SD_Des ${LANG_ENGLISH} "Choose this option if you install ${NAME2} on your SD Card."
LangString DESC_USB_Des ${LANG_ENGLISH} "Choose this option if you install ${NAME2} on your USB Drive."
${ReadmeLanguage} "${LANG_ENGLISH}" \
"Read Mii" \
"Please review the following important information." \
"About $(^name) rev.$R5:" \
"$\n Click on scrollbar arrows or press Page Down to review the entire text."
;=== French
LangString welcome ${LANG_FRENCH} "Suivez les étapes pour installer ${NAME2}.$\r$\rImportant: l'installation nécessite un accès à internet. $\r$\n$\r$\nCliquez sur suivant pour continuer."
LangString finish ${LANG_FRENCH} "${NAME2} rev.$R5 est installé sur votre carte SD.$\r$\n$\r$\nCliquez sur Terminer pour fermer cet installateur."
;Language strings
LangString DESC_SecMain ${LANG_FRENCH} "Installer ${NAME2} et tous les fichiers nécessaires sur votre carte SD."
LangString DESC_SecOptional1 ${LANG_FRENCH} "Installer les fichiers de traduction sur votre carte SD."
LangString DESC_SecOptional2 ${LANG_FRENCH} "La base de données WiiTDB est requise pour la page d'information sur les jeux."
LangString DESC_SecOptional3 ${LANG_FRENCH} "${NAME2} Chaîne Wii.$\r$\n$\r$\nPour installer cette chaîne veuillez utiliser Wad Manager par Waninkoko."
LangString DESC_SecOptional4 ${LANG_FRENCH} "Une petite sélection de cheats TXT pour le menu Cheats du Loader."
LangString DESC_SecOptional5 ${LANG_FRENCH} "Effacer les images existantes incompatibles du répertoire image (toutes les tailles d'image ne sont pas supportées).$\r$\n$\r$\n*ATTENTION*$\r$\nLe contenu des répertoires sera effacé!"
LangString DESC_SecOptional6 ${LANG_FRENCH} "Effacer le contenu du répertoire Boxart."
LangString DESC_SecOptional7 ${LANG_FRENCH} "Effacer le contenu du répertoire Disc Cover."
LangString DESC_clean ${LANG_FRENCH} "Nettoyer"
LangString DESC_Op_Lang ${LANG_FRENCH} "Langue"
LangString DESC_DB ${LANG_FRENCH} "WiiTDB"
LangString DESC_Op_Chan ${LANG_FRENCH} "Chaîne USBLoader GX"
LangString DESC_Cheats ${LANG_FRENCH} "Cheats"
LangString DESC_Folder1 ${LANG_FRENCH} "Répertoire Boxart"
LangString DESC_Folder2 ${LANG_FRENCH} "Répertoire Disc Cover"
LangString DESC_SD ${LANG_FRENCH} "Chemin SD"
LangString DESC_USB ${LANG_FRENCH} "Chemin USB"
LangString DESC_SD_Des ${LANG_FRENCH} "Choisissez cette option si vous installez ${NAME2} sur votre carte SD."
LangString DESC_USB_Des ${LANG_FRENCH} "Choisissez cette option si vous installez ${NAME2} sur votre périphérique USB."
${ReadmeLanguage} "${LANG_FRENCH}" \
"Read Mii" \
"Veuillez prendre note des informations ci-dessous." \
"About $(^name) rev.$R5:" \
"$\n Cliquez sur la barre latérale ou appuyez sur Page Suivante pour faire défiler le texte."

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

344
License.txt Normal file
View File

@ -0,0 +1,344 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE,
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT
PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED
IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY
AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR
AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY
OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM
AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING
ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

60
MUI_EXTRAPAGES.nsh Normal file
View File

@ -0,0 +1,60 @@
# MUI_EXTRAPAGES.nsh
# By Red Wine Jan 2007
!verbose push
!verbose 3
!ifndef _MUI_EXTRAPAGES_NSH
!define _MUI_EXTRAPAGES_NSH
!ifmacrondef MUI_EXTRAPAGE_README & MUI_PAGE_README & MUI_UNPAGE_README & ReadmeLangStrings
!macro MUI_EXTRAPAGE_README UN ReadmeFile
!verbose push
!verbose 3
!define MUI_PAGE_HEADER_TEXT "$(${UN}ReadmeHeader)"
!define MUI_PAGE_HEADER_SUBTEXT "$(${UN}ReadmeSubHeader)"
!define MUI_LICENSEPAGE_TEXT_TOP "$(${UN}ReadmeTextTop)"
!define MUI_LICENSEPAGE_TEXT_BOTTOM "$(${UN}ReadmeTextBottom)"
!define MUI_LICENSEPAGE_BUTTON "$(^NextBtn)"
!insertmacro MUI_${UN}PAGE_LICENSE "${ReadmeFile}"
!verbose pop
!macroend
!define ReadmeRun "!insertmacro MUI_EXTRAPAGE_README"
!macro MUI_PAGE_README ReadmeFile
!verbose push
!verbose 3
${ReadmeRun} "" "${ReadmeFile}"
!verbose pop
!macroend
!macro MUI_UNPAGE_README ReadmeFile
!verbose push
!verbose 3
${ReadmeRun} "UN" "${ReadmeFile}"
!verbose pop
!macroend
!macro ReadmeLangStrings UN MUI_LANG ReadmeHeader ReadmeSubHeader ReadmeTextTop ReadmeTextBottom
!verbose push
!verbose 3
LangString ${UN}ReadmeHeader ${MUI_LANG} "${ReadmeHeader}"
LangString ${UN}ReadmeSubHeader ${MUI_LANG} "${ReadmeSubHeader}"
LangString ${UN}ReadmeTextTop ${MUI_LANG} "${ReadmeTextTop}"
LangString ${UN}ReadmeTextBottom ${MUI_LANG} "${ReadmeTextBottom}"
!verbose pop
!macroend
!define ReadmeLanguage `!insertmacro ReadmeLangStrings ""`
!define Un.ReadmeLanguage `!insertmacro ReadmeLangStrings "UN"`
!endif
!endif
!verbose pop

296
Makefile
View File

@ -1,296 +0,0 @@
#---------------------------------------------------------------------------------
# Clear the implicit built in rules
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
endif
include $(DEVKITPPC)/wii_rules
#---------------------------------------------------------------------------------
# TARGET is the name of the output
# BUILD is the directory where object files & intermediate files will be placed
# SOURCES is a list of directories containing source code
# INCLUDES is a list of directories containing extra header files
#---------------------------------------------------------------------------------
TARGET := boot
BUILD := build
SOURCES := source \
source/GUI \
source/Controls \
source/system \
source/libs/libwbfs \
source/language \
source/mload \
source/mload/modules \
source/patches \
source/usbloader \
source/xml \
source/network \
source/settings \
source/settings/menus \
source/prompts \
source/wad \
source/banner \
source/Channels \
source/BoxCover \
source/GameCube \
source/cheats \
source/homebrewboot \
source/themes \
source/menu \
source/memory \
source/FileOperations \
source/ImageOperations \
source/SoundOperations \
source/SystemMenu \
source/utils \
source/utils/minizip \
source/usbloader/wbfs
DATA := data \
data/images \
data/fonts \
data/sounds \
data/binary
INCLUDES := source
#---------------------------------------------------------------------------------
# Default cIOS to load into to load the settings
#---------------------------------------------------------------------------------
ifndef $(IOS)
IOS = 249
endif
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
CFLAGS = -g -ggdb -O3 -Wall -Wno-multichar -Wno-unused-parameter -Wextra $(MACHDEP) $(INCLUDE) -DBUILD_IOS=$(IOS)
CXXFLAGS = $(CFLAGS)
LDFLAGS = -g -ggdb $(MACHDEP) -Wl,-Map,$(notdir $@).map,--section-start,.init=0x80B00000,-wrap,malloc,-wrap,free,-wrap,memalign,-wrap,calloc,-wrap,realloc,-wrap,malloc_usable_size
ifeq ($(BUILDMODE),channel)
CFLAGS += -DFULLCHANNEL
CXXFLAGS += -DFULLCHANNEL
endif
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS := -lcustomfat -lcustomntfs -lcustomext2fs -lvorbisidec -lmad -lfreetype \
-lgd -ljpeg -lpng -lzip -lm -lz -lwiiuse -lbte -lasnd -logc
#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(DEVKITPPC)/lib $(CURDIR)
#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
# rules for different file extensions
#---------------------------------------------------------------------------------
ifneq ($(BUILD),$(notdir $(CURDIR)))
#---------------------------------------------------------------------------------
export PROJECTDIR := $(CURDIR)
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
export DEPSDIR := $(CURDIR)/$(BUILD)
#---------------------------------------------------------------------------------
# automatically build a list of object files for our project
#---------------------------------------------------------------------------------
SVNREV := $(shell bash ./svnrev.sh)
IMPORTFILES := $(shell bash ./filelist.sh)
export CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
export CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
ELFFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.elf)))
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.bin)))
TTFFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.ttf)))
PNGFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.png)))
OGGFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.ogg)))
PCMFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.pcm)))
WAVFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.wav)))
DOLFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.dol)))
MP3FILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.mp3)))
BNRFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.bnr)))
#---------------------------------------------------------------------------------
# use CXX for linking C++ projects, CC for standard C
#---------------------------------------------------------------------------------
ifeq ($(strip $(CPPFILES)),)
export LD := $(CC)
else
export LD := $(CXX)
endif
export OFILES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \
$(sFILES:.s=.o) $(SFILES:.S=.o) \
$(TTFFILES:.ttf=.ttf.o) $(PNGFILES:.png=.png.o) $(addsuffix .o,$(DOLFILES)) \
$(OGGFILES:.ogg=.ogg.o) $(PCMFILES:.pcm=.pcm.o) $(MP3FILES:.mp3=.mp3.o) \
$(WAVFILES:.wav=.wav.o) $(addsuffix .o,$(ELFFILES)) $(addsuffix .o,$(BINFILES)) \
$(BNRFILES:.bnr=.bnr.o) $(CURDIR)/data/magic_patcher.o
#---------------------------------------------------------------------------------
# build a list of include paths
#---------------------------------------------------------------------------------
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(CURDIR)/$(BUILD) -I$(LIBOGC_INC) \
-I$(PORTLIBS)/include -I$(PORTLIBS)/include/freetype2
#---------------------------------------------------------------------------------
# build a list of library paths
#---------------------------------------------------------------------------------
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) -L$(CURDIR)/source/libs/libfat/ \
-L$(CURDIR)/source/libs/libntfs/ -L$(CURDIR)/source/libs/libext2fs/ \
-L$(LIBOGC_LIB) -L$(PORTLIBS)/lib
export OUTPUT := $(CURDIR)/$(TARGET)
.PHONY: $(BUILD) lang all clean
#---------------------------------------------------------------------------------
$(BUILD):
@[ -d $@ ] || mkdir -p $@
ifneq ($(IOS),249)
@rm -f $(BUILD)/CSettings.o
endif
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
channel:
@[ -d build ] || mkdir -p build
@$(MAKE) BUILDMODE=channel --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
#---------------------------------------------------------------------------------
lang:
@[ -d build ] || mkdir -p build
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile language
#---------------------------------------------------------------------------------
theme:
@[ -d build ] || mkdir -p build
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile language
#---------------------------------------------------------------------------------
all:
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile lang
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).dol
#---------------------------------------------------------------------------------
run:
$(MAKE)
@echo Done building ...
@echo Now Run That Shit ...
wiiload $(OUTPUT).dol
#---------------------------------------------------------------------------------
reload:
wiiload -r $(OUTPUT).dol
#---------------------------------------------------------------------------------
release:
$(MAKE)
cp boot.dol ./hbc/boot.dol
#---------------------------------------------------------------------------------
else
DEPENDS := $(OFILES:.o=.d)
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
$(OUTPUT).dol: $(OUTPUT).elf
$(OUTPUT).elf: $(OFILES)
language: $(wildcard $(PROJECTDIR)/Languages/*.lang) $(wildcard $(PROJECTDIR)/Themes/*.them)
#---------------------------------------------------------------------------------
# This rule links in binary data with .ttf, .png, and .mp3 extensions
#---------------------------------------------------------------------------------
%.elf.o : %.elf
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.dol.o : %.dol
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.ttf.o : %.ttf
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.png.o : %.png
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.ogg.o : %.ogg
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.pcm.o : %.pcm
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.wav.o : %.wav
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.mp3.o : %.mp3
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.certs.o : %.certs
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.dat.o : %.dat
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.bin.o : %.bin
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.tik.o : %.tik
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.tmd.o : %.tmd
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
%.bnr.o : %.bnr
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
export PATH := $(PROJECTDIR)/gettext-bin:$(PATH)
%.pot: $(CFILES) $(CPPFILES)
@echo Updating Languagefiles ...
@touch $(PROJECTDIR)/Languages/$(TARGET).pot
@xgettext -C -cTRANSLATORS --from-code=utf-8 --sort-output --no-wrap --no-location -ktr -ktrNOOP -o$(PROJECTDIR)/Languages/$(TARGET).pot -p $@ $^
@echo Updating Themefiles ...
@touch $(PROJECTDIR)/Themes/$(TARGET).pot
@xgettext -C -cTRANSLATORS --from-code=utf-8 -F --no-wrap --add-location -kthInt -kthColor -kthAlign -o$(PROJECTDIR)/Themes/$(TARGET).pot -p $@ $^
%.lang: $(PROJECTDIR)/Languages/$(TARGET).pot
@msgmerge -U -N --no-wrap --no-location --backup=none -q $@ $<
@touch $@
%.them: $(PROJECTDIR)/Themes/$(TARGET).pot
@msgmerge -U -N --no-wrap --no-location --backup=none -q $@ $<
@touch $@
-include $(DEPENDS)
#---------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------

View File

@ -1,938 +0,0 @@
# USB Loader GX theme source file.
# don't delete/change this line (é).
# ONLY the value before the '-' char needs to be entered in msgstr ""
# not the complete text.
# It is important that the image folder is defined for the images to load.
# The image folder should be in the same folder as the .them file and include the theme images.
msgid ""
msgstr ""
"Project-Id-Version: USB Loader GX\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-05-06 12:19+0100\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Theme-Title: Example\n"
"Image-Folder: Example\n"
"Last-Themer: Example\n"
"Theme-Team: Example\n"
"Theme-Version: Example\n"
msgid "r=237 g=237 b=237 a=255 - banner icon frame color"
msgstr ""
msgid "r=52 g=190 b=237 a=255 - banner icon highlite color"
msgstr ""
msgid "r=130 g=130 b=130 a=0 - banner icon frame edge tev color 1"
msgstr ""
msgid "r=180 g=180 b=180 a=255 - banner icon frame edge tev color 2"
msgstr ""
msgid "r=255 g=255 b=255 a=255 - banner icon frame edge tev color 3"
msgstr ""
msgid "right - checkbox browser scrollbar align hor"
msgstr ""
msgid "top - checkbox browser scrollbar align ver"
msgstr ""
msgid "0 - checkbox browser scrollbar pos x"
msgstr ""
msgid "5 - checkbox browser scrollbar pos y"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - checkbox browser text color"
msgstr ""
msgid "left - carousel layout left arrow align hor"
msgstr ""
msgid "top - carousel layout left arrow align ver"
msgstr ""
msgid "20 - carousel layout left arrow pos x"
msgstr ""
msgid "65 - carousel layout left arrow pos y"
msgstr ""
msgid "right - carousel layout right arrow align hor"
msgstr ""
msgid "top - carousel layout right arrow align ver"
msgstr ""
msgid "-20 - carousel layout right arrow pos x"
msgstr ""
msgid "65 - carousel layout right arrow pos y"
msgstr ""
msgid "r=55 g=190 b=237 a=255 - carousel game name text color"
msgstr ""
msgid "0 - game grid layout pos x"
msgstr ""
msgid "20 - game grid layout pos y"
msgstr ""
msgid "255 - tooltip alpha"
msgstr ""
msgid "9 - game list browser page size"
msgstr ""
msgid "right - game browser scrollbar align hor"
msgstr ""
msgid "top - game browser scrollbar align ver"
msgstr ""
msgid "0 - game browser scrollbar pos x"
msgstr ""
msgid "5 - game browser scrollbar pos y"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - game browser list text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - game browser list text color over"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - keyboard text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - keyboard key text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - numpad text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - numpad key text color"
msgstr ""
msgid "right - options browser scrollbar align hor"
msgstr ""
msgid "top - options browser scrollbar align ver"
msgstr ""
msgid "0 - options browser scrollbar pos x"
msgstr ""
msgid "5 - options browser scrollbar pos y"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - settings text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - prompt windows button text color"
msgstr ""
msgid "r=55 g=190 b=237 a=255 - hdd info color"
msgstr ""
msgid "center - hdd info align hor"
msgstr ""
msgid "top - hdd info align ver"
msgstr ""
msgid "0 - hdd info pos x"
msgstr ""
msgid "400 - hdd info pos y"
msgstr ""
msgid "r=55 g=190 b=237 a=255 - game count color"
msgstr ""
msgid "center - game count align hor"
msgstr ""
msgid "top - game count align ver"
msgstr ""
msgid "0 - game count pos x"
msgstr ""
msgid "420 - game count pos y"
msgstr ""
msgid "16 - install btn pos x"
msgstr ""
msgid "355 - install btn pos y"
msgstr ""
msgid "371 - settings btn pos y"
msgstr ""
msgid "64 - settings btn pos x"
msgstr ""
msgid "371 - home menu btn pos y"
msgstr ""
msgid "489 - home menu btn pos x"
msgstr ""
msgid "355 - power off btn pos y"
msgstr ""
msgid "576 - power off btn pos x"
msgstr ""
msgid "160 - sd card btn pos x"
msgstr ""
msgid "395 - sd card btn pos y"
msgstr ""
msgid "405 - HBC btn pos y"
msgstr ""
msgid "410 - HBC btn pos x"
msgstr ""
msgid "26 - cover/download btn pos x"
msgstr ""
msgid "58 - cover/download btn pos y"
msgstr ""
msgid "305 - gameID btn pos y"
msgstr ""
msgid "68 - gameID btn pos x"
msgstr ""
msgid "r=138 g=138 b=138 a=240 - clock color"
msgstr ""
msgid "left - clock align hor"
msgstr ""
msgid "top - clock align ver"
msgstr ""
msgid "275 - clock pos x"
msgstr ""
msgid "335 - clock pos y"
msgstr ""
msgid "168 - list layout favorite btn pos x"
msgstr ""
msgid "214 - list layout favorite btn pos x widescreen"
msgstr ""
msgid "13 - list layout favorite btn pos y"
msgstr ""
msgid "208 - list layout search btn pos x"
msgstr ""
msgid "246 - list layout search btn pos x widescreen"
msgstr ""
msgid "13 - list layout search btn pos y"
msgstr ""
msgid "248 - list layout abc/sort btn pos x"
msgstr ""
msgid "278 - list layout abc/sort btn pos x widescreen"
msgstr ""
msgid "13 - list layout abc/sort btn pos y"
msgstr ""
msgid "288 - list layout loadermode btn pos x"
msgstr ""
msgid "310 - list layout loadermode btn pos x widescreen"
msgstr ""
msgid "13 - list layout loadermode btn pos y"
msgstr ""
msgid "328 - list layout category btn pos x"
msgstr ""
msgid "342 - list layout category btn pos x widescreen"
msgstr ""
msgid "13 - list layout category btn pos y"
msgstr ""
msgid "368 - list layout list btn pos x"
msgstr ""
msgid "374 - list layout list btn pos x widescreen"
msgstr ""
msgid "13 - list layout list btn pos y"
msgstr ""
msgid "406 - list layout grid btn pos x widescreen"
msgstr ""
msgid "408 - list layout grid btn pos x"
msgstr ""
msgid "13 - list layout grid btn pos y"
msgstr ""
msgid "438 - list layout carousel btn pos x widescreen"
msgstr ""
msgid "448 - list layout carousel btn pos x"
msgstr ""
msgid "13 - list layout carousel btn pos y"
msgstr ""
msgid "470 - list layout bannergrid btn pos x widescreen"
msgstr ""
msgid "488 - list bannergrid btn pos x"
msgstr ""
msgid "13 - list layout bannergrid btn pos y"
msgstr ""
msgid "502 - list layout lock btn pos x widescreen"
msgstr ""
msgid "528 - list layout lock btn pos x"
msgstr ""
msgid "13 - list layout lock btn pos y"
msgstr ""
msgid "534 - list layout dvd btn pos x widescreen"
msgstr ""
msgid "568 - list layout dvd btn pos x"
msgstr ""
msgid "13 - list layout dvd btn pos y"
msgstr ""
msgid "280 - game list layout height"
msgstr ""
msgid "396 - game list layout width"
msgstr ""
msgid "200 - game list layout pos x"
msgstr ""
msgid "49 - game list layout pos y"
msgstr ""
msgid "100 - grid layout favorite btn pos x"
msgstr ""
msgid "144 - grid layout favorite btn pos x widescreen"
msgstr ""
msgid "13 - grid layout favorite btn pos y"
msgstr ""
msgid "140 - grid layout search btn pos x"
msgstr ""
msgid "176 - grid layout search btn pos x widescreen"
msgstr ""
msgid "13 - grid layout search btn pos y"
msgstr ""
msgid "180 - grid layout abc/sort btn pos x"
msgstr ""
msgid "208 - grid layout abc/sort btn pos x widescreen"
msgstr ""
msgid "13 - grid layout abc/sort btn pos y"
msgstr ""
msgid "220 - grid layout loadermode btn pos x"
msgstr ""
msgid "240 - grid layout loadermode btn pos x widescreen"
msgstr ""
msgid "13 - grid layout loadermode btn pos y"
msgstr ""
msgid "260 - grid layout category btn pos x"
msgstr ""
msgid "272 - grid layout category btn pos x widescreen"
msgstr ""
msgid "13 - grid layout category btn pos y"
msgstr ""
msgid "300 - grid layout list btn pos x"
msgstr ""
msgid "304 - grid layout list btn pos x widescreen"
msgstr ""
msgid "13 - grid layout list btn pos y"
msgstr ""
msgid "336 - grid layout grid btn pos x widescreen"
msgstr ""
msgid "340 - grid layout grid btn pos x"
msgstr ""
msgid "13 - grid layout grid btn pos y"
msgstr ""
msgid "368 - grid layout carousel btn pos x widescreen"
msgstr ""
msgid "380 - grid layout carousel btn pos x"
msgstr ""
msgid "13 - grid layout carousel btn pos y"
msgstr ""
msgid "400 - grid layout bannergrid btn pos x widescreen"
msgstr ""
msgid "420 - grid bannergrid btn pos x"
msgstr ""
msgid "13 - grid layout bannergrid btn pos y"
msgstr ""
msgid "432 - grid layout lock btn pos x widescreen"
msgstr ""
msgid "460 - grid layout lock btn pos x"
msgstr ""
msgid "13 - grid layout lock btn pos y"
msgstr ""
msgid "464 - grid layout dvd btn pos x widescreen"
msgstr ""
msgid "500 - grid layout dvd btn pos x"
msgstr ""
msgid "13 - grid layout dvd btn pos y"
msgstr ""
msgid "400 - game grid layout height"
msgstr ""
msgid "640 - game grid layout width"
msgstr ""
msgid "100 - carousel layout favorite btn pos x"
msgstr ""
msgid "144 - carousel layout favorite btn pos x widescreen"
msgstr ""
msgid "13 - carousel layout favorite btn pos y"
msgstr ""
msgid "140 - carousel layout search btn pos x"
msgstr ""
msgid "176 - carousel layout search btn pos x widescreen"
msgstr ""
msgid "13 - carousel layout search btn pos y"
msgstr ""
msgid "180 - carousel layout abc/sort btn pos x"
msgstr ""
msgid "208 - carousel layout abc/sort btn pos x widescreen"
msgstr ""
msgid "13 - carousel layout abc/sort btn pos y"
msgstr ""
msgid "220 - carousel layout loadermode btn pos x"
msgstr ""
msgid "240 - carousel layout loadermode btn pos x widescreen"
msgstr ""
msgid "13 - carousel layout loadermode btn pos y"
msgstr ""
msgid "260 - carousel layout category btn pos x"
msgstr ""
msgid "272 - carousel layout category btn pos x widescreen"
msgstr ""
msgid "13 - carousel layout category btn pos y"
msgstr ""
msgid "300 - carousel layout list btn pos x"
msgstr ""
msgid "304 - carousel layout list btn pos x widescreen"
msgstr ""
msgid "13 - carousel layout list btn pos y"
msgstr ""
msgid "336 - carousel layout grid btn pos x widescreen"
msgstr ""
msgid "340 - carousel layout grid btn pos x"
msgstr ""
msgid "13 - carousel layout grid btn pos y"
msgstr ""
msgid "368 - carousel layout carousel btn pos x widescreen"
msgstr ""
msgid "380 - carousel layout carousel btn pos x"
msgstr ""
msgid "13 - carousel layout carousel btn pos y"
msgstr ""
msgid "400 - carousel layout bannergrid btn pos x widescreen"
msgstr ""
msgid "420 - carousel bannergrid btn pos x"
msgstr ""
msgid "13 - carousel layout bannergrid btn pos y"
msgstr ""
msgid "432 - carousel layout lock btn pos x widescreen"
msgstr ""
msgid "460 - carousel layout lock btn pos x"
msgstr ""
msgid "13 - carousel layout lock btn pos y"
msgstr ""
msgid "464 - carousel layout dvd btn pos x widescreen"
msgstr ""
msgid "500 - carousel layout dvd btn pos x"
msgstr ""
msgid "13 - carousel layout dvd btn pos y"
msgstr ""
msgid "400 - game carousel layout height"
msgstr ""
msgid "640 - game carousel layout width"
msgstr ""
msgid "-20 - game carousel layout pos y"
msgstr ""
msgid "0 - game carousel layout pos x"
msgstr ""
msgid "100 - bannergrid layout favorite btn pos x"
msgstr ""
msgid "144 - bannergrid layout favorite btn pos x widescreen"
msgstr ""
msgid "13 - bannergrid layout favorite btn pos y"
msgstr ""
msgid "140 - bannergrid layout search btn pos x"
msgstr ""
msgid "176 - bannergrid layout search btn pos x widescreen"
msgstr ""
msgid "13 - bannergrid layout search btn pos y"
msgstr ""
msgid "180 - bannergrid layout abc/sort btn pos x"
msgstr ""
msgid "208 - bannergrid layout abc/sort btn pos x widescreen"
msgstr ""
msgid "13 - bannergrid layout abc/sort btn pos y"
msgstr ""
msgid "220 - bannergrid layout loadermode btn pos x"
msgstr ""
msgid "240 - bannergrid layout loadermode btn pos x widescreen"
msgstr ""
msgid "13 - bannergrid layout loadermode btn pos y"
msgstr ""
msgid "260 - bannergrid layout category btn pos x"
msgstr ""
msgid "272 - bannergrid layout category btn pos x widescreen"
msgstr ""
msgid "13 - bannergrid layout category btn pos y"
msgstr ""
msgid "300 - bannergrid layout list btn pos x"
msgstr ""
msgid "304 - bannergrid layout list btn pos x widescreen"
msgstr ""
msgid "13 - bannergrid layout list btn pos y"
msgstr ""
msgid "336 - bannergrid layout grid btn pos x widescreen"
msgstr ""
msgid "340 - bannergrid layout grid btn pos x"
msgstr ""
msgid "13 - bannergrid layout grid btn pos y"
msgstr ""
msgid "368 - bannergrid layout carousel btn pos x widescreen"
msgstr ""
msgid "380 - bannergrid layout carousel btn pos x"
msgstr ""
msgid "13 - bannergrid layout carousel btn pos y"
msgstr ""
msgid "400 - bannergrid layout bannergrid btn pos x widescreen"
msgstr ""
msgid "420 - bannergrid bannergrid btn pos x"
msgstr ""
msgid "13 - bannergrid layout bannergrid btn pos y"
msgstr ""
msgid "432 - bannergrid layout lock btn pos x widescreen"
msgstr ""
msgid "460 - bannergrid layout lock btn pos x"
msgstr ""
msgid "13 - bannergrid layout lock btn pos y"
msgstr ""
msgid "464 - bannergrid layout dvd btn pos x widescreen"
msgstr ""
msgid "500 - bannergrid layout dvd btn pos x"
msgstr ""
msgid "13 - bannergrid layout dvd btn pos y"
msgstr ""
msgid "0 - game bannergrid layout pos x"
msgstr ""
msgid "0 - game bannergrid layout pos y"
msgstr ""
msgid "1 - show hdd info: 1 for on and 0 for off"
msgstr ""
msgid "1 - show game count: 1 for on and 0 for off"
msgstr ""
msgid "center - category switch prompt align hor"
msgstr ""
msgid "middle - category switch prompt align ver"
msgstr ""
msgid "0 - category switch prompt pos x"
msgstr ""
msgid "0 - category switch prompt pos y"
msgstr ""
msgid "r=55 g=190 b=237 a=255 - game id text color"
msgstr ""
msgid "r=55 g=190 b=237 a=255 - region info text color"
msgstr ""
msgid "30 - region info text pos y"
msgstr ""
msgid "68 - region info text pos x"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - banner window playcount text color"
msgstr ""
msgid "0 - banner window play count pos x"
msgstr ""
msgid "215 - banner window play count pos y"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - category prompt title text color"
msgstr ""
msgid "center - category prompt title text align hor"
msgstr ""
msgid "top - category prompt title text align ver"
msgstr ""
msgid "0 - category prompt title text pos x"
msgstr ""
msgid "10 - category prompt title text pos y"
msgstr ""
msgid "center - category prompt browser align hor"
msgstr ""
msgid "top - category prompt browser align ver"
msgstr ""
msgid "0 - category prompt browser pos x"
msgstr ""
msgid "45 - category prompt browser pos y"
msgstr ""
msgid "left - category prompt add button text align hor"
msgstr ""
msgid "top - category prompt add button text align ver"
msgstr ""
msgid "10 - category prompt add button text pos x"
msgstr ""
msgid "6 - category prompt add button text pos y"
msgstr ""
msgid "left - category prompt add button align hor"
msgstr ""
msgid "top - category prompt add button align ver"
msgstr ""
msgid "180 - category prompt add button pos x"
msgstr ""
msgid "330 - category prompt add button pos y"
msgstr ""
msgid "left - category prompt delete button text align hor"
msgstr ""
msgid "top - category prompt delete button text align ver"
msgstr ""
msgid "10 - category prompt delete button text pos x"
msgstr ""
msgid "6 - category prompt delete button text pos y"
msgstr ""
msgid "left - category prompt delete button align hor"
msgstr ""
msgid "top - category prompt delete button align ver"
msgstr ""
msgid "330 - category prompt delete button pos y"
msgstr ""
msgid "5 - category prompt delete button pos x"
msgstr ""
msgid "left - category prompt edit button text align hor"
msgstr ""
msgid "top - category prompt edit button text align ver"
msgstr ""
msgid "10 - category prompt edit button text pos x"
msgstr ""
msgid "6 - category prompt edit button text pos y"
msgstr ""
msgid "left - category prompt edit button align hor"
msgstr ""
msgid "top - category prompt edit button align ver"
msgstr ""
msgid "180 - category prompt edit button pos x"
msgstr ""
msgid "362 - category prompt edit button pos y"
msgstr ""
msgid "bottom - category prompt save button align ver"
msgstr ""
msgid "center - category prompt save button align hor"
msgstr ""
msgid "-110 - category prompt save button pos x"
msgstr ""
msgid "0 - category prompt save button pos y"
msgstr ""
msgid "bottom - category prompt back button align ver"
msgstr ""
msgid "center - category prompt back button align hor"
msgstr ""
msgid "0 - category prompt back button pos y"
msgstr ""
msgid "110 - category prompt back button pos x"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - check box browser prompt title text color"
msgstr ""
msgid "center - check box browser prompt title text align hor"
msgstr ""
msgid "top - check box browser prompt title text align ver"
msgstr ""
msgid "0 - check box browser prompt title text pos x"
msgstr ""
msgid "10 - check box browser prompt title text pos y"
msgstr ""
msgid "center - check box browser prompt browser align hor"
msgstr ""
msgid "top - check box browser prompt browser align ver"
msgstr ""
msgid "0 - check box browser prompt browser pos x"
msgstr ""
msgid "45 - check box browser prompt browser pos y"
msgstr ""
msgid "bottom - check box browser prompt install button align ver"
msgstr ""
msgid "center - check box browser prompt install button align hor"
msgstr ""
msgid "-110 - check box browser prompt install button pos x"
msgstr ""
msgid "0 - check box browser prompt install button pos y"
msgstr ""
msgid "bottom - check box browser prompt back button align ver"
msgstr ""
msgid "center - check box browser prompt back button align hor"
msgstr ""
msgid "0 - check box browser prompt back button pos y"
msgstr ""
msgid "110 - check box browser prompt back button pos x"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - prompt windows text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - game window name text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - game window size text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - game window playcount text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - game window details button text color"
msgstr ""
msgid "r=30 g=30 b=240 a=255 - game window details button over text color"
msgstr ""
msgid "r=0 g=0 b=0 a=255 - settings title text color"
msgstr ""
msgid "center - category game prompt align hor"
msgstr ""
msgid "middle - category game prompt align ver"
msgstr ""
msgid "0 - category game prompt pos x"
msgstr ""
msgid "0 - category game prompt pos y"
msgstr ""
msgid "center - settings option browser align hor"
msgstr ""
msgid "top - settings option browser align ver"
msgstr ""
msgid "0 - settings option browser pos x"
msgstr ""
msgid "90 - settings option browser pos y"
msgstr ""
msgid "center - settings title text align hor"
msgstr ""
msgid "top - settings title text align ver"
msgstr ""
msgid "0 - settings title text pos x"
msgstr ""
msgid "40 - settings title text pos y"
msgstr ""
msgid "310 - settings title text max width"
msgstr ""
msgid "1 - Enable tooltips: 0 for off and 1 for on"
msgstr ""

BIN
USBLoaderGX.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

BIN
USBLoaderGX.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

871
USBLoaderGX_Installer.nsi Normal file
View File

@ -0,0 +1,871 @@
;Copyright 2012 NeoRame
;Website: http://sourceforge.net/projects/usbloadergx/
;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.
;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.
;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;GNU General Public License for more details.
;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
!include InstallerConfig.nsh
;=== Program Details
Name "${NAME2}"
OutFile "${FILENAME}.exe"
InstallDir "\${SHORTNAME}"
Caption "${NAME2} Installer"
VIProductVersion "${VERSION}"
VIAddVersionKey ProductName "${NAME2}"
VIAddVersionKey Comments "For more informations please visit http://sourceforge.net/projects/usbloadergx/"
VIAddVersionKey CompanyName "${TEAM}"
VIAddVersionKey LegalCopyright "${TEAM}"
VIAddVersionKey FileDescription "${NAME2}"
VIAddVersionKey FileVersion "${VERSION}"
VIAddVersionKey ProductVersion "${VERSION}"
VIAddVersionKey InternalName "${NAME}"
VIAddVersionKey LegalTrademarks "${NAME2} created by ${TEAM}."
VIAddVersionKey OriginalFilename "${FILENAME}.exe"
;VIAddVersionKey PrivateBuild ""
;VIAddVersionKey SpecialBuild ""
;=== Runtime Switches
;SetDatablockOptimize on
;SetCompress off
SetCompressor /SOLID lzma
CRCCheck on
AutoCloseWindow True
;=== Include Modern UI
!include "${NSISDIR}\Contrib\Modern UI 2\MUI2.nsh"
!include "FileFunc.nsh"
!include "MUI_EXTRAPAGES.nsh"
!insertmacro GetOptions
!insertmacro GetDrives
!include "Sections.nsh"
!include "LogicLib.nsh"
;=== General
;Request application privileges for Windows Vista
RequestExecutionLevel user
;=== Interface Settings
!define MUI_ABORTWARNING
;=== Program Icon
Icon "${NAME}.ico"
;=== Icon & Style ===
!define MUI_ICON "${NAME}.ico"
BrandingText "${NAME2} - GUI for Waninkoko´s USB Loader (based on libwiigui)"
;=== Pages
!define MUI_WELCOMEFINISHPAGE_BITMAP ${NAME}.bmp
!define MUI_WELCOMEPAGE_TITLE "${NAME2}"
!define MUI_WELCOMEPAGE_TEXT "$(welcome)"
!insertmacro MUI_PAGE_WELCOME
;!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_SHOWREADME http://docs.google.com/View?id=dfwvk5sg_0gksqfcdj&hl=en
!define MUI_FINISHPAGE_TEXT "$(finish)"
;!define MUI_FINISHPAGE_LINK "Please DONATE!"
;!define MUI_FINISHPAGE_LINK_LOCATION https://www.paypal.com/de/cgi-bin/webscr?cmd=_flow&SESSION=E1LIyStPgJANyyD1vAmprj2ztJT3SSowGvCPLlWj9FKXySqqdKYvlS1MLoS&dispatch=5885d80a13c0db1fb6947b0aeae66fdbfb2119927117e3a6ad170b0a66ce6e8a
!insertmacro MUI_PAGE_FINISH
;=== Languages
!insertmacro MUI_LANGUAGE "ENGLISH" ;first language is the default language
!insertmacro MUI_LANGUAGE "GERMAN"
!insertmacro MUI_LANGUAGE "FRENCH"
!include LANG.nsh
;===Reserve Files
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
;insertmacro MUI_RESERVEFILE_LANGDLL
;=== Tools
!macro CharStrip Char InStr OutVar
Push '${InStr}'
Push '${Char}'
Call CharStrip
Pop '${OutVar}'
!macroend
!define CharStrip '!insertmacro CharStrip'
;=== Installer Sections
Section "USB Loader GX" SecMain
;SectionIn RO
AddSize "4832"
SetOutPath "$INSTDIR"
NSISdl::download http://svn.code.sf.net/p/usbloadergx/code/branches/updates/update_dol.txt rev.txt
;get revision number
Push 1 ;line number to read from
Push "$INSTDIR\rev.txt" ;text file to read
Call ReadFileLine
Pop $R5 ;output string (read from meta.txt)
; remove line endings
${CharStrip} "$\n" $R5 $R5
${CharStrip} "$\r" $R5 $R5
;get download link
Push 2 ;line number to read from
Push "$INSTDIR\rev.txt" ;text file to read
Call ReadFileLine
Pop $R0 ;output string (read from meta.txt)
; remove line endings
${CharStrip} "$\n" $R0 $R0
${CharStrip} "$\r" $R0 $R0
;get download link for languages
Push 3 ;line number to read from
Push "$INSTDIR\rev.txt" ;text file to read
Call ReadFileLine
Pop $R6 ;output string (read from meta.txt)
; remove line endings
${CharStrip} "$\n" $R6 $R6
${CharStrip} "$\r" $R6 $R6
; remove file again
Delete "$INSTDIR\rev.txt"
NSISdl::download http://svn.code.sf.net/p/usbloadergx/code/branches/updates/icon.png icon.png
NSISdl::download http://svn.code.sf.net/p/usbloadergx/code/branches/updates/meta.xml meta.xml
NSISdl::download $R0 boot.dol
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
CreateDirectory "$INSTDIR"
CreateDirectory "$INSTDIR\images"
CreateDirectory "$INSTDIR\images\disc"
CreateDirectory "$INSTDIR\language"
;CreateDirectory "$INSTDIR\backgroundmusic"
;CreateDirectory "$INSTDIR\..\..\codes"
;CreateDirectory "$INSTDIR\..\..\txtcodes"
SectionEnd
SectionGroup "$(DESC_Op_Lang)" SecOptional1
Section "!$(DESC_SD)" g2o1
AddSize "0"
SetOutPath $INSTDIR
;File /r "readMii.txt"
Push "$INSTDIR\GXGlobal.cfg" ; file to modify
Push "language_path" ; string that a line must begin with *WS Sensitive*
Push "" ; string to replace whole line with
Call ReplaceLineStr
Push "$INSTDIR\GXGlobal.cfg" ; file to modify
Push " language_path" ; string that a line must begin with *WS Sensitive*
Push "" ; string to replace whole line with
Call ReplaceLineStr
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "# USB Loader GX R$R5 - Main settings file$\r$\n" ; we write a new line
FileWrite $4 "language_path = sd:/apps/${SHORTNAME}/language/"
FileClose $4 ; and close the file
SectionEnd
Section /o "!$(DESC_USB)" g2o2
AddSize "0"
SetOutPath $INSTDIR
;File /r "readMii.txt"
Push "$INSTDIR\GXGlobal.cfg" ; file to modify
Push "language_path" ; string that a line must begin with *WS Sensitive*
Push "" ; string to replace whole line with
Call ReplaceLineStr
Push "$INSTDIR\GXGlobal.cfg" ; file to modify
Push " language_path" ; string that a line must begin with *WS Sensitive*
Push "" ; string to replace whole line with
Call ReplaceLineStr
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "$\r$\n" ; we write a new line
FileWrite $4 "language_path = usb1:/apps/${SHORTNAME}/language/"
FileClose $4 ; and close the file
SectionEnd
Section /o "Czech" g1o19
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/czech.lang" czech.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "czech.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Danish" g1o2
AddSize "13"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/danish.lang" danish.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "danish.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Dutch" g1o3
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/dutch.lang" dutch.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "dutch.lang"
FileClose $4 ; and close the file
SectionEnd
Section "English" g1o4
AddSize "9"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/english.lang" english.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "english.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Finnish" g1o5
AddSize "13"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/finnish.lang" finnish.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "finnish.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "French" g1o6
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/french.lang" french.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "french.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "German" g1o1
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/german.lang" german.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "german.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Hungarian" g1o20
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/hungarian.lang" hungarian.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "hungarian.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Italian" g1o7
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/italian.lang" italian.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "italian.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Japanese" g1o8
AddSize "16"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/japanese.lang" japanese.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "japanese.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Korean" g1o9
AddSize "13"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/korean.lang" korean.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "korean.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Norwegian" g1o10
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/norwegian.lang" norwegian.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "norwegian.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Polish" g1o21
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/polish.lang" polish.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "polish.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Portuguese_br" g1o11
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/portuguese_br.lang" portuguese_br.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "portuguese_br.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Portuguese_pt" g1o12
AddSize "15"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/portuguese_pt.lang" portuguese_pt.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "portuguese_pt.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Russian" g1o13
AddSize "16"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/russian.lang" russian.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "russian.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "S.Chinese" g1o14
AddSize "12"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/schinese.lang" schinese.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "schinese.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "T.Chinese" g1o15
AddSize "13"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/tchinese.lang" tchinese.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "tchinese.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Spanish" g1o16
AddSize "14"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/spanish.lang" spanish.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "spanish.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Swedish" g1o17
AddSize "13"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/swedish.lang" swedish.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "swedish.lang"
FileClose $4 ; and close the file
SectionEnd
Section /o "Turkish" g1o18
AddSize "13"
SetOutPath "$INSTDIR\language"
NSISdl::download "$R6/turkish.lang" turkish.lang
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
Abort
success:
FileOpen $4 "$INSTDIR\GXGlobal.cfg" a
FileSeek $4 0 END
FileWrite $4 "turkish.lang"
FileClose $4 ; and close the file
SectionEnd
SectionGroupEnd
Section /o "$(DESC_Op_Chan)" SecOptional3
SetOutPath "$INSTDIR\..\..\wad"
CreateDirectory "$INSTDIR\..\..\wad"
AddSize "6773"
NSISdl::download http://svn.code.sf.net/p/usbloadergx/code/branches/updates/update_wad.txt rev.txt
;get revision number
Push 1 ;line number to read from
Push "$INSTDIR\..\..\wad\rev.txt" ;text file to read
Call ReadFileLine
Pop $R5 ;output string (read from meta.txt)
; remove line endings
${CharStrip} "$\n" $R5 $R5
${CharStrip} "$\r" $R5 $R5
;get download link
Push 2 ;line number to read from
Push "$INSTDIR\..\..\wad\rev.txt" ;text file to read
Call ReadFileLine
Pop $R0 ;output string (read from meta.txt)
; remove line endings
${CharStrip} "$\n" $R0 $R0
${CharStrip} "$\r" $R0 $R0
;get download link for languages
Push 3 ;line number to read from
Push "$INSTDIR\rev.txt" ;text file to read
Call ReadFileLine
Pop $R6 ;output string (read from meta.txt)
; remove line endings
${CharStrip} "$\n" $R6 $R6
${CharStrip} "$\r" $R6 $R6
; remove file again
Delete "$INSTDIR\rev.txt"
NSISdl::download $R0 USBLoaderGX_UNLR.wad
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0 $R0"
Abort
success:
;ZipDLL::extractall "$INSTDIR\..\..\wad\dat4inst.zip" "$INSTDIR\..\..\wad"
;Delete "$INSTDIR\..\..\wad\dat4inst.zip"
SectionEnd
;Section /o "$(DESC_DB)" SecOptional2
;
; AddSize "114"
; SetOutPath "$INSTDIR\..\..\config"
; NSISdl::download http://wiitdb.com/wiitdb/pub/wiitdb.zip wiitdb.zip
; Pop $0
; StrCmp $0 success success
; SetDetailsView show
; DetailPrint "download failed: $0"
; Abort
; success:
;
; Push 1 ;line number to read from
; Push "$INSTDIR\rev.txt" ;text file to read
; Call ReadFileLine
; Pop $0 ;output string (read from meta.txt)
;
;SectionEnd
; Section /o "$(DESC_Cheats)" SecOptional4
; AddSize "15"
; SetOutPath "$INSTDIR\..\..\txtcodes"
; NSISdl::download http://usbloader-gui.googlecode.com/files/txtcodes.zip txtcodes.zip
; Pop $0
; StrCmp $0 success success
; SetDetailsView show
; DetailPrint "download failed: $0"
; Abort
; success:
; ZipDLL::extractall "$INSTDIR\..\..\txtcodes\txtcodes.zip" "$INSTDIR\..\..\txtcodes"
; Delete "$INSTDIR\..\..\txtcodes\txtcodes.zip"
; Push 1 ;line number to read from
; Push "$INSTDIR\rev.txt" ;text file to read
; Call ReadFileLine
; Pop $0 ;output string (read from meta.txt)
; SectionEnd
SectionGroup "!$(DESC_clean)" SecOptional5
Section /o "$(DESC_Folder1)" SecOptional6
Delete $INSTDIR\images\*.*
SectionEnd
Section /o "$(DESC_Folder2)" SecOptional7
AddSize "0"
Delete $INSTDIR\images\disc\*.*
SectionEnd
SectionGroupEnd
;=== Installer Functions/ Variables
Var FOUNDRMTPATH
Function .onInit
StrCpy $1 ${g1o4} ; Group 1 - Option 1 is selected by default
StrCpy $2 ${g2o1} ; Group 2 - Option 1 is selected by default
;!insertmacro MUI_LANGDLL_DISPLAY
;StrCpy $FOUNDRMTPATH ''
${GetOptions} "$CMDLINE" "/DESTINATION=" $R0
IfErrors CheckLegacyDestination
StrCpy $INSTDIR "$R0${SHORTNAME}"
Goto InitDone
CheckLegacyDestination:
ClearErrors
${GetOptions} "$CMDLINE" "-o" $R0
IfErrors NoDestination
StrCpy $INSTDIR "$R0${SHORTNAME}"
Goto InitDone
NoDestination:
ClearErrors
${GetDrives} "HDD+FDD" GetDrivesCallBack
StrCmp $FOUNDRMTPATH "" DefaultDestination
StrCpy $INSTDIR "$FOUNDRMTPATH\${SHORTNAME}"
Goto InitDone
DefaultDestination:
StrCpy $INSTDIR "$9\apps\${SHORTNAME}"
InitDone:
FunctionEnd
Function GetDrivesCallBack
;=== Skip usual floppy letters
StrCmp $8 "FDD" "" CheckForRMTPath
StrCmp $8 "CDROM" End
StrCmp $9 "A:\" End
StrCmp $9 "B:\" End
CheckForRMTPath:
${If} ${FileExists} "$9apps"
StrCpy $FOUNDRMTPATH "$9apps"
${Else}
StrCpy $FOUNDRMTPATH "$9apps"
${EndIf}
End:
Push $0
FunctionEnd
Function ReadFileLine
Exch $0 ;file
Exch
Exch $1 ;line number
Push $2
Push $3
FileOpen $2 $0 r
StrCpy $3 0
Loop:
IntOp $3 $3 + 1
ClearErrors
FileRead $2 $0
IfErrors +2
StrCmp $3 $1 0 loop
FileClose $2
Pop $3
Pop $2
Pop $1
Exch $0
FunctionEnd
;=== Descriptions and Lang Strings
;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecMain} $(DESC_SecMain)
!insertmacro MUI_DESCRIPTION_TEXT ${SecOptional1} $(DESC_SecOptional1)
;!insertmacro MUI_DESCRIPTION_TEXT ${SecOptional2} $(DESC_SecOptional2)
!insertmacro MUI_DESCRIPTION_TEXT ${SecOptional3} $(DESC_SecOptional3)
;!insertmacro MUI_DESCRIPTION_TEXT ${SecOptional4} $(DESC_SecOptional4)
!insertmacro MUI_DESCRIPTION_TEXT ${SecOptional5} $(DESC_SecOptional5)
!insertmacro MUI_DESCRIPTION_TEXT ${SecOptional6} $(DESC_SecOptional6)
!insertmacro MUI_DESCRIPTION_TEXT ${SecOptional7} $(DESC_SecOptional7)
!insertmacro MUI_DESCRIPTION_TEXT ${g2o1} $(DESC_SD_Des)
!insertmacro MUI_DESCRIPTION_TEXT ${g2o2} $(DESC_USB_Des)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;=== RadioButtons
Function .onSelChange
${If} ${SectionIsSelected} ${SecOptional1}
!insertmacro UnSelectSection ${SecOptional1}
!insertmacro SelectSection $1
!insertmacro SelectSection $2
${Else}
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${g1o1}
!insertmacro RadioButton ${g1o2}
!insertmacro RadioButton ${g1o3}
!insertmacro RadioButton ${g1o4}
!insertmacro RadioButton ${g1o5}
!insertmacro RadioButton ${g1o6}
!insertmacro RadioButton ${g1o7}
!insertmacro RadioButton ${g1o8}
!insertmacro RadioButton ${g1o9}
!insertmacro RadioButton ${g1o10}
!insertmacro RadioButton ${g1o11}
!insertmacro RadioButton ${g1o12}
!insertmacro RadioButton ${g1o13}
!insertmacro RadioButton ${g1o14}
!insertmacro RadioButton ${g1o15}
!insertmacro RadioButton ${g1o16}
!insertmacro RadioButton ${g1o17}
!insertmacro RadioButton ${g1o18}
!insertmacro RadioButton ${g1o19}
!insertmacro RadioButton ${g1o20}
!insertmacro RadioButton ${g1o21}
!insertmacro EndRadioButtons
!insertmacro StartRadioButtons $2
!insertmacro RadioButton ${g2o1}
!insertmacro RadioButton ${g2o2}
!insertmacro EndRadioButtons
${EndIf}
FunctionEnd
;==== CFG Edit
Function ReplaceLineStr
Exch $R0 ; string to replace that whole line with
Exch
Exch $R1 ; string that line should start with
Exch
Exch 2
Exch $R2 ; file
Push $R3 ; file handle
Push $R4 ; temp file
Push $R5 ; temp file handle
Push $R6 ; global
Push $R7 ; input string length
Push $R8 ; line string length
Push $R9 ; global
StrLen $R7 $R1
GetTempFileName $R4
FileOpen $R5 $R4 w
FileOpen $R3 $R2 r
ReadLoop:
ClearErrors
FileRead $R3 $R6
IfErrors Done
StrLen $R8 $R6
StrCpy $R9 $R6 $R7 -$R8
StrCmp $R9 $R1 0 +3
FileWrite $R5 "$R0"
Goto ReadLoop
FileWrite $R5 $R6
Goto ReadLoop
Done:
FileClose $R3
FileClose $R5
SetDetailsPrint none
Delete $R2
Rename $R4 $R2
SetDetailsPrint both
Pop $R9
Pop $R8
Pop $R7
Pop $R6
Pop $R5
Pop $R4
Pop $R3
Pop $R2
Pop $R1
Pop $R0
FunctionEnd
Function CharStrip
Exch $R0 #char
Exch
Exch $R1 #in string
Push $R2
Push $R3
Push $R4
StrCpy $R2 -1
IntOp $R2 $R2 + 1
StrCpy $R3 $R1 1 $R2
StrCmp $R3 "" +8
StrCmp $R3 $R0 0 -3
StrCpy $R3 $R1 $R2
IntOp $R2 $R2 + 1
StrCpy $R4 $R1 "" $R2
StrCpy $R1 $R3$R4
IntOp $R2 $R2 - 2
Goto -9
StrCpy $R0 $R1
Pop $R4
Pop $R3
Pop $R2
Pop $R1
Exch $R0
FunctionEnd

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 900 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 989 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Some files were not shown because too many files have changed in this diff Show More