• Jeffrey Lee's avatar
    Reject overly-large discs, and other invalid things · eb3e3485
    Jeffrey Lee authored
    Detail:
      c/Accessors, h/Accessors, Makefile - Added some simple 'image accessor' routines to abstract over accessing the underlying disc/image file. These accept 64bit disc addresses and will check to make sure any size limits imposed by the lower-level API are adhered to (512MB limit for FileCore_DiscOp, or extent of image file for OS_GBPB)
      h/MsgTrans, Resources/Germany/Messages, Resources/UK/Messages - Add a couple of new error messages
      h/Helpers - Add a couple of macros to simplify reading 16/32bit values that are split into multiple bytes in struct definitions. Change writeWORD & loadWORD to accept void* instead of char* so they can be used with other types like 'byte'
      h/DOSshape - Add '0' suffix to some struct members so they can be used with new READ_0123 macro
      h/ADFSshape - Make sure put_doublestep is safe to use with bools
      c/DOSdirs - Remove pointless malloc of small temporary array
      c/DOSclusters - Use new READ_ macros in max_sector(...
    eb3e3485
MsgTrans 5.56 KB