Returned mouse_reset() to where it was and split off the call to mouse_close() to pc_reset_hard_close().

This commit is contained in:
OBattler
2018-01-29 01:19:49 +01:00
parent af0482bd04
commit 704e2ac3ae
5 changed files with 19 additions and 14 deletions

View File

@@ -749,6 +749,8 @@ pc_reset_hard_close(void)
machine_close();
mouse_close();
device_close_all();
midi_close();
@@ -791,13 +793,6 @@ pc_reset_hard_init(void)
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_reset();
/* Initialize the actual machine and its basic modules. */
machine_init();
@@ -822,6 +817,13 @@ pc_reset_hard_init(void)
shadowbios = 0;
keyboard_at_reset();
/*
* 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_reset();
/* Reset the video card. */
video_reset(gfxcard);