From 62de97384dd55d1b5692ec1aa483e953b2dbdd24 Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Sun, 5 Jan 2025 22:08:37 -0500 Subject: [PATCH] Push fixes for red alarm --- shrooms-vb-core | 2 +- src/emulator/shrooms_vb_core.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shrooms-vb-core b/shrooms-vb-core index 06849b5..57dcd83 160000 --- a/shrooms-vb-core +++ b/shrooms-vb-core @@ -1 +1 @@ -Subproject commit 06849b54ba7f7fd8bba09e1cf8a8cc9107ec269b +Subproject commit 57dcd8370a885541ae6a1de0f35b25675728b226 diff --git a/src/emulator/shrooms_vb_core.rs b/src/emulator/shrooms_vb_core.rs index 2c9510a..bc30433 100644 --- a/src/emulator/shrooms_vb_core.rs +++ b/src/emulator/shrooms_vb_core.rs @@ -147,7 +147,8 @@ impl Sim { let memory = vec![0u64; size.div_ceil(4)]; let sim: *mut VB = Box::into_raw(memory.into_boxed_slice()).cast(); unsafe { vb_init(sim) }; - unsafe { vb_set_option(sim, VBOption::PseudoHalt, 1) }; + // pseudohalt is disabled due to breaking red alarm + unsafe { vb_set_option(sim, VBOption::PseudoHalt, 0) }; unsafe { vb_reset(sim) }; // set up userdata