From 43f86bf5bf84d311a089837d272c5fa3b684c72c Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:52:17 -0600 Subject: [PATCH] fix again --- src/device/cop0.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/device/cop0.rs b/src/device/cop0.rs index 5dff659..6dce2d2 100644 --- a/src/device/cop0.rs +++ b/src/device/cop0.rs @@ -193,7 +193,9 @@ pub fn set_control_registers(device: &mut device::Device, index: u32, mut data: device, device.cpu.cop0.regs[COP0_COUNT_REG as usize], data, - ) + ); + device.cpu.cop0.regs[COP0_COUNT_REG as usize] = data; + return; } COP0_WIRED_REG => device.cpu.cop0.regs[COP0_RANDOM_REG as usize] = 31, COP0_COMPARE_REG => {