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 ContextDeclarationSectionType {
35 kContextDeclarationEmptySection = 0x0000,
36 kContextDeclarationPlaceholder = 0x0003,
37 kContextDeclarationContextId = 0x0004,
38 kContextDeclarationStreamId = 0x0005,
39 kContextDeclarationParentContextId = 0x0006,
40 kContextDeclarationName = 0x0bb8
54 ContextDeclarationSectionType getSectionType(
Chunk &chunk);
57 enum ScreenDeclarationSectionType {
58 kScreenDeclarationEmpty = 0x0000,
59 kScreenDeclarationAssetId = 0x0009,
60 kScreenDeclarationScreenId = 0x0004
72 ScreenDeclarationSectionType getSectionType(
Chunk &chunk);
75 enum FileDeclarationSectionType {
76 kFileDeclarationEmptySection = 0x0000,
77 kFileDeclarationFileId = 0x002b,
78 kFileDeclarationFileNameAndType = 0x002d
83 enum IntendedFileLocation {
84 kFileLocationEmpty = 0x0000,
86 kFileIntendedOnCdRom = 0x0007,
88 kFileIntendedForUnk1 = 0x0008,
89 kFileIntendedForUnk2 = 0x0009,
91 kFileIntendedOnHardDisk = 0x000b
100 IntendedFileLocation _intendedLocation = kFileLocationEmpty;
104 FileDeclarationSectionType getSectionType(
Chunk &chunk);
107 enum SubfileDeclarationSectionType {
108 kSubfileDeclarationEmptySection = 0x0000,
109 kSubfileDeclarationAssetId = 0x002a,
110 kSubfileDeclarationFileId = 0x002b,
111 kSubfileDeclarationStartOffset = 0x002c
121 uint _startOffsetInFile = 0;
124 SubfileDeclarationSectionType getSectionType(
Chunk &chunk);
147 enum BootSectionType {
148 kBootLastSection = 0x0000,
149 kBootEmptySection = 0x002e,
150 kBootContextDeclaration = 0x0002,
151 kBootVersionInformation = 0x0190,
155 kBootEngineResource = 0x0bba,
156 kBootEngineResourceId = 0x0bbb,
157 kBootScreenDeclaration = 0x0007,
158 kBootFileDeclaration = 0x000a,
159 kBootSubfileDeclaration = 0x000b,
161 kBootCursorDeclaration = 0x0015,
162 kBootEntryScreen = 0x002f,
163 kBootAllowMultipleSounds = 0x0035,
164 kBootAllowMultipleStreams = 0x0036,
170 BootSectionType getSectionType(
Chunk &chunk);
184 uint32 _entryContextId = 0;
185 bool _allowMultipleSounds =
false;
186 bool _allowMultipleStreams =
false;