ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/macos_util.h
(Generate patch)

Comparing BasiliskII/src/include/macos_util.h (file contents):
Revision 1.3 by cebix, 1999-10-19T19:28:27Z vs.
Revision 1.6 by cebix, 2000-07-14T21:42:06Z

# Line 1 | Line 1
1   /*
2   *  macos_util.h - MacOS definitions/utility functions
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2000 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 21 | Line 21
21   #ifndef MACOS_UTIL_H
22   #define MACOS_UTIL_H
23  
24 + #include "cpu_emulation.h"
25 +
26  
27   /*
28   *  Queues
# Line 247 | Line 249 | enum { // DeferredTask struct
249   extern void EnqueueMac(uint32 elem, uint32 list);       // Enqueue QElem in list
250   extern int FindFreeDriveNumber(int num);                        // Find first free drive number, starting at "num"
251   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
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 + // Test if basic MacOS initializations (of the ROM) are done
255 + static inline bool HasMacStarted(void)
256 + {
257 +        return ReadMacInt32(0xcfc) == 'WLSC';   // Mac warm start flag
258 + }
259 +
260   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines