3 releases (stable)
| 1.1.0 | Jul 24, 2025 |
|---|---|
| 1.0.0 | Jul 28, 2024 |
| 0.1.0 | Jul 25, 2024 |
#328 in Compression
130 downloads per month
35KB
497 lines
This crate provides a lightweight wrapper around Lunar Magic's command line functions. It supports all available command line functions as of Lunar Magic 3.40.
Note that this crate requires wine to be installed, accessible as a command and working on operating systems other than Windows.
Paths passed to functions can be any type that can be turned into AsRef<Path>, e.g., the following will
all work equally well:
// `&str` works fine
let output = lm_wrapper.export_gfx("C:/hacks/my_project/my_hack.smc");
// So does a `Path`
let output = lm_wrapper.export_gfx(Path::new("C:/hacks/my_project/my_hack.smc"));
// So does a `String`
let output = lm_wrapper.export_gfx(String::from("C:/hacks/my_project/my_hack.smc"));
// And so on, but note that separators should be your operating system's separators, i.e. `\` should be used on Windows.
Lunar Magic Wrapper
A lightweight wrapper around the command line functionality of Lunar Magic, a commonly used Super Mario World editor.
For details on usage check the documentation.
Note that this is Windows only for now and relies on invoking cmd since Lunar Magic isn't particularly well-behaved on the command line.
Dependencies
~1.8–6.5MB
~143K SLoC