mirror of https://github.com/mgba-emu/mgba.git
GB: Add serialization headers
This commit is contained in:
parent
66345e9b7e
commit
c3f69e7b69
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue