Commit Graph

64 Commits

Author SHA1 Message Date
2f9b7fe0a1 General code cleanup and style refactor. 2022-11-15 15:58:48 +00:00
bd3fe7bd4e General code style and feature fixes. 2022-11-15 01:35:15 +00:00
0eb589d785 Use Stream extension to ensure read operations return the requested number of bytes (unless EOF arrives first). 2022-11-14 09:43:16 +00:00
6a4dea75ea Use range indexers. 2022-11-14 01:15:06 +00:00
073b7c183d Convert chain of conditional expressions into switch expressions. 2022-11-14 01:06:15 +00:00
d64c48dc6d Invert 'if' statements to reduce nesting. 2022-11-13 21:14:18 +00:00
a8a74f385a Merge null/pattern checks into complex pattern. 2022-11-13 20:46:29 +00:00
6586721321 Join local variable declaration and assignment. 2022-11-13 20:27:32 +00:00
fca57318f5 Convert to switch expression. 2022-11-13 19:59:30 +00:00
c5b34ee3d9 Convert if to switch statement. 2022-11-13 19:38:03 +00:00
98d7ac3349 Move declaration closer to usage. 2022-11-13 19:16:14 +00:00
1927868706 More code cleanups. 2022-03-26 16:51:26 +00:00
f0fa4d4320 Remove unused code. 2022-03-17 23:54:41 +00:00
d686e59cb7 Use Array.Empty 2022-03-17 00:02:08 +00:00
ff65da6c48 Use merge pattern. 2022-03-16 11:47:00 +00:00
5f14f0e79c Fix unused variables. 2022-03-16 00:31:33 +00:00
762e3eb6d2 General cleanup and refactor. 2022-03-07 07:36:44 +00:00
0bc819feab Move to file scoped namespaces. 2022-03-06 13:29:38 +00:00
dd4451740c Update copyright year. 2022-02-20 09:34:52 +00:00
f51d414abd Refactor IMediaImage.ReadSector(s) to return error status instead of buffer. 2021-09-19 21:16:47 +01:00
12a72a45e4 Consolidate error number enumerations. 2021-09-16 04:42:14 +01:00
ebd29840fe Upgrade to .NET 6. 2021-09-12 22:26:47 +01:00
840cdcc331 Fix null reference exception in FAT filesystem. 2021-09-12 19:27:25 +01:00
75edb759e6 General code refactor. 2021-08-17 21:23:10 +01:00
fdff1d74c9 Use Array.Empty<T>. 2021-08-17 18:23:50 +01:00
39e73b16a0 Fix inconsistent naming. 2021-08-17 16:27:42 +01:00
c6f5ece939 Remove redundant assignments. 2021-08-17 14:40:50 +01:00
6dd5fb5c5c Add missing XML documentation inheritance. 2021-08-17 14:25:12 +01:00
00f605b0ca Add XML comments to public entities. 2021-08-17 13:56:05 +01:00
501fcd69eb Fix null reference exception in FAT filesystem when entry points to a cluster beyond volume. 2021-07-19 13:43:53 +01:00
baeaac8190 Fix mounting a FAT filesystem that does not contain a valid FS_TYPE field and have invalid clusters. 2021-07-19 13:43:22 +01:00
705f5a6db0 Add support for FAT32 volumes that uses sectors field in BPB. Fixes #580 2021-06-03 23:51:10 +01:00
fcc0211fb6 Fix identifying between FAT12 and FAT16, checking entire FAT validity. Fixes #576 2021-06-03 23:34:17 +01:00
eab05502a4 Fix regression in setting timestamps from FAT filesystems. 2021-06-03 23:33:26 +01:00
b96ffe5e56 Fix clusters calculation in FAT12 and FAT16. 2021-06-03 23:32:36 +01:00
e8ff4d1c30 Fix reading FAT when it has an odd number of clusters. Fixes #596 2021-06-03 03:30:10 +01:00
4ac273175a Check which FAT is valid (first or second) and use it for FAT12 and FAT16, fixes #584. 2021-06-02 21:16:06 +01:00
5c84513048 Fix reserved FAT entries. 2021-06-02 21:15:33 +01:00
df8f35a70a Add a guard for FAT12 and FAT16 to prevent an exception on invalid FAT chains. 2021-06-02 20:57:27 +01:00
ce99442ed8 In FAT filesystem, 0 means no time stored. Fixes #597 2021-06-02 20:40:29 +01:00
2d72ec3574 Fix interpretation of BPB value used by Atari ST in FAT16 partitions of type BIG GEMDOS. 2021-06-02 20:21:56 +01:00
f2b5a4b64c Force identification of hard disk volumes made by Atari ST with FAT16 filesystems when they're not bootable. 2021-06-02 20:19:54 +01:00
4878d5d3af Handle unallocated, but reserved, directories, in FAT filesystem. 2021-06-02 20:17:25 +01:00
2522db44dc Handle directory entries that contain a forward slash in the filename in FAT filesystem. 2021-06-02 19:25:41 +01:00
a2b4cc2c92 Handle empty directory entries in FAT filesystem. Fixes #598 2021-06-02 19:18:33 +01:00
d53ed217d2 Set encoding in FAT filesystem before interpreting the BPB. 2021-06-01 20:36:26 +01:00
bfdaf6d1a4 Do not return EINVAL when reading a 0-byte sized file in FAT filesystem. Fixes #441 2021-06-01 12:59:11 +01:00
472a1d94d8 Update copyright year. 2020-12-31 23:08:23 +00:00
6877589cc9 General code clean-up, refactor and commenting. 2020-11-11 04:19:18 +00:00
0c20a24bc0 Fix reading volume name from incorrect FAT implementations that fill with NULs. Fixes #386 2020-10-31 22:14:20 +00:00