implements memcard

This commit is contained in:
2026-03-24 13:40:51 +00:00
parent f714db77fc
commit 27d26b328b
20 changed files with 959 additions and 108 deletions
@@ -15,6 +15,7 @@ impl VirtualMachineRuntime {
last_frame_cpu_time_us: 0,
fs: VirtualFS::new(),
fs_state: FsState::Unmounted,
memcard: MemcardService::new(),
open_files: HashMap::new(),
next_handle: 1,
log_service: LogService::new(4096),
@@ -90,6 +91,7 @@ impl VirtualMachineRuntime {
self.open_files.clear();
self.next_handle = 1;
self.memcard.clear_all_staging();
self.current_app_id = 0;
self.current_cartridge_title.clear();