yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
ROM File Operations <br>

Functions

zelda3_romyaze_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_romyaze_copy_rom (const zelda3_rom *rom)
 Create a copy of ROM data.
 

Detailed Description

Function Documentation

◆ yaze_load_rom()

zelda3_rom * yaze_load_rom ( const char *  filename)

Load a ROM file.

Parameters
filenamePath to ROM file
Returns
Loaded ROM structure, or NULL on error

Definition at line 118 of file yaze.cc.

References ZELDA3_VERSION_US.

Referenced by yaze_init().

◆ yaze_unload_rom()

void yaze_unload_rom ( zelda3_rom rom)

Unload and free ROM data.

Parameters
romROM to unload

Definition at line 138 of file yaze.cc.

References zelda3_rom::impl.

Referenced by yaze_shutdown().

◆ yaze_save_rom()

int yaze_save_rom ( zelda3_rom rom,
const char *  filename 
)

Save ROM to file.

Parameters
romROM to save
filenameOutput filename
Returns
YAZE_OK on success, error code on failure

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.

Here is the call graph for this function:

◆ yaze_copy_rom()

zelda3_rom * yaze_copy_rom ( const zelda3_rom rom)

Create a copy of ROM data.

Parameters
romSource ROM
Returns
Copy of ROM, or NULL on error