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:

  1. Clones the SM64 decomp repo from git if not already cloned
  2. Copies the base ROM from base_rom into the repo
  3. Compiles the code
  4. Walks the codebase and loads the data
Parameters
  • base_rom - Path to a baserom.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 patch
  • code - GameShark code to convert

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.