2018-07-01 19:33:40 +02:00
[Nightly builds](https://github.com/Maschell/WiiUPluginSystem/releases) | [Issue Tracker](https://github.com/Maschell/WiiUPluginSystem/issues) | [Discussion](https://gbatemp.net/threads/wii-u-plugin-system.496659/). | [Discord](https://discord.gg/bZ2rep2)
2018-02-04 10:31:42 +01:00
# Plugin system for the Wii U. (WIP) [![Build Status](https://api.travis-ci.org/Maschell/WiiUPluginSystem.svg?branch=master)](https://travis-ci.org/Maschell/WiiUPluginSystem)
2018-02-03 09:29:23 +01:00
2018-02-16 22:20:04 +01:00
WARNING: THIS PROJECT HAS JUST STARTED AND IS FOR DEVS AND PEOPLE WHO WANT TO PLAY AROUND WITH NEW THINGS. IT MAY BE BUGGY, FEATURE COULD BREAK AT ANY TIME, INTERFACES CAN CHANGE, AND MANY BUGS CAN OCCUR. THIS APPLICATION COMES WITH NO WARRANTY-
# What is the Wii U Plugin System?
The Wii U Plugin allows you to load multiple plugins on your Wii U which enhance your experience.
For example you can mod your games, use USB controller, swap your gamepad and TV screen and much more.
# Features
The project is still in it's very early days, but it already has basic functions to play with.
- The plugins will be loaded, even when you swap the running game.
- Support for up to 32 plugins at the same time.
- Each plugin can override up to 100 different existing system functions.
- Multiple plugins can override the same system functions.
- Plugins can register for certain hook (for example whenever an application was started)
- Plugins inherit the SD/USB access from the loader. All plugins have global SD and USB (FAT32 only) access.
2018-07-17 18:10:35 +02:00
- Plugins can be configured at run-time. Press L, DPAD down, and minus on the gamepad at the same time to open the configuration menu.
2018-02-04 10:31:42 +01:00
# How to build
2018-02-16 22:20:04 +01:00
The building process is split into multiple parts.
### WUPS library
First we have the "Wii U Plugin System" (WUPS) library.
To compile this, you need DEVKITPRO and DEVKITPPC installed and set in your environment.
Then call the following command in the root directory.
```
make
make install
```
The "make" builds the library, the "make install" copies it into your DEVKITPRO folder.
### Plugin loader
The plugin loader is the software run via the Homebrew Launcher, that uses the plugins.
It contains a copy mocha, so for building you need a copy of DEVKITARM installed and set in your environment.
For building the loader you need:
2018-02-14 23:42:06 +01:00
- [libiosuhax](https://github.com/dimok789/libiosuhax) (Build WITHOUT the WUT flag set.)
- [libfat](https://github.com/aliaspider/libfat/)
- [libntfs](https://github.com/Maschell/libntfs-wiiu) (Build with make wiiu-install)
2018-02-04 10:31:42 +01:00
- [dynamic_libs](https://github.com/Maschell/dynamic_libs/tree/lib) for access to the functions.
2018-02-16 22:20:04 +01:00
- [libutils](https://github.com/Maschell/libutils) for common functions.
2018-02-20 09:55:50 +01:00
- [libgui](https://github.com/Maschell/libgui) for the gui elements.
2018-02-16 22:20:04 +01:00
2018-03-04 16:27:57 +01:00
Install the according to their readmes. Don't forget to install their dependencies.
**Dependencies**
2018-03-04 16:31:26 +01:00
All needed dependencies are in the "loader/libs" folder of this repository. Extract the "portlibs.zip" archive into your devkitPro directory.
2018-03-04 16:27:57 +01:00
The archive includes:
- zlib
**Compiling**
2018-02-16 22:20:04 +01:00
Then call the following command in the "loader" directory.
2018-02-04 10:31:42 +01:00
```
make
```
2018-03-04 16:27:57 +01:00
2018-02-16 22:20:04 +01:00
This should create an "wiiupluginloader.elf" which can be loaded with the Homebrew Launcher.
2018-02-04 10:31:42 +01:00
2018-02-16 22:20:04 +01:00
### Plugins
2018-06-23 18:29:23 +02:00
2018-02-16 22:20:04 +01:00
Last but not least you need to build the plugins that should be loaded.
Plugins depend on the "WUPS library" installed in build step one, other dependencies are optional.
2018-02-03 12:35:49 +01:00
2018-07-01 19:33:40 +02:00
This is a (maybe incomplete) list of currently available plugins:
- [HID to VPAD](https://github.com/Maschell/hid_to_vpad/tree/wups):
Port of [HID to VPAD](https://github.com/Maschell/hid_to_vpad).
No configuration is possible yet, all controllers map automatically to the game pad, pro controller mapping not support. Network client is working.
- [Screenshot plugin](https://github.com/Maschell/ScreenshotWUPS):
Simple plugin that take a screenshot by presing L+R+ZL+ZR on the gamepad. Button combo can be changed.
2018-07-17 18:10:35 +02:00
- [Streaming plugin](https://github.com/Maschell/StreamingPluginWiiU):
Gamepad streaming tool. Open http://<ip of your wii u>:8000 on a browser in the same network.
2018-07-01 19:33:40 +02:00
- [SD Cafiine](https://github.com/Maschell/SDCafiine/tree/wups):
Port of the orignal SDCafiine (https://github.com/Maschell/SDCafiine). No NTFS support yet.
- [SwipSwapMe](https://github.com/Maschell/SwipSwapMe):
Swaps the TV and gamepad screen via a buttons combo.The button combo can be changed.
- [Diibugger](https://github.com/Maschell/DiiBuggerWUPS):
Port of the DiiBugger.
- [WUPSPluginPlayground (Various other demo plugins)](https://github.com/Maschell/WUPSPluginPlayground):
This repository is supposed to hold serveral small testing plugins for the Wii U Plugin System.
Most of the plugin are either really small (Padcon, NNU_Patcher) or are just for testing / gathering information.
2018-02-03 12:47:57 +01:00
2018-07-17 18:10:35 +02:00
# Configuration of the plugins
Plugins can register to the configuration menu.
This configuration menu can be opened while running any application (e.g. while gameplay).
Just press L, DPAD down and Minus on the gamepad.
2018-07-17 19:10:08 +02:00
This does only work when the game is allowed to open the home menu.
Settings made using the configuration menu will be saved to the SD Card and reloaded the next time the plugin will be used.
2018-07-17 18:10:35 +02:00
2018-02-16 22:20:04 +01:00
# Logging
For logging (for example of the loader) you need to start the UdpDebugReader on a computer in the same network.
This has been created by @dimok789 and can be found in the tools folder.
2018-02-03 12:35:49 +01:00
2018-03-04 16:27:57 +01:00
# Load plugin via network
While the loader is running, it's possible to load a single plugin via wiiload.
2018-07-17 19:10:08 +02:00
When using this feature, this and all plugins in `sd:/wiiu/plugins/temp` will be loaded. The plugin will copied to the SDCard, this mean a SDCard is required.
2018-03-04 16:27:57 +01:00
A windows executable can be found in `tools/wiiload.exe`
More information about wiiload and alternatives can be found here: http://wiibrew.org/wiki/Wiiload
2018-07-01 19:33:40 +02:00
# Future and contribution
2018-07-17 18:10:35 +02:00
On the Discord you can more information about open tasks and how to contribute: https://discord.gg/bZ2rep2
2018-02-03 12:47:57 +01:00
2018-02-04 10:14:45 +01:00
# Credits
2018-02-16 22:20:04 +01:00
Some files are based on brainslug by Chadderz:
https://github.com/Chadderz121/brainslug-wii
Much stuff also wouldn't be possible without dimok789. He made many great tools and homebrew this stuff in based on (Makefiles, Mocha, homebrew channel, udp logger, dynamic_libs etc.)
2018-03-04 16:27:57 +01:00
Also thanks to everyone who made actual exploits.
Thanks to dhewg for wiiload:
http://wiibrew.org/wiki/Wiiload