Full savestating to memory

This commit is contained in:
2025-05-23 15:49:26 -06:00
parent e9d5b359d0
commit b86d550812
23 changed files with 378 additions and 56 deletions

View File

@ -78,4 +78,12 @@ void lcd_write(u16 address, u8 value) {
} else if(offset == 9) {
update_palette(value & 0b11111100, 2);
}
}
void lcd_save_state(lcd_state* state){
state->ctx = ctx;
}
void lcd_load_state(const lcd_state* state) {
ctx = state->ctx;
}