implement load_rom and unload_rom

This commit is contained in:
scawful
2024-08-06 22:23:43 -04:00
parent 88b87fc7cf
commit 38cbba79e2
3 changed files with 28 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
#ifndef YAZE_H
#define YAZE_H
#include <cstddef>
#include <cstdint>
#ifdef __cplusplus
@@ -16,9 +17,12 @@ typedef struct Rom Rom;
struct Rom {
const char* filename;
const uint8_t* data;
size_t size;
void* impl; // yaze::app::Rom*
};
Rom load_rom(const char* filename);
void unload_rom(Rom rom);
#ifdef __cplusplus
}