mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-02-11 10:34:45 +00:00
Something PiSCSI
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user