GB: Add serialization headers
Jeffrey Pfau jeffrey@endrift.com
Mon, 30 May 2016 23:06:32 -0700
2 files changed,
5 insertions(+),
1 deletions(-)
M
src/gb/core.c
→
src/gb/core.c
@@ -224,7 +224,8 @@ return GBDeserialize(core->board, state);
} static bool _GBCoreSaveState(struct mCore* core, void* state) { - return GBSerialize(core->board, state); + GBSerialize(core->board, state); + return true; } static void _GBCoreSetKeys(struct mCore* core, uint32_t keys) {
M
src/gb/serialize.h
→
src/gb/serialize.h
@@ -271,4 +271,7 @@ uint8_t wram[GB_SIZE_WORKING_RAM];
}; #pragma pack(pop) +bool GBDeserialize(struct GB* gb, const struct GBSerializedState* state); +void GBSerialize(struct GB* gb, struct GBSerializedState* state); + #endif