Changed version number to 1.01;

IMG floppy image handler now fills the remaining bytes with 0xF6 if it has read less bytes than expected - fixes handling of truncated IMG's with a valid BPB;
HDI files are now written with the correct header;
FDC DUMP REGISTERS command is now implemented correctly, fixes FDC error on AMI 486 clone and AMI WinBIOS 486;
Commented out the Acer 386SX and the Phoenix 386 clone;
WinPCap code is now delayed loading (thanks to Rai-chan), the emulator should now be able to run without WinPCap installed if not using PCap;
The IBM PS/2 Model 30 NVR file is now saved in the same directly as the other NVR files;
Applied all the latest mainline PCem Voodoo commits.
This commit is contained in:
OBattler
2017-02-23 19:52:14 +01:00
parent 9db233e1c5
commit 4ddfa7c1db
10 changed files with 352 additions and 97 deletions

View File

@@ -583,6 +583,8 @@ void img_seek(int drive, int track)
int side;
int current_xdft = img[drive].xdf_type - 1;
int read_bytes = 0;
uint8_t id[4] = { 0, 0, 0, 0 };
int is_t0, sector, current_pos, img_pos, sr, sside, total, array_sector, buf_side, buf_pos;
@@ -616,7 +618,11 @@ void img_seek(int drive, int track)
}
else
{
fread(img[drive].track_data[side], img[drive].sectors * ssize, 1, img[drive].f);
read_bytes = fread(img[drive].track_data[side], img[drive].sectors * ssize, 1, img[drive].f);
if (read_bytes < (img[drive].sectors * ssize))
{
memset(img[drive].track_data[side] + read_bytes, 0xf6, (img[drive].sectors * ssize) - read_bytes);
}
}
}