Commit Graph

1139 Commits

Author SHA1 Message Date
Rob Greene 2a404079bd Merged Disk and FormattedDisk. Moved constants to DiskConstants class. 2025-08-23 19:20:04 -05:00
Rob Greene a194d79b20 Dropping FormattedDisk from Disk. 2025-08-23 16:57:56 -05:00
Rob Greene 44d09f79b7 Clearing out another Disk constructor. 2025-08-23 16:40:43 -05:00
Rob Greene f2346dfeec Clearing out one Disk constructor. 2025-08-23 16:16:09 -05:00
Rob Greene 887bb2fdcd Updating comparisons to use updated DiskDiff with FormattedDisk. 2025-08-23 15:25:56 -05:00
Rob Greene 2efacef00c Updating FileStreamer API to use FormattedDisks. 2025-08-23 13:09:21 -05:00
Rob Greene 9398015489 Updating some tests; also think DiskCopy should return the given data size instead of the bytes in the image. (If tags exist, bytes will not be helpful.) 2025-08-23 13:08:34 -05:00
Rob Greene f46b43ae67 First round of moving away from Disk constructor to using Disks and/or Sources. 2025-08-23 11:41:21 -05:00
Rob Greene 95858e2041 Fixing SHK conversion to mark disk as changed/dirty. Impacted 'acx'. 2025-08-23 10:04:22 -05:00
Rob Greene 1e4c60611e Consolidating Disk constructors. 2025-08-23 09:49:03 -05:00
Rob Greene 1b0ffd7e3c Correcting what appear to be long standing bugs creating UniDOS formatted disks. 2025-08-23 09:48:40 -05:00
Rob Greene d53c2204d4 Renaming diskImageManager to be source. (part 2) 2025-08-23 08:59:27 -05:00
Rob Greene 5c02a9f742 Renaming diskImageManager to be source. 2025-08-23 08:55:09 -05:00
Rob Greene 5f23fe0a89 Changing Disks#inspect to return the full Context instead of just FormattedDisks. This gives some more flexibility into its use (such as when a disk is _not_ identified). 2025-08-22 18:08:17 -05:00
Rob Greene 8483696493 Moving Disk#sizeToFit to Disks#sizeToFit. 2025-08-22 18:07:30 -05:00
Rob Greene a4747bebbb Extending hints to include origin of source (2IMG, DiskCopy, or the magical SHK unpack routine). Used in 'ac' to determine writability (?). 2025-08-22 16:02:47 -05:00
Rob Greene 670738c7ca Tweaking how compression is detected. 2025-08-22 14:26:23 -05:00
Rob Greene d8b069aaf6 Removing unused method. 2025-08-22 14:26:00 -05:00
Rob Greene f015ef81fe Switching ImageOrder over to Hint for determining "order" of disk instead of file extension. 2025-08-22 14:25:38 -05:00
Rob Greene b3bfc9b854 Extracting FilenameFilter to be an entity independent of Disk. 2025-08-22 14:10:51 -05:00
A2 Geek 0a27745030 Merge pull request #175 from AppleCommander/toil/license-checker-custom
Trying a custom license header check.
2025-08-22 13:11:24 -05:00
Rob Greene dca2cc0a1c Adding license header. 2025-08-22 13:09:19 -05:00
Rob Greene 7070a25511 Adding license to all the files missed before. 2025-08-22 13:08:20 -05:00
Rob Greene 6bc9220342 Rearranging to make list of files legible (prior version wrapped text). 2025-08-22 13:01:08 -05:00
Rob Greene fe0699447d Trying a custom license header check. 2025-08-22 12:53:57 -05:00
A2 Geek 737a9134aa Merge pull request #173 from AppleCommander/feature/add-disk-factories
Feature/add disk factories
2025-08-21 11:31:15 -05:00
Rob Greene 85e537d4d4 Scanning VTOC for (mostly) valid values. 2025-08-21 11:28:21 -05:00
Rob Greene ed221fe5dc Allowing catalog track to wander, as long as the track is valid. 2025-08-21 11:28:01 -05:00
Rob Greene a4ff88b6f1 Trying to get unit testing as an option to debug when Ant goes haywire. 2025-08-21 11:27:35 -05:00
Rob Greene f17bff2db2 Pulling out unused code from Disk. 2025-08-20 21:59:32 -05:00
Rob Greene 4c508fedfc Found some weird DOS disks where they zeroed out the catalog track in the VTOC - maybe some rudimentary protection? 2025-08-20 18:29:50 -05:00
Rob Greene 2867455818 CP/M name validation was too loose (all 0's passed the name test). Tightening a bit. 2025-08-20 16:45:43 -05:00
Rob Greene 153051251f Correcting filename given in disk factories. Somehow used the order name instead of the source name. Doh! 2025-08-20 16:22:30 -05:00
Rob Greene 80296bf1b9 For DOS recognition, T/S pairs get clobbered sometimes, so ignoring that value. 2025-08-20 16:19:23 -05:00
Rob Greene 0d634d628b Correcting CP/M recognition. 2025-08-20 16:18:46 -05:00
Rob Greene e9b8dacdc9 Noted that creating disks never setup the FormattedDisks entry; this should fix that. 2025-08-20 16:02:25 -05:00
Rob Greene 433e7a4655 Adding CP/M disk recognition routines. 2025-08-20 16:01:55 -05:00
Rob Greene ba580f0d2c Noticed that "scan" missed case extensions (specifically Unix and presumably Mac), so altering glob creation to be "*.{[Dd][Ss][Kk],...}" instead of (the more readable) "*.{dsk,...}". 2025-08-20 11:28:18 -05:00
Rob Greene ff30b7b05a Adding Gutenberg/WP DiskFactory. 2025-08-20 11:12:47 -05:00
Rob Greene ef988df62a Adding RDOS DiskFactory. 2025-08-19 13:44:31 -05:00
Rob Greene 43b65f86e1 Adding NakedOS/Super-Mon; added a test cases for NakedOS; realized every Disk test can try reading _all_ files and they now do so. 2025-08-18 19:43:32 -05:00
Rob Greene 568c51648c Correcting names. 2025-08-18 18:47:47 -05:00
Rob Greene 78791345bd Adjusting checks based on prior disk recognition. 2025-08-18 15:56:31 -05:00
Rob Greene c1303c3ca0 Early draft of new Apple Pascal detection. 2025-08-18 15:14:29 -05:00
Rob Greene ed26f6b93d Quick cleanup. 2025-08-17 21:13:37 -05:00
Rob Greene 704c8f8078 Should really be committing the updates to Disk which segment the disk identification routines. 2025-08-17 21:08:24 -05:00
Rob Greene 9f5f9815cd Missed an addition to DataBuffer. 2025-08-17 21:07:36 -05:00
Rob Greene a24a9a4d92 Tightened up ProDOS disk recognition a bit. 2025-08-17 16:35:29 -05:00
Rob Greene 000611b6de Adjusting entryLength and entriesPerBlock recognition. 2025-08-16 20:54:21 -05:00
Rob Greene 5742ec0829 Catching exceptions to allow recognition to continue. 2025-08-16 20:53:49 -05:00