Skip to content

Commit 0ba79fd

Browse files
committed
Set DriveNumber to emulate hard disk
1 parent e16284f commit 0ba79fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/diskimg.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@ int main(int argc, char **argv)
465465
}
466466
}
467467

468+
/* Set DriveNumber to emulate hard disk */
469+
ImageVbr[0x40] = 0x80;
470+
468471
/* Write the corrected VBR back to the disk image */
469472
fseek(File, Partition.StartLBA * SECTOR_SIZE, SEEK_SET);
470473
if(fwrite(ImageVbr, 1, SECTOR_SIZE, File) != SECTOR_SIZE)

0 commit comments

Comments
 (0)