ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Oni_Symbols.h
(Generate patch)

Comparing Daodan/src/Oni_Symbols.h (file contents):
Revision 694 by alloc, Fri Mar 8 00:31:30 2013 UTC vs.
Revision 705 by alloc, Tue Mar 19 15:00:23 2013 UTC

# Line 31 | Line 31
31   // Console text fade timeout
32   #define COgFadeTimeValue        (*((uint32_t*)0x00533f68))
33  
34 < // Some kind of graphics context?
35 < #define g_Instance                      (*((HINSTANCE*)0x0061F9E4))
34 > // Game termination flag (ONiRunGame loops on it).
35 > #define ONgTerminateGame        (*((UUtBool*)0x00630ffd))
36 >
37 > // Window manager is running (drawing and updating windows).
38 > #define WMgActive                       (*((UUtBool*)0x005e99a0))
39 >
40 > // Set by WinMain, used by UUrPlatform_Initialize and ONrPlatform_Initialize,
41 > // which copies it into ONgPlatformData.
42 > #define ONgInstance                     (*((HINSTANCE*)0x0061f9e4))
43 >
44 > // Keeps initial gamma ramp value (before any change).
45 > #define GLgInitialGammaRamp     (((M3tWin32GammaRamp*)0x0055fdfc))
46  
47 < // OpenGL Gamma related
48 < #define gl_gamma_ramp           (((M3tWin32GammaRamp*)0x0055fdfc))
39 <
40 < // OpenGL Gamma related
41 < #define gl_gamma_ramp_valid     (*((int*)0x005603fc))
47 > // Nonzero when gamma ramp was successfully read into GLgInitialGammaRamp.
48 > #define GLgGammaRampValid       (*((int*)0x005603fc))
49  
50   // OpenGL: list of pointers to opengl32.dll functions (and a few functions from GL extensions)
51   #define gl_api                          (*((gl_api_t**)0x00560604))
52  
53   // OpenGL render engine descriptor (resolutions, flags, context methods)
54 < #define gl_eng                          (*((gl_engine_t**)0x00560600))
54 > #define gl                              (*((gl_engine_t**)0x00560600))
55 >
56 > // Initial display mode (saved by gl_library_is_loaded).
57 > #define GLgInitialMode          (*((DEVMODE*)0x0055fd60))
58  
59 < // Value of -switch/-noswitch?
59 > // False to prevent Oni from changing display settings (however Bink
60 > // player does not respect this setting).
61   #define M3gResolutionSwitch     (*((char*)0x00531634))
62  
63   // Startup.txt file handle
# Line 56 | Line 67
67   #define ONgGameState            (*((GameState**)0x005ece7c))
68  
69   // Current ONtPlatformData
70 < #define ONgPlatformData         (*((ONtPlatformData*)0x0053100c))
70 > #define ONgPlatformData         (*((ONtPlatformData*)0x00631008))
71  
72   // Load non levelX_final-files yes/no
73   #define opt_ignore_private_data (*((char*)0x006370f0))
# Line 103 | Line 114 | DefFunc(LRESULT, ONrPlatform_WindowProc,
114   DefFunc(unsigned int, gl_enumerate_valid_display_modes, ONICALL, (M3tDisplayMode modes[16]), 0x004083a0);
115   DefFunc(int, gl_platform_set_pixel_format, ONICALL, (HDC hdc), 0x00407b50);
116  
117 < // Original graphics initialization method patched to use "daodangl_platform_initialize" instead if daodangl is used
118 < DefFunc(int, gl_platform_initialize, ONICALL, (), 0x00407da0);
117 > // Original graphics initialization/cleanup functions patched to use
118 > // DD_GLrPlatform_Initialize/DD_GLrPlatform_Dispoose instead if daodangl is used.
119 > DefFunc(UUtBool, gl_platform_initialize, ONICALL, (void), 0x00407da0);
120 > DefFunc(void, gl_platform_dispose, ONICALL, (void), 0x408210);
121  
122   // Retrieve gamma value from settings
123   DefFunc(float, ONrPersist_GetGamma, ONICALL, (), 0x0050f450);
# Line 198 | Line 211 | DefFunc(void, AI2rDisplayDebuggingInfo,
211   DefFunc(uint32_t, M3rTextureMap_New, ONICALL, (short width, short height, int type, int allocated, int flags, char* name, void** output), 0x041EB00);
212  
213   // Make a dialog element (in)visible and change its position
214 < DefFunc(void, WMrWindow_SetVisible, ONICALL, (int window, int visibility), 0x00475a10);
215 < DefFunc(void, WMrWindow_SetLocation, ONICALL, (int window, int x, int y), 0x004756d0);
214 > DefFunc(void, WMrWindow_SetVisible, ONICALL, (WMtWindow* window, int visibility), 0x00475a10);
215 > DefFunc(void, WMrWindow_SetLocation, ONICALL, (WMtWindow* window, int x, int y), 0x004756d0);
216 >
217 > // Plays movie using Bink blitting method (ie., non-OpenGL blitting).
218 > DefFunc(void, ONrMovie_Play, ONICALL, (const char* movie, int unknown), 0x004d5580);
219 >
220 > // Sets minimum and maximum values for a slider control.
221 > DefFunc(void, WMrSlider_SetRange, ONICALL, (WMtWindow* window, int min_value, int max_value), 0x00472650);
222 >
223 > // Enables or disables window.
224 > DefFunc(void, WMrWindow_SetEnabled, ONICALL, (WMtWindow* window, UUtBool enabled), 0x00475580);
225 >
226 > // Sets gamma to specified factor (0.0 .. 1.0).
227 > DefFunc(void, M3rSetGamma, ONICALL, (float factor), 0x00407a60);
228 >
229 > // Resets gl_api pointers, unloads OPENGL32.DLL.
230 > DefFunc(void, gl_unload_library, ONICALL, (void), 0x0040ac40);
231 >
232 > // Notifies platform-specific local input implementation about internal (ie.,
233 > // real) input mode change.
234 > DefFunc(void, LIrPlatform_Mode_Set, ONICALL, (unsigned int active_mode), 0x00402cf0);
235 >
236 > // Terminates platform-specific local-input.
237 > DefFunc(void, LIrPlatform_Terminate, ONICALL, (void), 0x00403620);
238  
239   #undef DefFunc
240  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)