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 986 by alloc, Tue Mar 18 00:30:15 2014 UTC vs.
Revision 987 by alloc, Wed Mar 19 12:44:30 2014 UTC

# Line 20 | Line 20
20   // Option "debugfiles" ... but what does it do?
21   #define BFgDebugFileEnable      (*((bool*)0x0055c8d0))
22  
23 // Parameter 1 to COrTextArea_Print. Context pointer?
24 #define COgConsoleLines         (*((uint32_t*)0x005cb468))
25
23   // Command line instance
24   #define COgCommandLine          (*((void**)0x00571b74))
25   #define COgConsoleLines         (*((void**)0x005cb468))
# Line 98 | Line 95 | typedef char           ( ONICALL *OBJtEnumCallbac
95  
96  
97  
98 < #define DefFunc( type, name, callingconvention, args, address) typedef type ( callingconvention * _##name ) args; static _##name name = (_##name)address
98 > #define DefFunc( type, name, callingconvention, args, address) typedef type ( callingconvention * _##name ) args; static const _##name name = (_##name)address
99  
100   // Orig timing functions, replaced by DDrMachineTime_* if option "usegettickcount" is enabled
101   DefFunc(int64_t, UUrMachineTime_High, ONICALL, (), 0x04026480);
# Line 146 | Line 143 | DefFunc(int16_t, ONrGameState_NewCharact
143   DefFunc(void, ONrGameState_DeleteCharacter, ONICALL, (Character *inCharacter), 0x004DC480);
144  
145   DefFunc(void, ONrGameState_Timer_Start, ONICALL, (char* function, int time), 0x004FD370);
146 + DefFunc(void, ONrGameState_HandleUtilityInput, ONICALL, (const void* inInput), 0x004f6200);
147 + DefFunc(uint8_t, ONrDebugKey_WentDown, ONICALL, (uint32_t inKey), 0x005050d0);
148  
149   // Get active (player?) character
150   DefFunc(ActiveCharacter*, ONrGetActiveCharacter, ONICALL, (void* CharacterPtr), 0x004f1180);
# Line 159 | Line 158 | DefFunc(void, ONrCorpse_Create, ONICALL,
158  
159  
160   // Print message to console
161 < DefFunc(void, COrTextArea_Print, ONICALL, (uint32_t area, uint32_t priority, uint32_t textshade, uint32_t textshadowshade, const char* text, uint32_t unk_alwaws_0, uint32_t fadetime), 0x00431340);
161 > DefFunc(void, COrTextArea_Print, ONICALL, (void* area, uint32_t priority, uint32_t textshade, uint32_t textshadowshade, const char* text, uint32_t unk_alwaws_0, uint32_t fadetime), 0x00431340);
162   DefFunc(int16_t, COrTextArea_Resize, ONICALL, (void* inTextArea, UUtRect* inBounds, int16_t inNumTextEntries), 0x00431460);
163  
164   // Original cheat function
# Line 203 | Line 202 | DefFunc(short, TMrInstance_GetDataPtr_By
202   DefFunc(uint32_t, TMrInstance_GetTagCount, ONICALL, (int tag), 0x004236F0);
203  
204   // Draw text on the screen
205 < DefFunc(int16_t, TSrContext_DrawText, ONICALL, (uint32_t TSrContext, char* Text, char alpha, uint32_t usuallyzero, void* pRect), 0x0042DF00);
205 > DefFunc(int16_t, TSrContext_DrawText, ONICALL, (void* TSrContext, char* Text, char alpha, uint32_t usuallyzero, void* pRect), 0x0042DF00);
206   DefFunc(int16_t, TSrContext_New, ONICALL, (void* FontInstance, int size, int hthsik1,int hthsik2,int hthsik3, void* TSrContext), 0x0042EA30);
207   DefFunc(int16_t, TSrContext_SetFontSize, ONICALL, (void* ioTextContext, uint16_t inSize), 0x0042ED50);
208   DefFunc(int16_t, TSrContext_SetShade, ONICALL, (void* ioTextContext, uint32_t inShade), 0x0042EE50);

Diff Legend

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