diff --git a/src/cdrom/cdrom.c b/src/cdrom/cdrom.c index d03b513e0..8ab8ca1b7 100644 --- a/src/cdrom/cdrom.c +++ b/src/cdrom/cdrom.c @@ -9,7 +9,7 @@ * Implementation of the CD-ROM drive with SCSI(-like) * commands, for both ATAPI and SCSI usage. * - * Version: @(#)cdrom.c 1.0.12 2017/10/07 + * Version: @(#)cdrom.c 1.0.13 2017/10/08 * * Author: Miran Grca, * @@ -4018,7 +4018,9 @@ void cdrom_general_init(void) { int c = 0; +#if 0 cdrom_init_host_drives(); +#endif for (c=0; c * Miran Grca, @@ -27,31 +27,46 @@ #include "86box.h" #include "config.h" #include "ibm.h" +#include "cpu/cpu.h" +#include "cpu/codegen.h" +#include "cpu/x86_ops.h" #include "io.h" #include "mem.h" #include "rom.h" -#include "cpu/codegen.h" -#include "cpu/cpu.h" #include "dma.h" +#include "pic.h" +#include "pit.h" #include "random.h" +#include "timer.h" +#include "mouse.h" #include "device.h" +#include "nvr.h" +#include "machine/machine.h" +#include "game/gameport.h" +#include "keyboard.h" +#include "keyboard_at.h" +#include "lpt.h" +#include "serial.h" #include "cdrom/cdrom.h" #include "disk/hdd.h" #include "disk/hdc.h" #include "disk/hdc_ide.h" #include "floppy/floppy.h" #include "floppy/fdc.h" -#include "game/gameport.h" -#include "keyboard.h" -#include "keyboard_at.h" -#include "lpt.h" -#include "machine/machine.h" -#include "sound/midi.h" -#include "mouse.h" +#include "scsi/scsi.h" #include "network/network.h" -#include "nvr.h" -#include "pic.h" -#include "pit.h" +#include "sound/sound.h" +#include "sound/midi.h" +#include "sound/snd_cms.h" +#include "sound/snd_dbopl.h" +#include "sound/snd_mpu401.h" +#include "sound/snd_opl.h" +#include "sound/snd_gus.h" +#include "sound/snd_sb.h" +#include "sound/snd_speaker.h" +#include "sound/snd_ssi2001.h" +#include "video/video.h" +#include "video/vid_voodoo.h" #ifdef WALTJE # define UNICODE # include @@ -62,23 +77,9 @@ #include "win/plat_keyboard.h" #include "win/plat_midi.h" #include "win/plat_mouse.h" +#include "win/plat_iodev.h" #include "win/plat_ui.h" #include "win/win.h" -#include "scsi/scsi.h" -#include "serial.h" -#include "sound/sound.h" -#include "sound/snd_cms.h" -#include "sound/snd_dbopl.h" -#include "sound/snd_mpu401.h" -#include "sound/snd_opl.h" -#include "sound/snd_gus.h" -#include "sound/snd_sb.h" -#include "sound/snd_speaker.h" -#include "sound/snd_ssi2001.h" -#include "timer.h" -#include "video/video.h" -#include "video/vid_voodoo.h" -#include "cpu/x86_ops.h" int window_w, window_h, window_x, window_y, window_remember; @@ -307,6 +308,7 @@ usage: */ hdd_init(); network_init(); + cdrom_init_host_drives(); /* Load the configuration file. */ config_load(cfg); diff --git a/src/scsi/scsi_aha154x.c b/src/scsi/scsi_aha154x.c index 73b64bbb4..d9356eabc 100644 --- a/src/scsi/scsi_aha154x.c +++ b/src/scsi/scsi_aha154x.c @@ -12,7 +12,7 @@ * * NOTE: THIS IS CURRENTLY A MESS, but will be cleaned up as I go. * - * Version: @(#)scsi_aha154x.c 1.0.22 2017/10/08 + * Version: @(#)scsi_aha154x.c 1.0.23 2017/10/08 * * Authors: Fred N. van Kempen, * Original Buslogic version by SA1988 and Miran Grca. @@ -1249,7 +1249,8 @@ aha_mbo(aha_t *dev, Mailbox32_t *Mailbox32) static void aha_mbo_adv(aha_t *dev) { - dev->MailboxOutPosCur = (dev->MailboxOutPosCur + 1) % dev->MailboxCount; + if (dev->MailboxCount > 0) + dev->MailboxOutPosCur = (dev->MailboxOutPosCur + 1) % dev->MailboxCount; } diff --git a/src/win/win.c b/src/win/win.c index 0cafb1f0d..337f41d41 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -8,7 +8,7 @@ * * The Emulator's Windows core. * - * Version: @(#)win.c 1.0.17 2017/10/08 + * Version: @(#)win.c 1.0.18 2017/10/08 * * Authors: Sarah Walker, * Miran Grca, @@ -1263,9 +1263,6 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpszArg, int nFunsterStil) /* Fire up the machine. */ pc_reset_hard(); - /* Make sure the status bar is up-to-date. */ - StatusBarUpdatePanes(); - /* * Everything has been configured, and all seems to work, * so now it is time to start the main thread to do some diff --git a/src/win/win_stbar.c b/src/win/win_stbar.c index 17b01734f..0d32c2cf8 100644 --- a/src/win/win_stbar.c +++ b/src/win/win_stbar.c @@ -766,7 +766,7 @@ StatusBarUpdatePanes(void) break; case SB_TEXT: /* Status text */ - SendMessage(hwndSBAR, SB_SETTEXT, i | SBT_NOBORDERS, (LPARAM) L""); + SendMessage(hwndSBAR, SB_SETTEXT, i | SBT_NOBORDERS, (LPARAM)L""); sb_part_icons[i] = -1; break; } @@ -1116,6 +1116,7 @@ StatusBarSetTextW(wchar_t *wstr) int part = -1; int i; +pclog("SB_settext(%ws)", wstr); if (!sb_ready || (sb_parts == 0) || (sb_part_meanings == NULL)) return; for (i=0; i