251 |
|
extern void MountVolume(void *fh); // Mount volume with given file handle (see sys.h) |
252 |
|
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 |
253 |
|
|
254 |
+ |
// Construct four-character-code from string |
255 |
+ |
#define FOURCC(a,b,c,d) (((uint32)(a) << 24) | ((uint32)(b) << 16) | ((uint32)(c) << 8) | (uint32)(d)) |
256 |
+ |
|
257 |
|
// Test if basic MacOS initializations (of the ROM) are done |
258 |
|
static inline bool HasMacStarted(void) |
259 |
|
{ |
260 |
< |
return ReadMacInt32(0xcfc) == 'WLSC'; // Mac warm start flag |
260 |
> |
return ReadMacInt32(0xcfc) == FOURCC('W','L','S','C'); // Mac warm start flag |
261 |
|
} |
262 |
|
|
263 |
|
#endif |