coastline 0.0.4
Loading...
Searching...
No Matches
app.h File Reference

The application of the PC port: its main window and the messages of the window, the states of the game it runs each frame, and its start and shutdown. More...

#include <cstddef>
#include <windows.h>
#include "common/fatalerror.h"
#include "common/screen.h"
#include "common/session.h"
Include dependency graph for app.h:

Go to the source code of this file.

Enumerations

enum  {
  GAME_STATE_INIT_RESOURCES , GAME_STATE_ENTER_GAME_MODE , GAME_STATE_RUN_GAME_MODE , GAME_STATE_LOAD_GAME ,
  GAME_STATE_RUN_FRONT_END
}
 The states of the game, in the order of g_apfnGameStateHandlers. More...

Functions

int GameState_InitResources (void)
 Open the pod of the game files, load the first sound set and the names of the controls of the game controller, and go on to the front end.
int GameState_EnterGameMode (void)
 Go on to run the mode of the game.
int GameState_RunGameMode (void)
 Run a frame of the mode of the game.
int GameState_ShowLoadingScreenAndInitGame (void)
 Set the display mode of the configuration, show the loading screen, set up the game, and go on to enter the mode of the game.
int GameState_RunFrontEnd (void)
 Run a frame of the front end.
void SetGameStateFrontEnd (void)
 Go back to the front end after a game, setting it up again.
bool OpenBossRallyPodAndInit (void)
 Open BossRally.pod, and set up the renderer, the damage bitmaps of the paint, DirectInput, the keyboard, the music when it plays, and DirectSound when sound is on.
void ShowGlideSplashImage (const char *pszPath, int nChecksum)
 Show an image of the Glide library over the whole screen.
LRESULT CALLBACK MainWindowProc (HWND hWnd, UINT nMessage, WPARAM wParam, LPARAM lParam)
 Handle the messages of the main window.
void UpdateAppActiveStateFromActivate (WPARAM wParam)
 Set whether the application is active from the state of WM_ACTIVATE.
