| 1 | // |
| 2 | // ciderpress.h |
| 3 | // Part of ScottFree, an interpreter for adventures in Scott Adams format |
| 4 | // |
| 5 | // Created by Petter Sjölund on 2022-09-29. |
| 6 | // This is based on parts of the Ciderpress source. |
| 7 | // See https://github.com/fadden/ciderpress for the full version. |
| 8 | // |
| 9 | // Includes fragments from of a2tools by Terry Kyriacopoulos and Paul Schlyter |
| 10 | // |
| 11 | |
| 12 | #ifndef ciderpress_h |
| 13 | #define ciderpress_h |
| 14 | |
| 15 | void InitNibImage(uint8_t *data, size_t extent); |
| 16 | void InitDskImage(uint8_t *data, size_t extent); |
| 17 | void FreeDiskImage(void); |
| 18 | |
| 19 | uint8_t *ReadImageFromNib(size_t offset, size_t size, uint8_t *data, size_t datasize); |
| 20 | uint8_t *ReadApple2DOSFile(uint8_t *data, size_t *len, uint8_t **invimg, size_t *invimglen, uint8_t **m2); |
| 21 | |
| 22 | #endif /* ciderpress_h */ |