Functions | |
zelda3_rom * | yaze_load_rom_file (const char *filename) |
Load a ROM file. | |
yaze_status | yaze_validate_rom (const zelda3_rom *rom) |
Validate ROM integrity. | |
yaze_status | yaze_get_rom_info (const zelda3_rom *rom, zelda3_version *version, uint64_t *size) |
Get ROM information. | |
snes_color | yaze_get_color_from_paletteset (const zelda3_rom *rom, int palette_set, int palette, int color) |
Get a color from a palette set. | |
zelda3_rom * yaze_load_rom_file | ( | const char * | filename | ) |
Load a ROM file.
Loads a Zelda 3 ROM file and validates its format.
filename | Path to ROM file (.sfc, .smc, etc.) |
yaze_status yaze_validate_rom | ( | const zelda3_rom * | rom | ) |
Validate ROM integrity.
Checks if the ROM data is valid and uncorrupted.
rom | ROM to validate |
yaze_status yaze_get_rom_info | ( | const zelda3_rom * | rom, |
zelda3_version * | version, | ||
uint64_t * | size | ||
) |
Get ROM information.
rom | ROM to query |
version | Pointer to store detected ROM version |
size | Pointer to store ROM size in bytes |
snes_color yaze_get_color_from_paletteset | ( | const zelda3_rom * | rom, |
int | palette_set, | ||
int | palette, | ||
int | color | ||
) |
Get a color from a palette set.
Retrieves a specific color from a palette set in the ROM.
rom | The ROM to get the color from |
palette_set | The palette set index (0-255) |
palette | The palette index within the set (0-15) |
color | The color index within the palette (0-15) |
Definition at line 181 of file yaze.cc.
References snes_color::blue, snes_color::green, zelda3_rom::impl, yaze::gfx::kPaletteGroupAddressesKeys, yaze::Rom::palette_group(), and snes_color::red.