|
Wing Commander II
Reconstructed Win32 source (1996)
|
Win32 entry point, window, joystick, guarded heap and keyboard state. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | WINMAIN_C |
Win32 entry point, window, joystick, guarded heap and keyboard state.
Definition in file winmain.c.
| unsigned int AbortToDesktop | ( | void | ) |
Definition at line 220 of file winmain.c.
References AbortToDesktop(), g_19_hOneProcessLock, g_29_abMemoryLoadNotice, g_bApplicationShutdownStarted, g_dwGuardedAllocationBytes, g_dwGuardedAllocationPeakBytes, and g_dwGuardedAllocationTotalBytes.
Referenced by AbortToDesktop(), and WinMain().
| FontWorkspace ** AllocateFontWorkspace | ( | short | fontIndex | ) |
Definition at line 1188 of file winmain.c.
References AllocateFontWorkspace(), FontWorkspace::height, FontWorkspace::pixels, and FontWorkspace::width.
Referenced by AllocateFontWorkspace().
| void * AllocateGuardedMemory | ( | unsigned int | size | ) |
Definition at line 757 of file winmain.c.
References AllocateGuardedMemory(), GuardedAllocation::block, g_9_pGuardedAllocationLastRef, g_pGuardedAllocationHead, GuardedAllocation::next, GuardedAllocation::size, and UntrackFreedHeapBlock().
Referenced by AllocateGuardedMemory(), and AllocateTaggedMemory().
Definition at line 801 of file winmain.c.
References CheckAllGuardedAllocations().
Referenced by CheckAllGuardedAllocations(), and Update_3Space().
Definition at line 24 of file winmain.c.
References CheckLauncherAndConfig(), g_bConfigMemoryOption, g_bConfigQuickModeEnabled, g_bDebugBreakEnabled, g_bPlayerCollisionEnabled, g_bPlayerDamageEnabled, g_bShowFrameRate, g_bSkipCampaignVideo, g_bUseHardwarePalette, g_nDebugFileLoggingEnabled, g_nOriginDevUnlock, and ReadCheaterFlagFromRegistry().
Referenced by CheckLauncherAndConfig(), and WinMain().
| int CreateMainWindow | ( | HINSTANCE | instance, |
| HINSTANCE | previous, | ||
| int | showCommand ) |
Definition at line 241 of file winmain.c.
References CreateMainWindow(), DIBinstall(), g_10_hMainWindow, g_16_bMainWindowRunning, g_18_hMainWindowContext, g_1_hMainWndCursor, g_7_hAppCopy, g_szWindowClassName, g_szWindowTitle, GetDC(), MainWindowProc(), SetBkColor(), and SetTextColor().
Referenced by CreateMainWindow(), and WinMain().
| int DetectDoubleFree | ( | void * | memory | ) |
Definition at line 822 of file winmain.c.
References FreedHeapBlock::block, DetectDoubleFree(), g_pFreedHeapBlockHead, and FreedHeapBlock::next.
Referenced by DetectDoubleFree(), and FreeGuardedAllocation().
| char FindCdRomDriveByVolumeLabel | ( | const char * | label, |
| const char * | directory ) |
Definition at line 1251 of file winmain.c.
References FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().
Referenced by FindCdRomDriveByVolumeLabel(), and LocateStreamsDirOnDisc().
| void FreeFontWorkspace | ( | FontWorkspace ** | workspace | ) |
Definition at line 1210 of file winmain.c.
References FreeFontWorkspace().
Referenced by FreeFontWorkspace().
Definition at line 908 of file winmain.c.
References GuardedAllocation::block, DetectDoubleFree(), FreeGuardedAllocation(), g_9_pGuardedAllocationLastRef, g_pGuardedAllocationHead, g_szGuardedHeapDiagnosticMessage, GuardedAllocation::next, ReportHeapGuardCorruption(), GuardedAllocation::size, TrackFreedHeapBlock(), and WriteDebugString().
Referenced by FreeGuardedAllocation(), and ReleasePacketHandle().
Definition at line 889 of file winmain.c.
References FreeTrackedHeapBlocks(), g_pFreedHeapBlockHead, and FreedHeapBlock::next.
Referenced by FreeTrackedHeapBlocks().
| HINSTANCE GetApplicationInstance | ( | void | ) |
Definition at line 734 of file winmain.c.
References g_7_hAppCopy, and GetApplicationInstance().
Referenced by GetApplicationInstance().
| int GetControlKeyState | ( | void | ) |
Definition at line 1136 of file winmain.c.
References GetControlKeyState().
Referenced by GetControlKeyState(), HandleSpaceFlightControls(), PollSceneHotspotInput(), and QueueInputEvent().
| int GetDownArrowKeyState | ( | void | ) |
Definition at line 1082 of file winmain.c.
References GetDownArrowKeyState().
Referenced by GetDownArrowKeyState(), and KeyboardMousePump().
| int GetEndKeyState | ( | void | ) |
Definition at line 1076 of file winmain.c.
References GetEndKeyState().
Referenced by GetEndKeyState(), and KeyboardMousePump().
| unsigned int GetF1KeyLatch | ( | void | ) |
Definition at line 17 of file winmain.c.
References g_bF1KeyDown, and GetF1KeyLatch().
Referenced by GetF1KeyLatch(), and HandleSpaceFlightControls().
| unsigned int GetGameClockTicks | ( | void | ) |
Definition at line 1148 of file winmain.c.
References g_128_dwGameClockBase, and GetGameClockTicks().
Referenced by GetGameClockTicks(), SplitGameClockTicks(), and SplitGameClockTicksForNav().
| int GetHomeKeyState | ( | void | ) |
Definition at line 1046 of file winmain.c.
References GetHomeKeyState().
Referenced by GetHomeKeyState(), and KeyboardMousePump().
| int GetJKeyState | ( | void | ) |
Definition at line 1142 of file winmain.c.
References GetJKeyState().
Referenced by GetJKeyState(), and PollSceneHotspotInput().
| short GetJoystickButtons | ( | void | ) |
Definition at line 706 of file winmain.c.
References g_1_aJoystickInfoArray, and GetJoystickButtons().
Referenced by GetJoystickButtons(), and ReadJoystickButtons().
| void GetJoystickDevCaps | ( | short | joystick, |
| short * | xMin, | ||
| short * | xMax, | ||
| short * | yMin, | ||
| short * | yMax ) |
Definition at line 716 of file winmain.c.
References GetJoystickDevCaps().
Referenced by GetJoystickDevCaps(), and LoadJoystickCalibrationFile().
| void GetJoystickPosition | ( | unsigned int * | x, |
| unsigned int * | y, | ||
| int * | buttons, | ||
| unsigned short | joystick, | ||
| unsigned int | fallback ) |
Definition at line 657 of file winmain.c.
References g_1_aJoystickInfoArray, g_bJoystickPrimaryButtonLatched, g_bJoystickSecondaryButtonLatched, g_nInputPressCount, and GetJoystickPosition().
Referenced by GetJoystickPosition(), SampleBothJoysticks(), and SampleJoystickDevice().
| unsigned int GetKeyboardModifiers | ( | void | ) |
Definition at line 1130 of file winmain.c.
References g_69_dwSysKeyValue, and GetKeyboardModifiers().
Referenced by GetKeyboardModifiers(), HandleSpaceFlightControls(), and QueueInputEvent().
| int GetLeftArrowKeyState | ( | void | ) |
Definition at line 1064 of file winmain.c.
References GetLeftArrowKeyState().
Referenced by GetLeftArrowKeyState(), and KeyboardMousePump().
| HDC GetMainWindowDeviceContext | ( | void | ) |
Definition at line 750 of file winmain.c.
References g_18_hMainWindowContext, and GetMainWindowDeviceContext().
Referenced by GetMainWindowDeviceContext().
| HWND GetMainWindowHandle | ( | void | ) |
Definition at line 742 of file winmain.c.
References g_10_hMainWindow, and GetMainWindowHandle().
Referenced by GetMainWindowHandle().
| int GetNumLockKeyState | ( | void | ) |
Definition at line 1094 of file winmain.c.
References GetNumLockKeyState().
Referenced by GetNumLockKeyState(), and KeyboardMousePump().
| int GetNumpadMinusKeyState | ( | void | ) |
Definition at line 1106 of file winmain.c.
References GetNumpadMinusKeyState().
Referenced by GetNumpadMinusKeyState(), and KeyboardMousePump().
| int GetNumpadPlusKeyState | ( | void | ) |
Definition at line 1100 of file winmain.c.
References GetNumpadPlusKeyState().
Referenced by GetNumpadPlusKeyState(), and KeyboardMousePump().
| int GetPageDownKeyState | ( | void | ) |
Definition at line 1088 of file winmain.c.
References GetPageDownKeyState().
Referenced by GetPageDownKeyState(), and KeyboardMousePump().
| int GetPageUpKeyState | ( | void | ) |
Definition at line 1058 of file winmain.c.
References GetPageUpKeyState().
Referenced by GetPageUpKeyState(), and KeyboardMousePump().
| int GetReturnKeyState | ( | void | ) |
Definition at line 1112 of file winmain.c.
References GetReturnKeyState().
Referenced by GetReturnKeyState(), and KeyboardMousePump().
| int GetRightArrowKeyState | ( | void | ) |
Definition at line 1070 of file winmain.c.
References GetRightArrowKeyState().
Referenced by GetRightArrowKeyState(), and KeyboardMousePump().
| int GetShiftKeyState | ( | void | ) |
Definition at line 1124 of file winmain.c.
References GetShiftKeyState().
Referenced by GetShiftKeyState(), KeyboardMousePump(), process_player_input(), and QueueInputEvent().
| int GetSpaceKeyState | ( | void | ) |
Definition at line 1118 of file winmain.c.
References GetSpaceKeyState().
Referenced by GetSpaceKeyState(), and KeyboardMousePump().
| int GetUpArrowKeyState | ( | void | ) |
Definition at line 1052 of file winmain.c.
References GetUpArrowKeyState().
Referenced by GetUpArrowKeyState(), and KeyboardMousePump().
Definition at line 1154 of file winmain.c.
References g_128_dwGameClockBase, g_13_lGameClockStartData, and InitGameClockRandomEpoch().
Referenced by InitGameClockRandomEpoch(), and WinMain().
| int IsFreedHeapBlockTracked | ( | void * | memory | ) |
Definition at line 806 of file winmain.c.
References FreedHeapBlock::block, g_pFreedHeapBlockHead, IsFreedHeapBlockTracked(), and FreedHeapBlock::next.
Referenced by CheckHeapBlockSignature(), and IsFreedHeapBlockTracked().
| char * LocateStreamsDirOnDisc | ( | void | ) |
Definition at line 1222 of file winmain.c.
References FindCdRomDriveByVolumeLabel(), g_9_szStreamsPath, and LocateStreamsDirOnDisc().
Referenced by LocateStreamsDirOnDisc(), PromptInsertCorrectCd(), and Streamer_open().
| LRESULT CALLBACK MainWindowProc | ( | HWND | window, |
| UINT | message, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam ) |
Definition at line 350 of file winmain.c.
References DIBreInstall(), g_102_nStoredWindowCursorYWord, g_10_hMainWindow, g_16_bMainWindowRunning, g_27_nLastAltCommandScanNumberWord, g_2_bAltFHotkeyFlag, g_2_bAltHHotkey, g_2_bIgnoreNextCursorMoveFlag, g_39_bAltNumpadAddHotkeySwitch, g_3_nSavedOwnerCursorX, g_4_bMenuBHotkey, g_69_dwSysKeyValue, g_6_bAltDChordState, g_6_bMenuTHotkeySwitch, g_6_stHostMouseTextBlock, g_bAltNumpadSubtractShortcut, g_bApplicationControllerActive, g_bApplicationShutdownStarted, g_bDebugBreakEnabled, g_bF1KeyDown, g_bJoystickCalibrationHotkey, g_bMenuAHotkey, g_bSceneEscapeRequested, g_bWindowInactive, g_nInputPressCount, g_nPendingMouseX, g_nPendingMouseY, MainWindowProc(), HostMouseMessage::primaryButton, QueueInputEvent(), ReportSpaceFlightMaxFps(), HostMouseMessage::secondaryButton, SetInputKeyState(), SignalAudioMixerWakeEvent(), WriteDebugString(), HostMouseMessage::x, and HostMouseMessage::y.
Referenced by CreateMainWindow(), and MainWindowProc().
| void OutputDebugPrintf | ( | const char * | format, |
| ... ) |
Definition at line 204 of file winmain.c.
References OutputDebugPrintf().
Referenced by AdvanceSceneFlicStream(), close_behind(), and OutputDebugPrintf().
Definition at line 983 of file winmain.c.
References g_bSceneEscapeRequested, and PollEscapeKey().
Referenced by PollEscapeKey().
| unsigned int PollKeyboardState | ( | void | ) |
Definition at line 991 of file winmain.c.
References g_102_nLeftDirKeyboardState, g_13_nUpDirKeyState, g_15_nDownArrowKeyState, g_18_nEndKeyState, g_1_nPageDownKeyboardMode, g_2_nClearedKeyboardState, g_3_nBeginKeyboardState, g_3_nOemPeriodKeyState, g_nClearKeyMode, g_nDeleteKeyState, g_nInsertKeyStatus, g_nOemCommaKeyState, g_nPgUpwardKeyMode, g_nRightDirKeyboardState, and PollKeyboardState().
Referenced by player_input(), and PollKeyboardState().
| int PromptInsertCorrectCd | ( | void | ) |
Definition at line 1324 of file winmain.c.
References LocateStreamsDirOnDisc(), and PromptInsertCorrectCd().
Referenced by PromptInsertCorrectCd(), and WinMain().
| unsigned int PumpWindowMessages | ( | int | skipMessages | ) |
Definition at line 292 of file winmain.c.
References g_13_lGameClockStartData, g_16_bMainWindowRunning, g_176_pfnCurrentInputPump, g_196_nInputTimerTicks, g_bWindowInactive, g_bWindowMessagePumpActive, KeyboardMousePump(), LogMemoryUsage(), PumpWindowMessages(), and ShutdownGameWindow().
Referenced by ExecuteCutsceneScene(), ExecuteCutsceneSequence(), FlushPendingInputPresses(), InitializeSoundBlaster(), LoadCutsceneSpeechSlot(), PollInputEvent(), PumpWindowMessages(), RunCutsceneScript(), RunTitleMenuInputLoop(), RunTitleScreen(), ServiceInputDevices(), UpdateCutscenePlaneObject(), and UpdateCutsceneSpriteObject().
Definition at line 788 of file winmain.c.
References ReportHeapGuardCorruption().
Referenced by FreeGuardedAllocation(), and ReportHeapGuardCorruption().
| int SetCurrentDirOnDrive | ( | char | drive, |
| const char * | directory ) |
Definition at line 1297 of file winmain.c.
References SetCurrentDirOnDrive().
Referenced by FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().
| void SetInputCursorHostPosition | ( | int | x, |
| int | y ) |
Definition at line 1177 of file winmain.c.
References SetInputCursorHostPosition().
Referenced by ApplyPackedMousePosition(), SetInputCursorHostPosition(), and SetMouseHomePosition().
| void SetMousePosition | ( | int | x, |
| int | y ) |
Definition at line 975 of file winmain.c.
References SetMousePosition().
Referenced by KeyboardMousePump(), PollMenuInputDevices(), and SetMousePosition().
| void ShowNoticeMessageBox | ( | const char * | text | ) |
Definition at line 194 of file winmain.c.
References DIBpositionWindow(), and ShowNoticeMessageBox().
Referenced by exit_squadron(), and ShowNoticeMessageBox().
Definition at line 172 of file winmain.c.
References DestroyGlobalDebugOverlayConsole(), DIBunInstall(), g_10_hMainWindow, g_19_hOneProcessLock, g_48_dwGameExitClockValue, g_bApplicationShutdownStarted, and ShutdownGameWindow().
Referenced by exit_squadron(), PumpWindowMessages(), and ShutdownGameWindow().
| int TakeInputPressCount | ( | void | ) |
Definition at line 1313 of file winmain.c.
References g_nInputPressCount, and TakeInputPressCount().
Referenced by FlushPendingInputPresses(), RunCutsceneScript(), RunTitleScreen(), and TakeInputPressCount().
Definition at line 842 of file winmain.c.
References FreedHeapBlock::block, g_pFreedHeapBlockHead, g_pFreedHeapBlockTail, FreedHeapBlock::next, and TrackFreedHeapBlock().
Referenced by FreeGuardedAllocation(), and TrackFreedHeapBlock().
Definition at line 859 of file winmain.c.
References FreedHeapBlock::block, g_pFreedHeapBlockHead, g_pFreedHeapBlockTail, FreedHeapBlock::next, and UntrackFreedHeapBlock().
Referenced by AllocateGuardedMemory(), and UntrackFreedHeapBlock().
| int WINAPI WinMain | ( | HINSTANCE | instance, |
| HINSTANCE | previous, | ||
| LPSTR | commandLine, | ||
| int | showCommand ) |
Definition at line 89 of file winmain.c.
References AbortToDesktop(), AllocateApplicationScratchBuffer(), CheckLauncherAndConfig(), CreateDebugOverlayConsole(), CreateMainWindow(), DestroyGlobalDebugOverlayConsole(), DIBunInstall(), g_10_hMainWindow, g_11_dwGameZeroTime, g_176_pfnCurrentInputPump, g_196_nInputTimerTicks, g_19_hOneProcessLock, g_48_dwGameExitClockValue, g_bApplicationControllerActive, g_bApplicationShutdownStarted, g_bWindowInactive, g_nAudioEnabled, InitGameClockRandomEpoch(), InitializeAudioStreamer(), InitializeAudioSystem(), MonoDebug_install(), PromptInsertCorrectCd(), ReleaseApplicationScratchBuffer(), RunGameApplication(), ServiceAudioStream(), and WinMain().
Referenced by WinMain().
| void WriteDebugString | ( | const char * | s | ) |
Definition at line 1162 of file winmain.c.
References g_nDebugFileLoggingEnabled, g_pDebugLogFile, and WriteDebugString().
Referenced by DIBcascade(), DIBerror(), FreeGuardedAllocation(), MainWindowProc(), SystemDebugPrintf(), and WriteDebugString().
| int g_102_nStoredWindowCursorYWord |
Definition at line 1405 of file winmain.c.
Referenced by MainWindowProc().
| HWND g_10_hMainWindow |
Definition at line 1385 of file winmain.c.
Referenced by CreateMainWindow(), GetMainWindowHandle(), MainWindowProc(), ShutdownGameWindow(), and WinMain().
| unsigned int g_11_dwGameZeroTime |
| unsigned long g_128_dwGameClockBase |
Definition at line 1387 of file winmain.c.
Referenced by GetGameClockTicks(), and InitGameClockRandomEpoch().
| long g_13_lGameClockStartData |
Definition at line 1410 of file winmain.c.
Referenced by InitGameClockRandomEpoch(), and PumpWindowMessages().
| int g_16_bMainWindowRunning |
Definition at line 1407 of file winmain.c.
Referenced by CreateMainWindow(), MainWindowProc(), and PumpWindowMessages().
| HDC g_18_hMainWindowContext |
Definition at line 1394 of file winmain.c.
Referenced by CreateMainWindow(), and GetMainWindowDeviceContext().
| HANDLE g_19_hOneProcessLock |
Definition at line 1386 of file winmain.c.
Referenced by AbortToDesktop(), ShutdownGameWindow(), and WinMain().
| JOYINFO g_1_aJoystickInfoArray[2] |
Definition at line 1383 of file winmain.c.
Referenced by GetJoystickButtons(), and GetJoystickPosition().
| HCURSOR g_1_hMainWndCursor |
Definition at line 1398 of file winmain.c.
Referenced by CreateMainWindow().
| int g_27_nLastAltCommandScanNumberWord |
Definition at line 1393 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| char g_29_abMemoryLoadNotice[0x80] |
Definition at line 1390 of file winmain.c.
Referenced by AbortToDesktop().
| int g_2_bAltFHotkeyFlag |
Definition at line 1395 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| int g_2_bAltHHotkey |
Definition at line 1399 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| int g_39_bAltNumpadAddHotkeySwitch |
Definition at line 1392 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| int g_3_nSavedOwnerCursorX |
Definition at line 1404 of file winmain.c.
Referenced by MainWindowProc().
| unsigned int g_48_dwGameExitClockValue |
Definition at line 1403 of file winmain.c.
Referenced by ShutdownGameWindow(), and WinMain().
| int g_4_bMenuBHotkey |
Definition at line 1400 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| unsigned int g_69_dwSysKeyValue |
Definition at line 1382 of file winmain.c.
Referenced by GetKeyboardModifiers(), and MainWindowProc().
| int g_6_bAltDChordState |
Definition at line 1396 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| int g_6_bMenuTHotkeySwitch |
Definition at line 1402 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| HostMouseMessage g_6_stHostMouseTextBlock |
Definition at line 1384 of file winmain.c.
Referenced by HandleFleetOverviewInput(), InflightComputer(), MainWindowProc(), player_input(), and TranslatePolledInputEvent().
| HINSTANCE g_7_hAppCopy |
Definition at line 1408 of file winmain.c.
Referenced by CreateMainWindow(), and GetApplicationInstance().
| GuardedAllocation* g_9_pGuardedAllocationLastRef |
Definition at line 1388 of file winmain.c.
Referenced by AllocateGuardedMemory(), and FreeGuardedAllocation().
| int g_bAltNumpadSubtractShortcut |
Definition at line 1406 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| int g_bApplicationControllerActive = 0 |
Definition at line 1355 of file winmain.c.
Referenced by MainWindowProc(), and WinMain().
| int g_bApplicationShutdownStarted = 0 |
Definition at line 1347 of file winmain.c.
Referenced by AbortToDesktop(), MainWindowProc(), ShutdownGameWindow(), and WinMain().
| int g_bConfigMemoryOption = 0 |
Definition at line 1368 of file winmain.c.
Referenced by CheckLauncherAndConfig().
| int g_bConfigQuickModeEnabled = 1 |
Definition at line 1357 of file winmain.c.
Referenced by CheckLauncherAndConfig(), DIBinstall(), and DIBreInstall().
| int g_bDebugBreakEnabled = 0 |
Definition at line 1346 of file winmain.c.
Referenced by CheckLauncherAndConfig(), HandleSpaceFlightControls(), and MainWindowProc().
| int g_bF1KeyDown = 0 |
Definition at line 1348 of file winmain.c.
Referenced by GetF1KeyLatch(), and MainWindowProc().
| int g_bInputEventQueueEnabled = 0 |
Definition at line 1350 of file winmain.c.
Referenced by WaitForQueuedInputPress().
| int g_bJoystickCalibrationHotkey |
Definition at line 1397 of file winmain.c.
Referenced by HandleSpaceFlightControls(), MainWindowProc(), and PollSceneHotspotInput().
| int g_bJoystickPrimaryButtonLatched = 0 |
Definition at line 1374 of file winmain.c.
Referenced by GetJoystickPosition().
| int g_bJoystickSecondaryButtonLatched = 0 |
Definition at line 1375 of file winmain.c.
Referenced by GetJoystickPosition().
| int g_bMenuAHotkey |
Definition at line 1401 of file winmain.c.
Referenced by HandleSpaceFlightControls(), and MainWindowProc().
| int g_bShowFrameRate = 0 |
Definition at line 1356 of file winmain.c.
Referenced by CheckLauncherAndConfig(), and ThrottleFrameAndDrawFps().
| int g_bSkipCampaignVideo = 0 |
Definition at line 1360 of file winmain.c.
Referenced by CheckLauncherAndConfig(), and RunCampaignScript().
| int g_bUseHardwarePalette = 1 |
Definition at line 1358 of file winmain.c.
Referenced by CheckLauncherAndConfig(), DIBmakeDIB(), DIBramPalette(), DIBsetPalette(), DIBwholePaletteFromTriplets(), and DIBwholePaletteFromWords().
| int g_bWindowInactive = 0 |
Definition at line 1361 of file winmain.c.
Referenced by MainWindowProc(), PumpWindowMessages(), and WinMain().
| int g_bWindowMessagePumpActive = 0 |
Definition at line 1369 of file winmain.c.
Referenced by PumpWindowMessages().
| unsigned int g_dwGuardedAllocationBytes = 0 |
Definition at line 1352 of file winmain.c.
Referenced by AbortToDesktop().
| unsigned int g_dwGuardedAllocationPeakBytes = 0 |
Definition at line 1353 of file winmain.c.
Referenced by AbortToDesktop().
| unsigned int g_dwGuardedAllocationTotalBytes = 0 |
Definition at line 1351 of file winmain.c.
Referenced by AbortToDesktop().
| int g_nAudioEnabled = 1 |
Definition at line 1349 of file winmain.c.
Referenced by DestroyAudioStreamer(), DrawCutsceneTextAt(), ExecuteCutsceneSequence(), ForceStreamerTrigger(), InitializeAudioStreamer(), InitializeAudioSystem(), PlaySnowStaticSound(), playWAVE(), ServiceAudioStream(), ServiceSoundSystem(), SetSoundEffectsVolume(), SetStreamerIntensity(), SetStreamerTrigger(), SignalAudioMixerWakeEvent(), StopSoundsUsingWave(), Streamer_close(), Streamer_open(), Streamer_play(), Streamer_stop(), UpdateMap(), UpdateStreamerStoppedFlag(), and WinMain().
| int g_nDebugFileLoggingEnabled = 0 |
Definition at line 1366 of file winmain.c.
Referenced by CheckLauncherAndConfig(), and WriteDebugString().
| int g_nInputPressCount = 0 |
Definition at line 1354 of file winmain.c.
Referenced by GetJoystickPosition(), MainWindowProc(), ServiceSoundSystem(), and TakeInputPressCount().
| int g_nPendingMouseX = 0 |
Definition at line 1371 of file winmain.c.
Referenced by MainWindowProc().
| int g_nPendingMouseY = 0 |
Definition at line 1372 of file winmain.c.
Referenced by MainWindowProc().
| FILE* g_pDebugLogFile = 0 |
Definition at line 1367 of file winmain.c.
Referenced by WriteDebugString().
| FreedHeapBlock* g_pFreedHeapBlockHead = 0 |
Definition at line 1377 of file winmain.c.
Referenced by DetectDoubleFree(), FreeTrackedHeapBlocks(), IsFreedHeapBlockTracked(), TrackFreedHeapBlock(), and UntrackFreedHeapBlock().
| FreedHeapBlock* g_pFreedHeapBlockTail = 0 |
Definition at line 1378 of file winmain.c.
Referenced by TrackFreedHeapBlock(), and UntrackFreedHeapBlock().
| GuardedAllocation* g_pGuardedAllocationHead = 0 |
Definition at line 1376 of file winmain.c.
Referenced by AllocateGuardedMemory(), and FreeGuardedAllocation().
| char g_szGuardedHeapDiagnosticMessage[0x80] |
Definition at line 1389 of file winmain.c.
Referenced by FreeGuardedAllocation().
|
static |
Definition at line 10 of file winmain.c.
Referenced by CreateMainWindow().
|
static |
Definition at line 11 of file winmain.c.
Referenced by CreateMainWindow().