Set DriveNumber to emulate hard disk
All checks were successful
Builds / XTchain (minimal, windows) (push) Successful in 2m14s
Builds / XTchain (minimal, linux) (push) Successful in 10m44s
Builds / XTchain (full, windows) (push) Successful in 56m0s
Builds / XTchain (full, linux) (push) Successful in 1h31m7s

This commit is contained in:
2025-10-05 20:39:51 +02:00
parent e16284f3aa
commit 0ba79fd489

View File

@@ -465,6 +465,9 @@ int main(int argc, char **argv)
}
}
/* Set DriveNumber to emulate hard disk */
ImageVbr[0x40] = 0x80;
/* Write the corrected VBR back to the disk image */
fseek(File, Partition.StartLBA * SECTOR_SIZE, SEEK_SET);
if(fwrite(ImageVbr, 1, SECTOR_SIZE, File) != SECTOR_SIZE)