Crate rg_formats

Source
Expand description

§Rhythm Game Formats

githubcrates-iodocs-rs

Various processors for various rhythm game formats.

These are the currently available modules:

  • sm for parsing .sm files.
  • sm_msd for parsing .msd files, or generally working with the raw underpinnings of the .sm and .ssc formats.

Clicking on either of these modules will tell you more.

§Usage

let sm_charts = rg_formats::sm::from_path("my_sm_file.sm")
    // an outer io::Error<> indicates whether the file could be read
    .expect("failed to open file")
    // the inner error indicates whether the contents of the file were valid SM.
    .expect("sm file was invalid");

Modules§

sm
Parsing, Processing and serializing of .sm files.
sm_msd
Parsing, Processing and serializing of .msd files. This is the file format that underpins .sm and .ssc.