Fix cart ROM save (#109)

This commit is contained in:
Logan McNaughton 2025-01-07 12:04:37 +01:00 committed by GitHub
parent f5d4160a5b
commit 774bb672fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ pub fn update_pif_ram(device: &mut device::Device) -> u64 {
for k in 0..PIF_CHANNELS_COUNT {
active_channels += process_channel(device, k)
}
(24000 + (active_channels * 28000)) as u64
(24000 + (active_channels * 30000)) as u64
}
pub fn disable_pif_channel(channel: &mut PifChannel) {

View File

@ -59,7 +59,7 @@ pub fn dma_write(device: &mut device::Device) {
device::events::create_event(
device,
device::events::EventType::SI,
device.cpu.cop0.regs[device::cop0::COP0_COUNT_REG as usize] + 5200, //based on https://github.com/rasky/n64-systembench
device.cpu.cop0.regs[device::cop0::COP0_COUNT_REG as usize] + 6000, //based on https://github.com/rasky/n64-systembench
dma_event,
)
}

View File

@ -148,7 +148,7 @@ pub fn load_saves(ui: &mut ui::Ui) {
pub fn write_rom_save(ui: &ui::Ui) {
let f = std::fs::File::create(ui.paths.romsave_file_path.clone()).unwrap();
serde_json::to_writer(f, &ui.saves.romsave).unwrap();
serde_json::to_writer(f, &ui.saves.romsave.0).unwrap();
}
pub fn write_saves(ui: &ui::Ui) {