mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 23:36:32 +00:00
Restore ISO9660 filesystem non-writable error checks from "TempleOSCD_2017-05-21T03 56 09.ISO".
This commit is contained in:
parent
aa911b9a0f
commit
7d80592aaa
6 changed files with 31 additions and 2 deletions
|
@ -141,6 +141,10 @@ I64 ClusBlkWrite(CDrive *drive, U8 *buf, I64 c, I64 blks)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FSt_ISO9660:
|
||||||
|
PrintErr("File System Not Writable\n");
|
||||||
|
throw('Drive');
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw('Drive');
|
throw('Drive');
|
||||||
}
|
}
|
||||||
|
@ -178,6 +182,11 @@ I64 ClusAlloc(CDrive *drive, I64 c=0, I64 count=1, Bool contiguous=FALSE)
|
||||||
else
|
else
|
||||||
return FAT32AllocClus(drive, c, count);
|
return FAT32AllocClus(drive, c, count);
|
||||||
|
|
||||||
|
|
||||||
|
case FSt_ISO9660:
|
||||||
|
PrintErr("File System Not Writable\n");
|
||||||
|
throw('Drive');
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw('Drive');
|
throw('Drive');
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,6 +113,10 @@ I64 Del(U8 *files_find_mask, Bool make_mask=FALSE, Bool del_dir=FALSE, Bool prin
|
||||||
res = FAT32FilesDel(dirc->drive, Fs->cur_dir, dirc->mask, 0, del_dir, print_message);
|
res = FAT32FilesDel(dirc->drive, Fs->cur_dir, dirc->mask, 0, del_dir, print_message);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FSt_ISO9660:
|
||||||
|
PrintErr("File System Not Writable\n");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
PrintErr("File System Not Supported\n");
|
PrintErr("File System Not Supported\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,10 @@ Bool DirNew(CDrive *drive, U8 *cur_dir, CDirEntry *tmpde, Bool free_old_chain=TR
|
||||||
case FSt_FAT32:
|
case FSt_FAT32:
|
||||||
return FAT32DirNew(drive, cur_dir, tmpde, free_old_chain);
|
return FAT32DirNew(drive, cur_dir, tmpde, free_old_chain);
|
||||||
|
|
||||||
|
case FSt_ISO9660:
|
||||||
|
PrintErr("File System Not Writable\n");
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
PrintErr("File System Not Supported\n");
|
PrintErr("File System Not Supported\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -153,7 +153,7 @@ I64 Dir(U8 *files_find_mask, Bool full)
|
||||||
|
|
||||||
"$$MA,T=\"Directory\",LM=\"PopUpCd;Dir;\n\"$$ of %s\n", st;
|
"$$MA,T=\"Directory\",LM=\"PopUpCd;Dir;\n\"$$ of %s\n", st;
|
||||||
if (full)
|
if (full)
|
||||||
"__DATE__ __TIME__ %*ts %*ts\n", csize, "SIZE", c, "BLK";
|
"__DATE__ __TIME__ %*ts %*ts\n", csize, "SIZE", c, "CLUS";
|
||||||
else
|
else
|
||||||
"DATE_ TIME_ %*ts\n", csize, "SIZE";
|
"DATE_ TIME_ %*ts\n", csize, "SIZE";
|
||||||
while (tmpde1)
|
while (tmpde1)
|
||||||
|
@ -212,6 +212,10 @@ Bool DirMake(U8 *filename, I64 entry_count=0)
|
||||||
res = FAT32MkDir(dirc->drive, Fs->cur_dir, name, entry_count);
|
res = FAT32MkDir(dirc->drive, Fs->cur_dir, name, entry_count);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FSt_ISO9660:
|
||||||
|
PrintErr("File System Not Writable\n");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
PrintErr("File System Not Supported\n");
|
PrintErr("File System Not Supported\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,6 +103,10 @@ I64 FileWrite(U8 *filename, U8 *fbuf, I64 size, CDate cdt=0, I64 attr=0)
|
||||||
c = FAT32FileWrite(dirc->drive, Fs->cur_dir, dirc->mask, fbuf, size, cdt, attr);
|
c = FAT32FileWrite(dirc->drive, Fs->cur_dir, dirc->mask, fbuf, size, cdt, attr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FSt_ISO9660:
|
||||||
|
PrintErr("File System Not Writable\n");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
PrintErr("File System Not Supported\n");
|
PrintErr("File System Not Supported\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,10 @@ Bool DriveTypeSet(U8 drv_let, I64 type=FSt_REDSEA)
|
||||||
mbr.p[i].type = MBR_PT_FAT32a;
|
mbr.p[i].type = MBR_PT_FAT32a;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FSt_ISO9660:
|
||||||
|
PrintErr("File System Not Writable\n");
|
||||||
|
throw('Drive');
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw('Drive');
|
throw('Drive');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue