Something PiSCSI

This commit is contained in:
beeanyew
2021-08-12 14:24:57 +02:00
parent b5bf4fb3fd
commit 68dceb9859

View File

@@ -369,8 +369,10 @@ void piscsi_map_drive(char *filename, uint8_t index) {
return;
}
char hdfID[5] = { 0x00, 0x00, 0x00, 0x00, 0x00 };
read(tmp_fd, hdfID, 3);
char hdfID[512];
memset(hdfID, 0x00, 512);
read(tmp_fd, hdfID, 512);
hdID[4] = '\0';
if (strcmp(hdfID, "DOS") == 0 || strcmp(hdfID, "PFS") == 0 || strcmp(hdfID, "PDS") == 0 || strcmp(hdfID, "SFS") == 0) {
printf("[!!!PISCSI] The disk image %s is a UAE Single Partition Hardfile!\n", filename);
printf("[!!!PISCSI] WARNING: PiSCSI does NOT support UAE Single Partition Hardfiles!\n");