Functions | |
zelda3_rom * | yaze_load_rom (const char *filename) |
Load a ROM file. | |
void | yaze_unload_rom (zelda3_rom *rom) |
Unload and free ROM data. | |
int | yaze_save_rom (zelda3_rom *rom, const char *filename) |
Save ROM to file. | |
zelda3_rom * | yaze_copy_rom (const zelda3_rom *rom) |
Create a copy of ROM data. | |
zelda3_rom * yaze_load_rom | ( | const char * | filename | ) |
Load a ROM file.
filename | Path to ROM file |
Definition at line 118 of file yaze.cc.
References ZELDA3_VERSION_US.
Referenced by yaze_init().
void yaze_unload_rom | ( | zelda3_rom * | rom | ) |
Unload and free ROM data.
rom | ROM to unload |
Definition at line 138 of file yaze.cc.
References zelda3_rom::impl.
Referenced by yaze_shutdown().
int yaze_save_rom | ( | zelda3_rom * | rom, |
const char * | filename | ||
) |
Save ROM to file.
rom | ROM to save |
filename | Output filename |
Definition at line 151 of file yaze.cc.
References yaze::Rom::SaveSettings::backup, zelda3_rom::impl, zelda3_rom::is_modified, yaze::Rom::SaveToFile(), YAZE_ERROR_INVALID_ARG, YAZE_ERROR_IO, YAZE_ERROR_NOT_INITIALIZED, and YAZE_OK.
zelda3_rom * yaze_copy_rom | ( | const zelda3_rom * | rom | ) |
Create a copy of ROM data.
rom | Source ROM |