Fix "watch rom" feature not actually reloading

This commit is contained in:
2026-07-30 19:33:05 -04:00
parent 5d86ceddd7
commit 9824e8f475
2 changed files with 21 additions and 5 deletions
+2 -1
View File
@@ -265,7 +265,8 @@ impl Emulator {
} else if let Some(cart) = self.carts[index].as_mut()
&& cart.is_watching()
{
cart.restart_watching();
cart.reload()?;
sim.load_cart(cart.rom.clone(), cart.sram.clone())?;
}
let mut profiling = false;
if let Some(profiler) = self.profilers[sim_id.to_index()].as_ref()