22 #ifndef MEDIASTATION_BOOT_H 23 #define MEDIASTATION_BOOT_H 25 #include "common/path.h" 26 #include "common/str.h" 27 #include "common/array.h" 28 #include "common/hashmap.h" 30 #include "mediastation/datafile.h" 34 enum ContextReferenceSectionType {
35 kContextReferencePlaceholder = 0x0003,
36 kContextReferenceContextId = 0x0004,
37 kContextReferenceStreamId = 0x0005,
38 kContextReferenceParentContextId = 0x0006,
39 kContextReferenceName = 0x0bb8
53 ContextReferenceSectionType getSectionType(
Chunk &chunk);
56 enum ScreenReferenceSectionType {
57 kScreenReferenceScreenId = 0x0009,
58 kScreenReferenceContextId = 0x0004
66 uint _screenActorId = 0;
70 ScreenReferenceSectionType getSectionType(
Chunk &chunk);
73 enum FileInfoSectionType {
74 kFileInfoEmptySection = 0x0000,
75 kFileInfoFileId = 0x002b,
76 kFileInfoFileNameAndType = 0x002d
81 enum IntendedFileLocation {
82 kFileLocationEmpty = 0x0000,
84 kFileIntendedOnCdRom = 0x0007,
86 kFileIntendedForUnk1 = 0x0008,
87 kFileIntendedForUnk2 = 0x0009,
89 kFileIntendedOnHardDisk = 0x000b
98 IntendedFileLocation _intendedLocation = kFileLocationEmpty;
102 FileInfoSectionType getSectionType(
Chunk &chunk);
105 enum StreamInfoSectionType {
106 kStreamInfoEmptySection = 0x0000,
107 kStreamInfoActorId = 0x002a,
108 kStreamInfoFileId = 0x002b,
109 kStreamInfoStartOffset = 0x002c
119 uint _startOffsetInFile = 0;
122 StreamInfoSectionType getSectionType(
Chunk &chunk);
145 enum BootSectionType {
146 kBootLastSection = 0x0000,
147 kBootContextReference = 0x0002,
148 kBootVersionInformation = 0x0190,
150 kBootFunctionTableSize = 0x0192,
152 kBootEngineResource = 0x0bba,
153 kBootEngineResourceId = 0x0bbb,
154 kBootScreenReference = 0x0007,
155 kBootFileInfo = 0x000a,
156 kBootStreamInfo = 0x000b,