#nintendo #switch #patch #modification #modding #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

#129 in Games

Download history 1694/week @ 2024-06-11 1279/week @ 2024-06-18 609/week @ 2024-06-25 553/week @ 2024-07-02 624/week @ 2024-07-09 734/week @ 2024-07-16 1129/week @ 2024-07-23 1542/week @ 2024-07-30 1589/week @ 2024-08-06 1530/week @ 2024-08-13 1514/week @ 2024-08-20 1424/week @ 2024-08-27 1550/week @ 2024-09-03 1565/week @ 2024-09-10 1538/week @ 2024-09-17 1158/week @ 2024-09-24

6,046 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

~1.5MB
~43K SLoC