From: Toni Wilen Date: Thu, 5 Nov 2015 19:04:37 +0000 (+0200) Subject: Init CD driver subsystem only once. X-Git-Tag: 3200~2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=265377c54e8a25f9030d7078190a50b771f6497b;p=francis%2Fwinuae.git Init CD driver subsystem only once. --- diff --git a/blkdev.cpp b/blkdev.cpp index e2532092..168cece8 100644 --- a/blkdev.cpp +++ b/blkdev.cpp @@ -465,7 +465,6 @@ int sys_command_open (int unitnum) blkdev_fix_prefs (&currprefs); if (!dev_init) { device_func_init (0); - dev_init = true; } if (st->isopen) { @@ -519,12 +518,14 @@ void device_func_reset (void) st->cdimagefileinuse = false; st->newimagefile[0] = 0; } + dev_init = false; } int device_func_init (int flags) { blkdev_fix_prefs (&currprefs); install_driver (flags); + dev_init = true; return 1; }