GB: Add serialization headers

This commit is contained in:
Jeffrey Pfau 2016-05-30 23:06:32 -07:00
parent 66345e9b7e
commit c3f69e7b69
2 changed files with 5 additions and 1 deletions

View File

@ -224,7 +224,8 @@ static bool _GBCoreLoadState(struct mCore* core, const void* 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) {

View File

@ -271,4 +271,7 @@ struct GBSerializedState {
};
#pragma pack(pop)
bool GBDeserialize(struct GB* gb, const struct GBSerializedState* state);
void GBSerialize(struct GB* gb, struct GBSerializedState* state);
#endif