1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-25 22:53:22 +00:00
CC-Tweaked/projects/common/src/main/java/dan200/computercraft/shared
Jonathan Coates 367773e173
Some refactoring of mounts
- Separate FileMount into separate FileMount and WritableFileMount
   classes. This separates the (relatively simple) read-only code from
   the (soon to be even more complex) read/write code.

   It also allows you to create read-only mounts which don't bother with
   filesystem accounting, which is nice.

 - Make openForWrite/openForAppend always return a SeekableFileHandle.
   Appendable files still cannot be seeked within, but that check is now
   done on the FS side.

 - Refactor the various mount tests to live in test contract interfaces,
   allowing us to reuse them between mounts.

 - Clean up our error handling a little better. (Most) file-specific code
   has been moved to FileMount, and ArchiveMount-derived classes now
   throw correct path-localised exceptions.
2022-12-09 22:02:31 +00:00
..
command Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
common Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
computer Some refactoring of mounts 2022-12-09 22:02:31 +00:00
config Resolve a few TODOs 2022-12-03 15:55:48 +00:00
container Post multi-loader cleanup 2022-11-10 15:55:34 +00:00
data Split CC:T into common and forge projects 2022-11-10 08:54:09 +00:00
details Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
integration Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
media Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
network Some refactoring of mounts 2022-12-09 22:02:31 +00:00
peripheral Some refactoring of mounts 2022-12-09 22:02:31 +00:00
platform Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
pocket Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
turtle Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
util Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00
CommonHooks.java Resolve a few TODOs 2022-12-03 15:55:48 +00:00
ModRegistry.java Update to Minecraft 1.19.3 2022-12-08 19:45:02 +00:00