The Wii U Plugin Framework (WUPF) simplifies the creation of WUPS Homebrew applications. It builds upon the wups
library by offering an intuitive, stateful approach to plugin development with commonly needed functionalities.
use wupf::{PluginHandler, Plugin, hook_plugin};
#[derive(PluginHandler)]
struct MyPlugin {
value: u32
}
hook_plugin!(MyPlugin);
impl Plugin for MyPlugin {
fn on_init() -> Self {}
fn on_deinit(&mut self) {}
fn on_start(&mut self) {}
fn on_exit(&mut self) {}
}
To integrate WUPF into your project, add it via cargo
:
cargo add --features derive --git https://github.com/rust-wiiu/wupf wupf