25 #include "common/file.h" 50 typedef int32(*opcodeTypeFunction)();
51 typedef int16(*opcodeFunction)();
53 extern uint8 *_systemFNT;
54 extern int16 fontFileIndex;
56 extern uint8 itemColor;
57 extern uint8 selectColor;
58 extern uint8 titleColor;
59 extern uint8 subColor;
62 extern int16 switchPal;
63 extern char cmdLine[90];
65 extern int16 masterScreen;
67 extern int16 fadeFlag;
124 uint16 widthInColumn;
148 extern int32 volumeDataLoaded;
150 extern int16 numOfDisks;
152 extern char lastOverlay[38];
153 extern char nextOverlay[38];
155 extern int16 currentActiveMenu;
156 extern int16 autoMsg;
158 extern bool userWait;
159 extern int16 autoTrack;
161 extern int16 currentDiskNumber;
163 extern int16 volumeNumEntry;
164 extern fileEntry *volumePtrToFileDescriptor;
166 extern uint32 volumeFileDescriptorSize;
167 extern int16 volumeSizeOfEntry;
168 extern int16 volumeNumberOfEntry;
170 extern int16 displayOn;
172 extern int16 protectionCode;
174 #define NUM_FILE_ENTRIES 257 176 extern int16 globalVars[2000];
179 extern int16 bootOverlayNumber;
183 extern opcodeTypeFunction opcodeTypeTable[64];
185 extern int16 positionInStack;
188 extern int16 stateID;
191 extern uint8 *currentData3DataPtr;
192 extern uint8 *scriptDataPtrTable[7];
194 extern int16 currentScriptOpcodeType;
196 extern int16 saveOpcodeVar;
198 extern int16 narratorOvl;
199 extern int16 narratorIdx;
201 extern int16 songLoaded;
202 extern int16 songPlayed;
203 extern int16 songLoop;
204 extern int16 activeMouse;
205 extern int16 userEnabled;
207 extern int16 dialogueEnabled;
208 extern int16 dialogueOvl;
209 extern int16 dialogueObj;
210 extern int16 userDelay;
214 extern int16 automoveInc;
215 extern int16 automoveMax;
216 extern int16 isMessage;
217 extern int16 automaticMode;
220 extern bool animationStart;
222 extern int16 autoOvl;
224 extern int16 playerMenuEnabled;
234 extern uint8 newPal[NBCOLORS*3];
235 extern uint8 workpal[NBCOLORS*3];
236 extern uint8 palScreen[NBSCREENS][NBCOLORS*3];
240 extern char currentCtpName[40];
242 extern int16 saveVar1;
243 extern uint8 saveVar2[97];
245 extern int16 numberOfWalkboxes;
246 extern int16 walkboxColor[15];
247 extern int16 walkboxState[15];
249 extern uint8 lastAni[16];
251 extern int32 loadFileVar1;
253 extern int16 loadCtFromSave;
254 extern int16 ctp_routeCoordCount;
255 extern int16 ctp_routeCoords[20][2];
263 extern int16 ctp_routes[20][10];
275 extern int16 ctp_walkboxTable[15][40];
276 extern int16 walkboxColorIndex[16];
277 extern int16 walkboxZoom[15];
278 extern int16 distanceTable[20][10];
280 extern int16 flagSpeed;
281 extern int16 speedGame;
282 extern int16 oldSpeedGame;
284 extern uint8 globalScreen[320 * 200];