From 90be2130c1696f6d34967b7518377f3630cfc440 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Sat, 23 Aug 2025 09:36:47 +0200 Subject: [PATCH] move cheats back --- src/device/vi.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device/vi.rs b/src/device/vi.rs index e117c34..392b600 100644 --- a/src/device/vi.rs +++ b/src/device/vi.rs @@ -134,6 +134,10 @@ pub fn write_regs(device: &mut device::Device, address: u64, value: u32, mask: u } pub fn vertical_interrupt_event(device: &mut device::Device) { + if device.cheats.enabled { + cheats::execute_cheats(device, device.cheats.cheats.clone()); + } + ui::video::render_frame(); let (mut speed_limiter_toggled, paused) = ui::video::check_callback(device); @@ -157,10 +161,6 @@ pub fn vertical_interrupt_event(device: &mut device::Device) { ui::video::pause_loop(); } - if device.cheats.enabled { - cheats::execute_cheats(device, device.cheats.cheats.clone()); - } - /* let vis = if device.cart.pal { 50 } else { 60 }; if device.vi.vi_counter % vis == 0 {