#modding #nintendo #patch #switch #modify #default #write

nightly 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

#159 in Games

Download history 520/week @ 2022-11-27 449/week @ 2022-12-04 640/week @ 2022-12-11 523/week @ 2022-12-18 517/week @ 2022-12-25 505/week @ 2023-01-01 481/week @ 2023-01-08 550/week @ 2023-01-15 528/week @ 2023-01-22 603/week @ 2023-01-29 692/week @ 2023-02-05 847/week @ 2023-02-12 829/week @ 2023-02-19 759/week @ 2023-02-26 771/week @ 2023-03-05 808/week @ 2023-03-12

3,280 downloads per month
Used in 3 crates

MIT license

46KB
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

~0.9–1.3MB
~33K SLoC