yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze.cc File Reference
#include "yaze.h"
#include <cstdio>
#include "app/rom.h"
#include "app/zelda3/overworld/overworld.h"
Include dependency graph for yaze.cc:

Go to the source code of this file.

Functions

void yaze_check_version (const char *version)
 
int yaze_init (yaze_flags *flags)
 Initialize the Yaze library.
 
void yaze_cleanup (yaze_flags *flags)
 Clean up the Yaze library.
 
yaze_projectyaze_load_project (const char *filename)
 
z3_romyaze_load_rom (const char *filename)
 Load a Zelda3 ROM from a file.
 
void yaze_unload_rom (z3_rom *rom)
 Unload a Zelda3 ROM.
 
snes_color yaze_get_color_from_paletteset (const z3_rom *rom, int palette_set, int palette, int color)
 Get a color from a palette set.
 
z3_overworldyaze_load_overworld (const z3_rom *rom)
 

Function Documentation

◆ yaze_check_version()

void yaze_check_version ( const char * version)

Definition at line 8 of file yaze.cc.

References yaze::app::core::CheckVersion().

Referenced by BOOST_PYTHON_MODULE().

Here is the call graph for this function:

◆ yaze_init()

int yaze_init ( yaze_flags * flags)

Initialize the Yaze library.

Parameters
flagsFlags to initialize the library.

Definition at line 20 of file yaze.cc.

References yaze_flags::rom, yaze_flags::rom_filename, and yaze_load_rom().

Referenced by yaze::test::TEST(), and yaze::test::TEST().

Here is the call graph for this function:

◆ yaze_cleanup()

void yaze_cleanup ( yaze_flags * flags)

Clean up the Yaze library.

Parameters
flagsFlags used to initialize the library.

Definition at line 37 of file yaze.cc.

References yaze_flags::rom, and yaze_unload_rom().

Referenced by yaze::test::TEST(), and yaze::test::TEST().

Here is the call graph for this function:

◆ yaze_load_project()

yaze_project * yaze_load_project ( const char * filename)

Definition at line 43 of file yaze.cc.

References yaze_project::filename, yaze_project::overworld, yaze_project::rom, yaze_load_overworld(), and yaze_load_rom().

Here is the call graph for this function:

◆ yaze_load_rom()

z3_rom * yaze_load_rom ( const char * filename)

Load a Zelda3 ROM from a file.

Definition at line 51 of file yaze.cc.

References yaze::app::Rom::data(), z3_rom::data, z3_rom::filename, z3_rom::impl, yaze::app::Rom::LoadFromFile(), yaze::app::Rom::size(), and z3_rom::size.

Referenced by BOOST_PYTHON_MODULE(), yaze_init(), and yaze_load_project().

Here is the call graph for this function:

◆ yaze_unload_rom()

void yaze_unload_rom ( z3_rom * rom)

Unload a Zelda3 ROM.

Definition at line 67 of file yaze.cc.

References z3_rom::impl.

Referenced by BOOST_PYTHON_MODULE(), and yaze_cleanup().

◆ yaze_get_color_from_paletteset()

snes_color yaze_get_color_from_paletteset ( const z3_rom * rom,
int palette_set,
int palette,
int color )

Get a color from a palette set.

Definition at line 77 of file yaze.cc.

References snes_color::blue, snes_color::green, z3_rom::impl, yaze::app::gfx::kPaletteGroupAddressesKeys, yaze::app::Rom::palette_group(), and snes_color::red.

Referenced by BOOST_PYTHON_MODULE().

Here is the call graph for this function:

◆ yaze_load_overworld()

z3_overworld * yaze_load_overworld ( const z3_rom * rom)