LRESULT HandleWindowActivate (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_ACTIVATE.
LRESULT HandleWindowActivateApp (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_ACTIVATEAPP.
LRESULT HandleWindowClose (HWND hWnd)
 Handle WM_CLOSE.
LRESULT HandleWindowCommand (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_COMMAND.
LRESULT HandleWindowDestroy (HWND hWnd)
 Handle WM_DESTROY.
LRESULT HandleDisplayChange (HWND hWnd)
 Handle WM_DISPLAYCHANGE.
LRESULT HandleWindowEraseBackground (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_ERASEBKGND.
LRESULT HandleWindowEnterMenuLoop (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_ENTERMENULOOP.
LRESULT HandleWindowExitMenuLoop (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_EXITMENULOOP.
LRESULT HandleWindowGetMinMaxInfo (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_GETMINMAXINFO.
LRESULT HandleWindowMove (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_MOVE.
LRESULT HandleWindowNcPaint (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_NCPAINT.
LRESULT HandleWindowSetCursor (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_SETCURSOR.
LRESULT HandleWindowSize (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_SIZE.
LRESULT HandleWindowSysCommand (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_SYSCOMMAND.
LRESULT HandleWindowPosChanging (HWND hWnd, WPARAM wParam, LPARAM lParam)
 Handle WM_WINDOWPOSCHANGING.
LRESULT AttachRenderDeviceToWindow (HWND hWnd, LPARAM lParam)
 Store the renderer that has created its objects in the user data of its window.
LRESULT DetachRenderDeviceFromWindow (HWND hWnd, LPARAM lParam)
 Clear the renderer that is releasing its objects from the user data of its window.
HRESULT CreateRenderWindow (DWORD dwExStyle, LPCSTR pszClassName, LPCSTR pszWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hParent, HMENU hMenu, HINSTANCE hInstance, LPVOID pParam, GUID *pDriverGuid, int nUnused, HWND *phWnd, DirectDrawRenderer **ppRenderer)
 Create a window and the renderer that draws into it, and show the window.
int DestroyMainWindow (void)
 Destroy the main window and its renderer.
int DispatchGameStateFrame (void)
 Run a frame of the current state of the game.
void GetDXVersion (unsigned *pdwVersion, unsigned *pdwPlatform)
 Query the installed DirectX version by creating its objects in turn.
bool FocusExistingBossRallyInstance (void)
 Bring an instance of the game that is already running to the front.
void RefreshTotalPhysicalMemory (void)
 Read the amount of physical memory the machine has.
void ReadInstallDirectoryFromRegistry (void)
 Read the install directory from the registry into g_szInstallDirectory.
bool InitializeApplication (void)
 Start the application: refuse DirectX before version 6 and a second instance, then create the main window.
bool CreateMainWindow (void)
 Create the main window.
void RunMessageLoop (void)
 Run the message loop until the game quits.
void ShutdownMainWindow (void)
 Destroy the main window.

Variables

int g_dwAppExitCode
 Exit code RallyMain() returns to the launcher.
char g_szInstallDirectory []
 Directory the game is installed in, read from the registry, with a trailing separator.
HINSTANCE g_hRallyMainInstance
 Arguments of WinMain() as the launcher passed them to RallyMain().
HINSTANCE g_hRallyMainPrevInstance
 The previous application instance passed to RallyMain().
LPSTR g_pszRallyMainCmdLine
 The command line passed to RallyMain().
int g_nRallyMainCmdShow
 The initial window display mode passed to RallyMain().
size_t g_dwTotalPhysicalMemory
 The amount of physical memory of the machine, in bytes.
HINSTANCE g_hAppInstance
 The module of the game, set by InitializeApplication().
HWND g_hMainWindow
 The main window.
HACCEL g_hAccelTable
 The keyboard accelerators of the main window.
WPARAM g_dwAppActive
 The first parameter of the last WM_ACTIVATE.
int g_dwActivateState
 How the main window is activated, WA_INACTIVE, WA_ACTIVE, or WA_CLICKACTIVE.
int g_dwActivateMinimized
 Whether the main window is minimised.
int g_dwGameState
 The state of the game, an index into g_apfnGameStateHandlers.
int(* g_apfnGameStateHandlers [])(void)
 The routine that runs a frame of each state of the game.
int g_dwGameModeFrameCounter
 The frames the mode of the game has run.
int g_dwGameModeContinue
 What GameState_RunGameMode() returns, 1 at the start.
HCURSOR g_hArrowCursor
 The arrow cursor of the main window.
DirectDrawRenderer * g_pMainRenderWindow
 The renderer of the main window.

Detailed Description

The application of the PC port: its main window and the messages of the window, the states of the game it runs each frame, and its start and shutdown.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The states of the game, in the order of g_apfnGameStateHandlers.

Enumerator
GAME_STATE_INIT_RESOURCES 

Load the resources of the game.

GAME_STATE_ENTER_GAME_MODE 

Start the mode of the game.

GAME_STATE_RUN_GAME_MODE 

Run a frame of the mode of the game.

GAME_STATE_LOAD_GAME 

Show the loading screen and set up the game.

GAME_STATE_RUN_FRONT_END 

Run a frame of the front end.

Function Documentation

◆ GameState_InitResources()

int GameState_InitResources ( void )

Open the pod of the game files, load the first sound set and the names of the controls of the game controller, and go on to the front end.

Returns
Always true.
Ghidra address:
BRD3D: 0x1002f6b0
Ghidra address:
BRGlide: 0x1001cd70

◆ GameState_EnterGameMode()

int GameState_EnterGameMode ( void )

Go on to run the mode of the game.

Returns
Always true.
Ghidra address:
BRD3D: 0x1002f6e0
Ghidra address:
BRGlide: 0x1001cda0

◆ GameState_RunGameMode()

int GameState_RunGameMode ( void )

Run a frame of the mode of the game.

Returns
g_dwGameModeContinue.
Ghidra address:
BRD3D: 0x1002f6f0
Ghidra address:
BRGlide: 0x1001cdb0

◆ GameState_ShowLoadingScreenAndInitGame()

int GameState_ShowLoadingScreenAndInitGame ( void )

Set the display mode of the configuration, show the loading screen, set up the game, and go on to enter the mode of the game.

Direct3D sets the display mode once more after the loading screen.

Returns
Always true.
Ghidra address:
BRD3D: 0x1002f710
Ghidra address:
BRGlide: 0x1001cdd0

◆ GameState_RunFrontEnd()

int GameState_RunFrontEnd ( void )

Run a frame of the front end.

Returns
The result of the frame. Its meaning is not recovered yet.
Ghidra address:
BRD3D: 0x1002f790
Ghidra address:
BRGlide: 0x1001ce20

◆ SetGameStateFrontEnd()

void SetGameStateFrontEnd ( void )

Go back to the front end after a game, setting it up again.

Ghidra address:
BRD3D: 0x1002f690
Ghidra address:
BRGlide: 0x1001cd50

◆ OpenBossRallyPodAndInit()

bool OpenBossRallyPodAndInit ( void )

Open BossRally.pod, and set up the renderer, the damage bitmaps of the paint, DirectInput, the keyboard, the music when it plays, and DirectSound when sound is on.

The Glide library shows its splash image once the renderer is set up.

Returns
The result of InitializeDirectSound(), or false when sound is off.
Ghidra address:
BRD3D: 0x10038ec0
Ghidra address:
BRGlide: 0x10032530

◆ ShowGlideSplashImage()

void ShowGlideSplashImage ( const char * pszPath,
int nChecksum )

Show an image of the Glide library over the whole screen.

Parameters
pszPathThe path of the image, ARGB1555 pixels after their width and height.
nChecksumThe Adler-32 the pixels must have, or 0 to skip the check. A mismatch exits.
Ghidra address:
BRGlide: 0x1006c990

◆ MainWindowProc()

LRESULT CALLBACK MainWindowProc ( HWND hWnd,
UINT nMessage,
WPARAM wParam,
LPARAM lParam )

Handle the messages of the main window.

Parameters
hWndThe main window.
nMessageThe message.
wParamThe first parameter of the message.
lParamThe second parameter of the message.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x10079ca0
Ghidra address:
BRGlide: 0x100194c0

◆ UpdateAppActiveStateFromActivate()

void UpdateAppActiveStateFromActivate ( WPARAM wParam)

Set whether the application is active from the state of WM_ACTIVATE.

Parameters
wParamThe first parameter of WM_ACTIVATE.
Ghidra address:
BRD3D: 0x10077090
Ghidra address:
BRGlide: 0x10070370

◆ HandleWindowActivate()

LRESULT HandleWindowActivate ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_ACTIVATE.

Parameters
hWndThe main window.
wParamThe state of the activation.
lParamThe other window.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a070

◆ HandleWindowActivateApp()

LRESULT HandleWindowActivateApp ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_ACTIVATEAPP.

Parameters
hWndThe main window.
wParamWhether the application is activated.
lParamThe thread of the other application.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a090
Ghidra address:
BRGlide: 0x10019350

◆ HandleWindowClose()

LRESULT HandleWindowClose ( HWND hWnd)

Handle WM_CLOSE.

Parameters
hWndThe main window.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a190

◆ HandleWindowCommand()

LRESULT HandleWindowCommand ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_COMMAND.

Parameters
hWndThe main window.
wParamThe command.
lParamThe control of the command.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a1a0

◆ HandleWindowDestroy()

LRESULT HandleWindowDestroy ( HWND hWnd)

Handle WM_DESTROY.

Parameters
hWndThe main window.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a1d0

◆ HandleDisplayChange()

LRESULT HandleDisplayChange ( HWND hWnd)

Handle WM_DISPLAYCHANGE.

Parameters
hWndThe main window.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a1f0

◆ HandleWindowEraseBackground()

LRESULT HandleWindowEraseBackground ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_ERASEBKGND.

Parameters
hWndThe main window.
wParamThe device context.
lParamNot used by the message.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a210

◆ HandleWindowEnterMenuLoop()

LRESULT HandleWindowEnterMenuLoop ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_ENTERMENULOOP.

Parameters
hWndThe main window.
wParamWhether the menu is a popup.
lParamNot used by the message.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a260

◆ HandleWindowExitMenuLoop()

LRESULT HandleWindowExitMenuLoop ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_EXITMENULOOP.

Parameters
hWndThe main window.
wParamWhether the menu is a popup.
lParamNot used by the message.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a2b0

◆ HandleWindowGetMinMaxInfo()

LRESULT HandleWindowGetMinMaxInfo ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_GETMINMAXINFO.

Parameters
hWndThe main window.
wParamNot used by the message.
lParamThe MINMAXINFO of the window.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a300

◆ HandleWindowMove()

LRESULT HandleWindowMove ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_MOVE.

Parameters
hWndThe main window.
wParamNot used by the message.
lParamThe position of the client area.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a380

◆ HandleWindowNcPaint()

LRESULT HandleWindowNcPaint ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_NCPAINT.

Parameters
hWndThe main window.
wParamThe region to paint.
lParamNot used by the message.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a3a0

◆ HandleWindowSetCursor()

LRESULT HandleWindowSetCursor ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_SETCURSOR.

Parameters
hWndThe main window.
wParamThe window under the cursor.
lParamThe hit test and the message.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a3f0

◆ HandleWindowSize()

LRESULT HandleWindowSize ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_SIZE.

Parameters
hWndThe main window.
wParamThe kind of resize.
lParamThe size of the client area.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a450

◆ HandleWindowSysCommand()

LRESULT HandleWindowSysCommand ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_SYSCOMMAND.

Parameters
hWndThe main window.
wParamThe command.
lParamThe position of the cursor.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a4e0
Ghidra address:
BRGlide: 0x10019480

◆ HandleWindowPosChanging()

LRESULT HandleWindowPosChanging ( HWND hWnd,
WPARAM wParam,
LPARAM lParam )

Handle WM_WINDOWPOSCHANGING.

Parameters
hWndThe main window.
wParamNot used by the message.
lParamThe WINDOWPOS of the window.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a590

◆ AttachRenderDeviceToWindow()

LRESULT AttachRenderDeviceToWindow ( HWND hWnd,
LPARAM lParam )

Store the renderer that has created its objects in the user data of its window.

Parameters
hWndThe main window.
lParamThe renderer.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a6a0

◆ DetachRenderDeviceFromWindow()

LRESULT DetachRenderDeviceFromWindow ( HWND hWnd,
LPARAM lParam )

Clear the renderer that is releasing its objects from the user data of its window.

Parameters
hWndThe main window.
lParamThe renderer.
Returns
The result of the message.
Ghidra address:
BRD3D: 0x1007a6f0

◆ CreateRenderWindow()

HRESULT CreateRenderWindow ( DWORD dwExStyle,
LPCSTR pszClassName,
LPCSTR pszWindowName,
DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hParent,
HMENU hMenu,
HINSTANCE hInstance,
LPVOID pParam,
GUID * pDriverGuid,
int nUnused,
HWND * phWnd,
DirectDrawRenderer ** ppRenderer )

Create a window and the renderer that draws into it, and show the window.

A renderer that does not start is reported in a message box and destroys the window.

Parameters
dwExStyleThe extended style of the window.
pszClassNameThe class of the window.
pszWindowNameThe title of the window.
dwStyleThe style of the window.
xThe left of the window.
yThe top of the window.
nWidthThe width of the window.
nHeightThe height of the window.
hParentThe parent, or nullptr for the desktop.
hMenuThe menu of the window.
hInstanceThe module of the class, or nullptr for the game.
pParamThe parameter of the creation of the window.
pDriverGuidThe DirectDraw driver, or nullptr for the default.
nUnusedNot read.
phWndReceives the window, unless nullptr.
ppRendererReceives the renderer, unless nullptr.
Returns
S_OK, E_INVALIDARG without a class, E_OUTOFMEMORY, E_FAIL for a window that was not created, or the error of the renderer.
Ghidra address:
BRD3D: 0x10079a90

◆ DestroyMainWindow()

int DestroyMainWindow ( void )

Destroy the main window and its renderer.

Returns
0.
Ghidra address:
BRD3D: 0x10079c40

◆ DispatchGameStateFrame()

int DispatchGameStateFrame ( void )

Run a frame of the current state of the game.

Returns
The result of the routine of the state.
Ghidra address:
BRD3D: 0x1002f8f0
Ghidra address:
BRGlide: 0x1001cf80

◆ GetDXVersion()

void GetDXVersion ( unsigned * pdwVersion,
unsigned * pdwPlatform )

Query the installed DirectX version by creating its objects in turn.

Parameters
pdwVersionReceives the version, 0x600 for DirectX 6, or 0 when DirectDraw is missing.
pdwPlatformReceives the platform of Windows (VER_PLATFORM_WIN32_WINDOWS or VER_PLATFORM_WIN32_NT), or 0 when the version cannot be read.
Ghidra address:
BRD3D: 0x10030210
Ghidra address:
BRGlide: 0x1001d8a0

◆ FocusExistingBossRallyInstance()

bool FocusExistingBossRallyInstance ( void )

Bring an instance of the game that is already running to the front.

Returns
Whether this instance is the only one and may start.
Ghidra address:
BRD3D: 0x10007b10
Ghidra address:
BRGlide: 0x10007e80

◆ RefreshTotalPhysicalMemory()

void RefreshTotalPhysicalMemory ( void )

Read the amount of physical memory the machine has.

Ghidra address:
BRD3D: 0x10007ba0
Ghidra address:
BRGlide: 0x10007f10

◆ ReadInstallDirectoryFromRegistry()

void ReadInstallDirectoryFromRegistry ( void )

Read the install directory from the registry into g_szInstallDirectory.

Ghidra address:
BRD3D: 0x1006a8a0
Ghidra address:
BRGlide: 0x10063860

◆ InitializeApplication()

bool InitializeApplication ( void )

Start the application: refuse DirectX before version 6 and a second instance, then create the main window.

Only the Direct3D library has it.

Returns
Whether the application started.
Ghidra address:
BRD3D: 0x100796b0

◆ CreateMainWindow()

bool CreateMainWindow ( void )

Create the main window.

Returns
Whether the window was created.
Ghidra address:
BRD3D: 0x100798f0
Ghidra address:
BRGlide: 0x10019670

◆ RunMessageLoop()

void RunMessageLoop ( void )

Run the message loop until the game quits.

Ghidra address:
BRD3D: 0x10079740
Ghidra address:
BRGlide: 0x10019730

◆ ShutdownMainWindow()

void ShutdownMainWindow ( void )

Destroy the main window.

Only the Direct3D library has it.

Ghidra address:
BRD3D: 0x10079720

Variable Documentation

◆ g_dwAppExitCode

int g_dwAppExitCode
extern

Exit code RallyMain() returns to the launcher.

Ghidra address:
BRD3D: 0x118abe2c
Ghidra address:
BRGlide: 0x105ccbc0

◆ g_szInstallDirectory

char g_szInstallDirectory[]
extern

Directory the game is installed in, read from the registry, with a trailing separator.

Ghidra address:
BRD3D: 0x10b501e0
Ghidra address:
BRGlide: 0x10b73540

◆ g_hRallyMainInstance

HINSTANCE g_hRallyMainInstance
extern

Arguments of WinMain() as the launcher passed them to RallyMain().

Only the Glide library stores them.

Ghidra address:
BRGlide: 0x105bc730

◆ g_hRallyMainPrevInstance

HINSTANCE g_hRallyMainPrevInstance
extern

The previous application instance passed to RallyMain().

Ghidra address:
BRGlide: 0x105bc734

◆ g_pszRallyMainCmdLine

LPSTR g_pszRallyMainCmdLine
extern

The command line passed to RallyMain().

Ghidra address:
BRGlide: 0x105bc738

◆ g_nRallyMainCmdShow

int g_nRallyMainCmdShow
extern

The initial window display mode passed to RallyMain().

Ghidra address:
BRGlide: 0x105bc73c

◆ g_dwTotalPhysicalMemory

size_t g_dwTotalPhysicalMemory
extern

The amount of physical memory of the machine, in bytes.

Ghidra address:
BRD3D: 0x1022b348
Ghidra address:
BRGlide: 0x10226e78

◆ g_hAppInstance

HINSTANCE g_hAppInstance
extern

The module of the game, set by InitializeApplication().

Ghidra address:
BRD3D: 0x118abe20
Ghidra address:
BRGlide: 0x118eef1c

◆ g_hMainWindow

HWND g_hMainWindow
extern

The main window.

Ghidra address:
BRD3D: 0x10680584
Ghidra address:
BRGlide: 0x105bc72c

◆ g_hAccelTable

HACCEL g_hAccelTable
extern

The keyboard accelerators of the main window.

Ghidra address:
BRD3D: 0x118abe24

◆ g_dwAppActive

WPARAM g_dwAppActive
extern

The first parameter of the last WM_ACTIVATE.

A frame runs only while it and g_dwActivateState are set and g_dwActivateMinimized is not.

Ghidra address:
BRD3D: 0x10680598
Ghidra address:
BRGlide: 0x105bc740

◆ g_dwActivateState

int g_dwActivateState
extern

How the main window is activated, WA_INACTIVE, WA_ACTIVE, or WA_CLICKACTIVE.

Ghidra address:
BRD3D: 0x1068059c
Ghidra address:
BRGlide: 0x105bc744

◆ g_dwActivateMinimized

int g_dwActivateMinimized
extern

Whether the main window is minimised.

Ghidra address:
BRD3D: 0x106805a0
Ghidra address:
BRGlide: 0x105bc748

◆ g_dwGameState

int g_dwGameState
extern

The state of the game, an index into g_apfnGameStateHandlers.

Ghidra address:
BRD3D: 0x10690a14
Ghidra address:
BRGlide: 0x105ccbbc

◆ g_apfnGameStateHandlers

int(* g_apfnGameStateHandlers[])(void) ( void )
extern

The routine that runs a frame of each state of the game.

Ghidra address:
BRD3D: 0x100aa5b0
Ghidra address:
BRGlide: 0x100a9900

◆ g_dwGameModeFrameCounter

int g_dwGameModeFrameCounter
extern

The frames the mode of the game has run.

Ghidra address:
BRD3D: 0x10690a10
Ghidra address:
BRGlide: 0x105ccbb8

◆ g_dwGameModeContinue

int g_dwGameModeContinue
extern

What GameState_RunGameMode() returns, 1 at the start.

Ghidra address:
BRD3D: 0x100aa5a8
Ghidra address:
BRGlide: 0x100a98f8

◆ g_hArrowCursor

HCURSOR g_hArrowCursor
extern

The arrow cursor of the main window.

Ghidra address:
BRD3D: 0x118abe28

◆ g_pMainRenderWindow

DirectDrawRenderer* g_pMainRenderWindow
extern

The renderer of the main window.

Ghidra address:
BRD3D: 0x1027736c