--- BasiliskII/src/include/macos_util.h 2000/04/10 18:53:32 1.4 +++ BasiliskII/src/include/macos_util.h 2000/07/14 21:42:06 1.6 @@ -21,6 +21,8 @@ #ifndef MACOS_UTIL_H #define MACOS_UTIL_H +#include "cpu_emulation.h" + /* * Queues @@ -247,7 +249,12 @@ enum { // DeferredTask struct extern void EnqueueMac(uint32 elem, uint32 list); // Enqueue QElem in list extern int FindFreeDriveNumber(int num); // Find first free drive number, starting at "num" extern void MountVolume(void *fh); // Mount volume with given file handle (see sys.h) -extern bool HasMacStarted(void); // Test if basic MacOS initializations are done 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 +// Test if basic MacOS initializations (of the ROM) are done +static inline bool HasMacStarted(void) +{ + return ReadMacInt32(0xcfc) == 'WLSC'; // Mac warm start flag +} + #endif