all repos — mgba @ c3f69e7b693ae568e33d83cee264040c2db3d516

mGBA Game Boy Advance Emulator

GB: Add serialization headers
Jeffrey Pfau jeffrey@endrift.com
Mon, 30 May 2016 23:06:32 -0700
commit

c3f69e7b693ae568e33d83cee264040c2db3d516

parent

66345e9b7eb2d854494aa61bc01f40c51765714a

2 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/gb/core.csrc/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.hsrc/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