247 |
|
extern void EnqueueMac(uint32 elem, uint32 list); // Enqueue QElem in list |
248 |
|
extern int FindFreeDriveNumber(int num); // Find first free drive number, starting at "num" |
249 |
|
extern void MountVolume(void *fh); // Mount volume with given file handle (see sys.h) |
250 |
– |
extern bool HasMacStarted(void); // Test if basic MacOS initializations are done |
250 |
|
extern void FileDiskLayout(loff_t size, uint8 *data, loff_t &start_byte, loff_t &real_size); // Calculate disk image file layout given file size and first 256 data bytes |
251 |
|
|
252 |
+ |
// Test if basic MacOS initializations are done |
253 |
+ |
static inline bool HasMacStarted(void) |
254 |
+ |
{ |
255 |
+ |
return ReadMacInt32(0xcfc) == 'WLSC'; // Mac warm start flag |
256 |
+ |
} |
257 |
+ |
|
258 |
|
#endif |