Separated main code from UI and PLATform support code, plus other generally small fixes here and there.

This commit is contained in:
waltje
2017-10-10 03:07:29 -04:00
parent e88899bb3c
commit bd89e66b7b
47 changed files with 924 additions and 872 deletions

View File

@@ -9,10 +9,11 @@
* Generic floppy disk interface that communicates with the
* other handlers.
*
* Version: @(#)floppy.c 1.0.5 2017/10/05
* Version: @(#)floppy.c 1.0.6 2017/10/09
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
*
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016,2017 Miran Grca.
*/
@@ -25,7 +26,7 @@
#include "../rom.h"
#include "../config.h"
#include "../timer.h"
#include "../win/win.h"
#include "../ui.h"
#include "floppy.h"
#include "floppy_86f.h"
#include "floppy_fdi.h"
@@ -158,7 +159,7 @@ void floppy_load(int drive, wchar_t *fn)
drive_empty[drive] = 1;
fdd_set_head(real_drive(drive), 0);
memset(floppyfns[drive], 0, sizeof(floppyfns[drive]));
StatusBarUpdateIconState(drive, 1);
ui_sb_update_icon_state(drive, 1);
}
void floppy_close(int drive)
@@ -177,7 +178,7 @@ void floppy_close(int drive)
drives[drive].format = NULL;
drives[drive].byteperiod = NULL;
drives[drive].stop = NULL;
StatusBarUpdateIconState(drive, 1);
ui_sb_update_icon_state(drive, 1);
}
int floppy_notfound=0;