#smash #https #libcurl #ultimate #hook #networking #operations

nightly smashnet

A Rust crate which hooks Smash Ultimate's libcurl in order to perform https operations

3 unstable releases

0.2.1 Feb 19, 2024
0.2.0 Nov 15, 2022
0.1.0 Nov 11, 2022

#5 in #libcurl

42 downloads per month
Used in nx-request-handler

Apache-2.0

42KB
598 lines

Smashnet

This is a crate which exposes GET request and download functionality for smash ultimate plugins. Instead of using minreq, which is slow due to lack of openssl impl for the switch, and which also requires devkitpro, this crate allows you to make get requests and download files using the game's own statically linked libcurl, which is offset hooked as necessary when Curler::new() is used.

Example usage:

use smashnet::types::*;

#[skyline::main(name = "your-plugin-here")]
pub fn main() {
  Curler::new()
    .progress_callback(|progress, total| println!("Progress: {}", progress/total))
    .download("https://github.com/techyCoder81/smashnet-nro/releases/download/nightly/checksum.txt");
}

Dependencies

~1.5MB
~43K SLoC