45 "Press any key when ready") +
50 (short)(100 - textHeight / 2);
52 (short)(160 - textWidth / 2);
68 char *extensionPosition;
84 while (record->
name[0] !=
'\0') {
85 extensionPosition = strchr(record->
name,
'.');
86 if (extensionPosition++ != 0 &&
87 toupper((
int)*extensionPosition) ==
'V')
88 *extensionPosition = extension;
105 file = fopen(
"WINGCMDR.CFG",
"rt");
107 if ((
short)fscanf(file,
"%s", destination) == -1) {
113 destination = strchr(destination, 0) + 1;
116 while (argc-- != 0) {
117 strcpy(destination, argv[argumentIndex]);
120 destination = strchr(destination, 0) + 1;
122 return (
short)(argumentCount - 1);
141 "[SYSTEM]: Exiting Prematurely (LoadInstallData)\n");
146 size = (
unsigned int)filelength(file);
151 "[SYSTEM]: Exiting Prematurely (LoadInstallData)\n");
159 for (record = records; record->
name[0] != 0; record++) {
160 if (maximumId < record->logicalFile &&
173 "[SYSTEM]: Exiting Prematurely (LoadInstallData)\n");
180 while (maximumId > 0) {
181 entry->
name[0] =
' ';
186 for (record = records; record->
name[0] != 0; record++) {
TextContext stDefaultTxtContext
void * pLastPacketAllocation
unsigned char cBlackColour
char szTxtWorkspaceBuffer[256]
unsigned char cViewportClearColour
short nDiskPromptBorderColour
ScreenAllocation * pScreenAllocPtr
int nPassingShipAudioCooldown
int nAllocateViewportCallsValue
struct Shape * pFireworkShape
int aiSoundEffectSourceActiveArray[0x40]
Viewport stDiskPromptViewport
char * pCurrentStartupArgumentsPtr[30]
FireworkState aFireworksList[30]
DiskFileRecord * pDiskFileRecords
ConstellationStar aConstellationStarsTable[10]
TextContext stDiskPromptTextContext
ShortRect stDiskPromptBounds
unsigned char abAudioPlaybackSlots[0xf8]
unsigned char logicalFile
Umbrella header for the game core.
void SystemDebugPrintf(const char *fmt,...)
void * AllocateTaggedMemory(int size, unsigned short flags)
unsigned short InitializeDiskPromptTextContext(void)
char PumpMessagesDuringWait(void)
unsigned int InitializeTextContextFromFont(TextContext *context, short fontIndex, unsigned char colour, signed char background)
unsigned int InitializeGameTextContexts(void)
short __stdcall MeasureTextPixelWidthClamped(const char *text)
int __stdcall ReadDataFileAtOffset(unsigned short fd, int offset, unsigned int length, void *data)
void FxDriverShutdownHook(void)
void __stdcall CloseDataFile(unsigned short fd)
short LoadWingCmdrCfgFile(short argc, char **argv)
short __stdcall OpenDataFileOrDie(const char *path)
void ClearDebugPauseFlags(void)
unsigned short RewriteDiskFileGraphicsExtensions(short videoMode)
unsigned short __stdcall FontHeight(const void *p)
void ReleasePacketHandle(void *handle)
unsigned short LoadInstallDat(void)