Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
winmain.h
Go to the documentation of this file.
1/**
2 * @file
3 * @ingroup headers
4 * @brief Declarations for the Win32 shell.
5 *
6 * The shell (winmain.c) includes the common headers itself instead of wc1.h.
7 * It does not use main.h, because its configuration reader stores single
8 * bytes into three of main.c's option flags and declares those flags as
9 * bytes, as the original port did.
10 */
11#ifndef WINMAIN_H
12#define WINMAIN_H
13
14#include "wc1base.h"
15#include "wcdata.h"
16#include "globals.h"
17
18/* Shell state defined in winmain.c. */
19extern HDC hMainWindowDC; /* 0x005a8a30 */
20
21/* main.c option flags, as the shell's configuration reader stores them. */
22extern char nOriginDevUnlock; /* 0x00469ff4 */
23extern char bPlayerVulnerable; /* 0x00469ffc */
24extern char bPlayerCollisionResponse; /* 0x0046a000 */
25
26#include "wc1funcs.h"
27#include "wc1extern.h"
28
29#endif /* WINMAIN_H */
Globals shared between compilation units.
int bPlayerCollisionResponse
Definition main.c:37
int bPlayerVulnerable
Definition main.c:36
int nOriginDevUnlock
Definition main.c:34
Common types, macros and utility prototypes.
Three prototypes that nothing calls, kept for the exact build.
Prototypes of every reconstructed function, in address order.
Game data enumerations and on-disk record layouts.
HDC hMainWindowDC
Definition winmain.c:52