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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user