Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Data Structures | Macros | Enumerations | Functions
libsm64.h File Reference

Go to the source code of this file.

Data Structures

struct  sm64_config
 

Macros

#define MIO0_DIR   "mio0files"
 

Enumerations

enum  rom_type {
  ROM_INVALID, ROM_SM64_BS, ROM_SM64_BE, ROM_SM64_LE,
  ROM_SM64_BE_EXT
}
 
enum  rom_version {
  VERSION_UNKNOWN, VERSION_SM64_U, VERSION_SM64_E, VERSION_SM64_J,
  VERSION_SM64_SHINDOU
}
 

Functions

rom_type sm64_rom_type (unsigned char *buf, unsigned int length)
 
rom_version sm64_rom_version (unsigned char *buf)
 
void sm64_decompress_mio0 (const sm64_config *config, unsigned char *in_buf, unsigned int in_length, unsigned char *out_buf)
 
void sm64_update_checksums (unsigned char *buf)
 

Macro Definition Documentation

◆ MIO0_DIR

#define MIO0_DIR   "mio0files"

Enumeration Type Documentation

◆ rom_type

enum rom_type
Enumerator
ROM_INVALID 
ROM_SM64_BS 
ROM_SM64_BE 
ROM_SM64_LE 
ROM_SM64_BE_EXT 

◆ rom_version

Enumerator
VERSION_UNKNOWN 
VERSION_SM64_U 
VERSION_SM64_E 
VERSION_SM64_J 
VERSION_SM64_SHINDOU 

Function Documentation

◆ sm64_decompress_mio0()

void sm64_decompress_mio0 ( const sm64_config config,
unsigned char in_buf,
unsigned int  in_length,
unsigned char out_buf 
)

◆ sm64_rom_type()

rom_type sm64_rom_type ( unsigned char buf,
unsigned int  length 
)

◆ sm64_rom_version()

rom_version sm64_rom_version ( unsigned char buf)

◆ sm64_update_checksums()

void sm64_update_checksums ( unsigned char buf)