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

#167 in Games

Download history 123/week @ 2023-12-13 58/week @ 2023-12-20 220/week @ 2023-12-27 261/week @ 2024-01-03 470/week @ 2024-01-10 484/week @ 2024-01-17 407/week @ 2024-01-24 319/week @ 2024-01-31 305/week @ 2024-02-07 445/week @ 2024-02-14 387/week @ 2024-02-21 313/week @ 2024-02-28 301/week @ 2024-03-06 369/week @ 2024-03-13 588/week @ 2024-03-20 489/week @ 2024-03-27

1,778 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
~41K SLoC