From c63a41bed01834b52e35ba1b3c5848fe30e20e48 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 10 Nov 2017 20:33:15 +0100 Subject: [PATCH] Moved mouse_emu_init(); to after serial_init(); again, should fix serial mice. --- src/pc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pc.c b/src/pc.c index b957c344d..ed4d88939 100644 --- a/src/pc.c +++ b/src/pc.c @@ -682,13 +682,16 @@ pc_reset_hard_init(void) fdc_update_is_nsc(0); floppy_reset(); - mouse_emu_init(); - #ifndef WALTJE /* This is needed to initialize the serial timer. */ serial_init(); #endif + /* This has to be after the serial initialization so that + serial_init() doesn't break the serial mouse by resetting + the RCR callback to NULL. */ + mouse_emu_init(); + /* Initialize the actual machine and its basic modules. */ machine_init();