summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2026-05-15 15:15:01 +0200
committer hap <happppp@users.noreply.github.com>2026-05-15 15:18:33 +0200
commitf695e757c57f29ab4a220ff03a4b847e0f9c9530 (patch)
tree4e377aa1287546543158525794821cf3d8df2d18 /src/emu
parent27da577c21c473297f6aeecf5ab48c5a56872525 (diff)
ioport: set disable_side_effects on internal frame update (eg. if reading an input port triggers an irq, MAME's frame update shouldn't affect it)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/ioport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/ioport.cpp b/src/emu/ioport.cpp
index 12707741cd3..f2faf6b688c 100644
--- a/src/emu/ioport.cpp
+++ b/src/emu/ioport.cpp
@@ -2172,6 +2172,7 @@ void ioport_manager::frame_update_callback()
void ioport_manager::frame_update()
{
auto profile = g_profiler.start(PROFILER_INPUT);
+ auto dis = machine().disable_side_effects();
// record/playback information about the current frame
attotime curtime = machine().time();