You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Maschell a137f10ee9 Update Dockerfile 2 months ago
.github/workflows Change docker registry to 2 months ago
example/example_module Add information about the WUMS_DEPENDS_ON macro to the example module 5 months ago
include Add WUMS_DEINITIALIZE hook 5 months ago
libraries/libwums Format the code via clang-format 1 year ago
share Add WUMS_DEPENDS_ON macro, bump version to 0.3.2 5 months ago
.clang-format Format the code via clang-format 1 year ago
.gitignore Formatting 2 years ago
Dockerfile Update Dockerfile 2 months ago
Dockerfile.buildexamples Update Dockerfile 2 months ago
Dockerfile.buildlocal Update Dockerfile 2 months ago
LICENSE Change LICENSE to LGPL 9 months ago
Makefile WUMS 0.3.1 add hook for calling __ini and __fini 1 year ago
README.MD Change docker registry to 2 months ago


Publish Docker Image

Wii U Module System

This lib is designed to build modules to be loaded with the Wii U Module System Loader.


A module needs to implements at least the following macros.

#include <wums.h>



The WUMS_MODULE_EXPORT_NAME needs to be a globally unique name across all loaded modules. WUMS_INITIALIZE defines the code that will be run after the module was loaded. The module will have full permission to the sd card via fs:/vol/external01.

Optional macros/hooks

Other optional macros/hooks are support, here some examples:

    /** Is called when a new application was started. **/

    /** Is called when a new application is going to be closed. **/

This list is incomplete, see hooks.h for all hooks and meta.h for all macros.

Export functions

Modules can be used to export functions for other modules or "normal" applications.

#include <wums.h>

void MyCustomFunction() {
    /** Some special code that should be useable for everyone */


This function can then be used like they would be inside a .rpl, where the name of the "rpl" is the one defined in WUMS_MODULE_EXPORT_NAME.

Example using the Cafe OS OSDynLoad API:

if (OSDynLoad_Acquire("homebrew_modulename", &sModuleHandle) != OS_DYNLOAD_OK) {
    OSFatal("OSDynLoad_Acquire failed.");

void (*sMyCustomFunction)() = NULL;

if (OSDynLoad_FindExport(sModuleHandle, FALSE, "MyCustomFunction", (void**) &sMyCustomFunction) != OS_DYNLOAD_OK) {
    OSFatal("OSDynLoad_FindExport failed.");

Use this lib in Dockerfiles.

A prebuilt version of this lib can found on dockerhub. To use it for your projects, add this to your Dockerfile.

COPY[tag] /artifacts $DEVKITPRO

Replace [tag] with a tag you want to use, a list of tags can be found here. It's highly recommended to pin the version to the latest date instead of using latest.

Format the code via docker

docker run --rm -v ${PWD}:/src -r ./include ./libraries ./example/example_module/source -i