9 printf(
"Yaze version: %s\n", version);
11 if (!version_check.ok()) {
12 printf(
"%s\n", version_check.status().message().data());
24 if (yaze_ctx->
rom ==
nullptr) {
53 rom->
impl = internal_rom;
74 bitmap.
data =
nullptr;
79 int palette,
int color) {
82 color_struct.
green = 0;
83 color_struct.
blue = 0;
92 if (!get_color.ok()) {
95 color_struct = get_color.value().rom_color();
104 if (rom->
impl ==
nullptr) {
110 if (!internal_overworld->Load(*internal_rom).ok()) {
115 overworld->
impl = internal_overworld;
117 for (
const auto& ow_map : internal_overworld->overworld_maps()) {
119 overworld->
maps[map_id]->
id = map_id;
The Rom class is used to load, save, and modify Rom data.
absl::Status LoadFromFile(const std::string &filename, bool z3_load=true)
Represents the full Overworld data, light and dark world.
struct z3_overworld z3_overworld
Primitive of the overworld.
struct z3_overworld_map z3_overworld_map
Primitive of an overworld map.
absl::StatusOr< std::string > CheckVersion(const char *version)
constexpr const char * kPaletteGroupAddressesKeys[]
Primitive of 16-bit RGB SNES color.
Extension editor context.
Primitive of a Yaze project.
const char * rom_filename
Primitive of the overworld.
Primitive of a Zelda3 ROM.
void yaze_cleanup(yaze_editor_context *yaze_ctx)
Clean up the Yaze library.
yaze_bitmap yaze_load_bitmap(const char *filename)
Load a bitmap from a file.
void yaze_unload_rom(z3_rom *rom)
Unload a Zelda3 ROM.
void yaze_check_version(const char *version)
Check the version of the Yaze library.
z3_overworld * yaze_load_overworld(const z3_rom *rom)
Load the overworld from a Zelda3 ROM.
yaze_project yaze_load_project(const char *filename)
z3_rom * yaze_load_rom(const char *filename)
Load a Zelda3 ROM from a file.
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.
int yaze_init(yaze_editor_context *yaze_ctx)
Initialize the Yaze library.