Core initialization and editor context for the YAZE public API. More...


Go to the source code of this file.
Classes | |
| struct | yaze_editor_context |
Typedefs | |
| typedef struct yaze_editor_context | yaze_editor_context |
Functions | |
| yaze_status | yaze_library_init (void) |
| Initialize the YAZE library. | |
| void | yaze_library_shutdown (void) |
| Shutdown the YAZE library. | |
| int | yaze_app_main (int argc, char **argv) |
| Main entry point for the YAZE application. | |
| yaze_status | yaze_init (yaze_editor_context *context, const char *rom_filename) |
| Initialize a YAZE editor context. | |
| yaze_status | yaze_shutdown (yaze_editor_context *context) |
| Shutdown and clean up a YAZE editor context. | |
Core initialization and editor context for the YAZE public API.
Definition in file yaze_core.h.
| typedef struct yaze_editor_context yaze_editor_context |
| yaze_status yaze_library_init | ( | void | ) |
Initialize the YAZE library.
This function must be called before using any other YAZE functions. It initializes internal subsystems and prepares the library for use.
Definition at line 20 of file yaze.cc.
References YAZE_OK.
Referenced by yaze_init().
| void yaze_library_shutdown | ( | void | ) |
Shutdown the YAZE library.
This function cleans up resources allocated by yaze_library_init(). After calling this function, no other YAZE functions should be called until yaze_library_init() is called again.
| int yaze_app_main | ( | int | argc, |
| char ** | argv ) |
Main entry point for the YAZE application.
| argc | Number of command line arguments |
| argv | Array of command line argument strings |
| yaze_status yaze_init | ( | yaze_editor_context * | context, |
| const char * | rom_filename ) |
Initialize a YAZE editor context.
Creates and initializes an editor context for working with ROM files. The context manages the ROM data and provides access to editing functions.
| context | Pointer to context structure to initialize |
| rom_filename | Path to the ROM file to load (can be NULL to create empty context) |
Definition at line 75 of file yaze.cc.
References yaze_editor_context::error_message, yaze_editor_context::rom, YAZE_ERROR_FILE_NOT_FOUND, YAZE_ERROR_INVALID_ARG, yaze_library_init(), yaze_load_rom(), and YAZE_OK.

| yaze_status yaze_shutdown | ( | yaze_editor_context * | context | ) |
Shutdown and clean up a YAZE editor context.
Releases all resources associated with the context, including ROM data. After calling this function, the context should not be used.
| context | Pointer to context to shutdown |
Definition at line 101 of file yaze.cc.
References yaze_editor_context::error_message, yaze_editor_context::rom, YAZE_ERROR_INVALID_ARG, YAZE_OK, and yaze_unload_rom().
