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

25
include/state.h Normal file
View File

@ -0,0 +1,25 @@
#pragma once
#include <audio.h>
#include <cpu.h>
#include <ppu.h>
#include <cart.h>
#include <dma.h>
#include <gamepad.h>
#include <ram.h>
#include <timer.h>
#include <lcd.h>
typedef struct {
audio_state audio;
ppu_state ppu;
cpu_state cpu;
cart_state cart;
dma_state dma;
ctlr_state ctlr;
ram_state ram;
timer_state timer;
lcd_state lcd;
} save_state;
void state_save(save_state*);
void state_load(const save_state*);