aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/boot.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/boot.h')
-rw-r--r--engines/cge/boot.h64
1 files changed, 30 insertions, 34 deletions
diff --git a/engines/cge/boot.h b/engines/cge/boot.h
index ab4dcde0e2..2dce0d6d16 100644
--- a/engines/cge/boot.h
+++ b/engines/cge/boot.h
@@ -37,42 +37,38 @@ namespace CGE {
#define BOOTCODE_SIZ BOOTSECT_SIZ-BOOTHEAD_SIZ
#define FreeBoot(b) free(b)
-#ifndef EC
-#define EC
-#endif
-
-typedef struct {
- uint8 Jmp[3]; // NEAR jump machine code
- char OEM_ID[8]; // OEM name and version
- uint16 SectSize; // bytes per sector
- uint8 ClustSize; // sectors per cluster
- uint16 ResSecs; // sectors before 1st FAT
- uint8 FatCnt; // number of FATs
- uint16 RootSize; // root directory entries
- uint16 TotSecs; // total sectors on disk
- uint8 Media; // media descriptor byte
- uint16 FatSize; // sectors per FAT
- uint16 TrkSecs; // sectors per track
- uint16 HeadCnt; // number of sufraces
- uint16 HidnSecs; // special hidden sectors
- uint16 _; // (unknown: reserved?)
- uint32 lTotSecs; // total number of sectors
- uint16 DriveNum; // physical drive number
- uint8 XSign; // extended boot signature
- uint32 Serial; // volume serial number
- char Label[11]; // volume label
- char FileSysID[8]; // file system ID
- char Code[BOOTCODE_SIZ - 8]; // 8 = length of following
- uint32 Secret; // long secret number
- uint8 BootCheck; // boot sector checksum
- uint8 BootFlags; // secret flags
- uint16 BootSig; // boot signature 0xAA55
-} Boot;
+struct Boot {
+ uint8 _jmp[3]; // NEAR jump machine code
+ char _idOEM[8]; // OEM name and version
+ uint16 _sectSize; // bytes per sector
+ uint8 _clustSize; // sectors per cluster
+ uint16 _resSecs; // sectors before 1st FAT
+ uint8 _fatCnt; // number of FATs
+ uint16 _rootSize; // root directory entries
+ uint16 _totSecs; // total sectors on disk
+ uint8 _media; // media descriptor byte
+ uint16 _fatSize; // sectors per FAT
+ uint16 _trkSecs; // sectors per track
+ uint16 _headCnt; // number of sufraces
+ uint16 _hidnSecs; // special hidden sectors
+ uint16 __; // (unknown: reserved?)
+ uint32 _lTotSecs; // total number of sectors
+ uint16 _driveNum; // physical drive number
+ uint8 _xSign; // extended boot signature
+ uint32 _serial; // volume serial number
+ char _label[11]; // volume label
+ char _fileSysID[8]; // file system ID
+ char _code[BOOTCODE_SIZ - 8]; // 8 = length of following
+ uint32 _secret; // long secret number
+ uint8 _bootCheck; // boot sector checksum
+ uint8 _bootFlags; // secret flags
+ uint16 _bootSig; // boot signature 0xAA55
+};
-EC Boot *ReadBoot(int drive);
-EC uint8 CheckBoot(Boot *boot);
-EC bool WriteBoot(int drive, Boot *boot);
+Boot *readBoot(int drive);
+uint8 checkBoot(Boot *boot);
+bool writeBoot(int drive, Boot *boot);
} // End of namespace CGE