9 "Sorry, an error has occurred.\n"
10 "Please note the following information: %s.\n"
11 "Check your configuration. If this problem persists, please\n"
12 "call Origin Systems' service line. We are sorry for the inconvenience.";
34 errorFile = fopen(
"err.$$$",
"w+");
88 va_start(argList, format);
89 vsprintf(text, format, argList);
157 va_start(argList, format);
158 vsprintf(text, format, argList);
161 if (duration == 9999)
163 if (modalShown == 0) {
176 if (duration == 9999) {
182 else if (duration == 9999)
189 if (showBanner != 0) {
void ShowGamePausedBanner(short showBanner)
int ConfigureInputPump(int slot, void(*pump)(void))
void SetInputViewport(Viewport *viewport)
short MaxShort(short a, short b)
short LogMemoryUsage(void)
unsigned int GetAvailableMainMemory(void)
void InitializeTextContextFromFont(TextContext *context, short fontIndex, unsigned char colour, signed char background)
void LogMemoryStateToFile(FILE *file)
short AllocateViewport(Viewport *viewport, short clearColour, short flags)
void ShutdownGameWindow(void)
void InitializeSpaceFlightInput(void)
void free_viewport(Viewport *viewport)
void SetTextContext(TextContext *context)
void ResetScreenClipToFullHeight(void)
void ReportPacketLoadError(void *packet, char *fileName, short retry, short section, const char *sourceTag)
void get_player_input(void)
unsigned int GetLargestFreeMemoryBlockByType(short memoryType)
void ReportFatalErrorCode(const char *errorCode)
void FlushInputEvents(void)
short MinShort(short a, short b)
void ShowModalMessage(const char *format,...)
short WaitForInputKey(void)
void ReportFramesSkipped(short adjustment)
void ShowOnScreenMessage(short duration, const char *format,...)
short GetOriginalFreeMemory(void)
void ClearHudMessageDisplay(short closeCommMenu)
void ShowMemoryStatusDebug(void)
void ServiceSoundSystem(void)
void ClearDebugPauseFlags(void)
void InitializeConversationViewport(void)
char * DosStrcpy(char *dst, const char *src)
void ReportOutOfMemoryAndExit(const char *resource)
short MeasureMessageWidth(const char *text)
void ClearViewport(Viewport *viewport, short colour)
void SetMessageDisplaySpeed(void)
void SetHudMessageText(char *text, unsigned short colour, unsigned short duration)
void ClearInputPump(void)
void InitializeConversationText(void)
void ShowNoticeMessageBox(const char *text)
void AcknowledgeModalMessage(void)
void ShowVersionBanner(void)
void FlushPendingInputPresses(void)
void exit_squadron(const char *msg,...)
void ReleaseModalTextPanel(void)
void FatalErrorAndExit(const char *format,...)
void InitializeInputDriverHook(void)
unsigned int GetAvailableFarMemory(void)
void DrawFormattedText(const char *format,...)
short ShowModalTextPanel(short fontIndex, const char *format,...)
Shared Win32 declarations, types and library interfaces.
unsigned char * g_4_pCockpitPanelShape
unsigned char * g_18_pCockpitIndicatorShape
short g_3_nFlightControlCommandValue
unsigned char * g_pConstellationSprite
unsigned int g_dwInitialSpareMemory
short g_9_aasCockpitHitPaletteFades[6][3]
Viewport g_stPilotHandViewportRecord
unsigned char * g_pPilotHandAnimationShapePtr
TextContext * g_29_pCurrentTextContext
char g_6_szDefaultTextBufferText[0xc8]
Viewport g_6_stConversationTextViewport
unsigned char g_26_bMouseCursorEnabled
char g_szNotEnoughMemoryMessage[]
unsigned char g_cSecondaryViewBufferColour
char g_szOnScreenMessageBuffer[52]
unsigned char g_88_nEventRepeatDelayState
unsigned char g_cRedColour
Viewport g_27_stViewScratchInfo
short g_1_asSpacePaletteFade[3]
unsigned char g_bPrimaryViewBufferColour
Viewport g_2_stModalSourceWindow
signed char g_cMessageSpeed
Viewport g_101_stScrViewInfo
TextContext g_1_stRightVduTextContextBlock
Viewport g_stSecondaryViewBufferBlock
char g_szCannedSceneTapeFile[9]
TextContext g_16_stCockpitTextSettingsRecord
short g_18_nInterfaceEventMode
TextContext g_3_stDefaultStringContext
TextContext g_2_stConversationTextCtx
static const char * g_pszFatalErrorMessage