source: Daodan/src/Oni/Symbols_Var.h@ 1080

Last change on this file since 1080 was 994, checked in by alloc, 11 years ago

Daodan:

  • Fix #80
  • Reorganization of file hierarchy
File size: 2.7 KB
RevLine 
[992]1#ifndef ONI_H
2#error Do not include this file directly, include Oni/Oni.h instead!
3#endif
4
5#ifndef SYMBOLS_VAR_H
6#define SYMBOLS_VAR_H
7
8//Define variables of Oni: #define VARNAME (*((TYPE*)ADDRESS))
9
10// AIs are deaf (ger: "taub")
11#define ai2_deaf (*((onibool*)0x005ec0c1))
12
13// Option "debug" ... but what does it do?
[994]14#define AKgDebug_DebugMaps (*((onibool*)0x006b2204))
[992]15
16// Option "debugfiles" ... but what does it do?
[993]17#define BFgDebugFileEnable (*((onibool*)0x0055c8d0))
[992]18
19// Command line instance
20#define COgCommandLine (*((void**)0x00571b74))
21#define COgConsoleLines (*((void**)0x005cb468))
22
23// Default console text color
24#define COgDefaultTextShade (*((uint32_t*)0x00533f70))
25
26// Default console text shadow color
27#define COgDefaultTextShadow (*((uint32_t*)0x00533f74))
28
29// Console text fade timeout
30#define COgFadeTimeValue (*((uint32_t*)0x00533f68))
31
32// Game termination flag (ONiRunGame loops on it).
33#define ONgTerminateGame (*((UUtBool*)0x00630ffd))
34
35// Window manager is running (drawing and updating windows).
36#define WMgActive (*((UUtBool*)0x005e99a0))
37
38// Set by WinMain, used by UUrPlatform_Initialize and ONrPlatform_Initialize,
39// which copies it into ONgPlatformData.
40#define ONgInstance (*((HINSTANCE*)0x0061f9e4))
41
42// Keeps initial gamma ramp value (before any change).
43#define GLgInitialGammaRamp (((M3tWin32GammaRamp*)0x0055fdfc))
44
45// Nonzero when gamma ramp was successfully read into GLgInitialGammaRamp.
46#define GLgGammaRampValid (*((int*)0x005603fc))
47
48// OpenGL: list of pointers to opengl32.dll functions (and a few functions from GL extensions)
49#define gl_api (*((gl_api_t**)0x00560604))
50
51// OpenGL render engine descriptor (resolutions, flags, context methods)
52#define gl (*((gl_engine_t**)0x00560600))
53
54// Initial display mode (saved by gl_library_is_loaded).
55#define GLgInitialMode (*((DEVMODE*)0x0055fd60))
56
57// False to prevent Oni from changing display settings (however Bink
58// player does not respect this setting).
[993]59#define M3gResolutionSwitch (*((onibool*)0x00531634))
[992]60
61// Startup.txt file handle
62#define ONgFileStartup (*((FILE**)0x005711b8))
63
64// Current GameState
65#define ONgGameState (*((GameState**)0x005ece7c))
66
67// Current ONtPlatformData
68#define ONgPlatformData (*((ONtPlatformData*)0x00631008))
69
70// Load non levelX_final-files yes/no
[993]71#define opt_ignore_private_data (*((onibool*)0x006370f0))
[992]72
73// Play sound yes/no
[993]74#define opt_sound (*((onibool*)0x006370fc))
[992]75
76// Option "findsounds" ... but what does it do?
[993]77#define SSgSearchOnDisk (*((onibool*)0x005eb758))
[992]78
79// OBJgTriggerVolume_Visible - bsl var to show trigger volumes
80#define OBJgTriggerVolume_Visible (*((bool*)0x005ec6c4))
81
82//#define OBJgFlag_DrawFlags (*((void*)0x005ec624))
83//#define OBJgFlag_ViewPrefix (*((void*)0x005ec650))
84//#define OBJgFlag_DrawNameDistance (*((void*)0x005ec634))
85
86#endif
Note: See TracBrowser for help on using the repository browser.