move cheats back

This commit is contained in:
Logan McNaughton 2025-08-23 09:36:47 +02:00
parent 96af33c434
commit 90be2130c1

View File

@ -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 {