Struct sm64gs2pc::DecompData [−][src]
pub struct DecompData { /* fields omitted */ }
Expand description
Symbol data from the Super Mario 64 decompilation
This information is used for converting GameShark codes to PC port patches.
It can be loaded from the decompilation codebase or a pre-compiled version
can be accessed at DECOMP_DATA_STATIC
.
Implementations
Load from the SM64 decompilation codebase
This function:
- Clones the SM64 decomp repo from git if not already cloned
- Copies the base ROM from
base_rom
into the repo - Compiles the code
- Walks the codebase and loads the data
Parameters
base_rom
- Path to abaserom.us.z64
repo
- Path where the SM64 decompilation repo should be cloned
Panics
This function panics if any of its operations fail.
Convert GameShark code to a patch in the unified diff format
Parameters
name
- Name of cheat to be included in comment in patchcode
- GameShark code to convert
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for DecompData
impl Send for DecompData
impl Sync for DecompData
impl Unpin for DecompData
impl UnwindSafe for DecompData
Blanket Implementations
Mutably borrows from an owned value. Read more