#nintendo #switch #modification #modding #patch #modify #helping

nightly no-std skyline

A library for helping patch and modify Nintendo Switch games

2 unstable releases

0.2.1 Aug 31, 2022
0.2.0 Aug 31, 2022
0.1.0 Sep 8, 2020

#173 in Games

Download history 1025/week @ 2024-07-21 1445/week @ 2024-07-28 1547/week @ 2024-08-04 1574/week @ 2024-08-11 1504/week @ 2024-08-18 1426/week @ 2024-08-25 1560/week @ 2024-09-01 1526/week @ 2024-09-08 1594/week @ 2024-09-15 1328/week @ 2024-09-22 1004/week @ 2024-09-29 853/week @ 2024-10-06 841/week @ 2024-10-13 848/week @ 2024-10-20 749/week @ 2024-10-27 533/week @ 2024-11-03

3,099 downloads per month
Used in 3 crates

MIT license

47KB
1K SLoC

skyline-rs

A Rust library for working with Skyline to allow you to write game code modification for Nintendo Switch games using Rust.

For no_std use, disable the std feature (enabled by default).

Suggested for use with cargo-skyline.

Example:

extern "C" fn test() -> u32 {
    2
}

#[skyline::hook(replace = test)]
fn test_replacement() -> u32 {

    let original_test = original!();

    let val = original_test();

    println!("[override] original value: {}", val); // 2

    val + 1
}

#[skyline::main(name = "skyline_rs_template")]
pub fn main() {
    println!("Hello from Skyline Rust Plugin!");

    skyline::install_hook!(test_replacement);

    let x = test();

    println!("[main] test returned: {}", x); // 3
}

Dependencies

~2MB
~44K SLoC