ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSVC/Daodan_Utility.c
(Generate patch)

Comparing Daodan/MSVC/Daodan_Utility.c (file contents):
Revision 571 by gumby, Fri Jun 25 03:52:34 2010 UTC vs.
Revision 572 by gumby, Sun Aug 29 19:13:47 2010 UTC

# Line 87 | Line 87 | double ONICALL DDrMachineTime_High_Frequ
87   //      return Frequency.QuadPart;
88   }
89          
90 < void ONICALL DDrWeapon2Message(int* weapon, void* output_ptr) {
90 > void ONICALL DDrWeapon2Message(int* weapon, void* output_ptr)
91 > {
92          char buffer[128] = {0};
93          char* weapon_string = (char*)(*(weapon + 1)+0x5C);
94          int16_t ammo = *(int16_t *)((int)weapon + 0x56);
# Line 106 | Line 107 | void ONICALL DDrWeapon2Message(int* weap
107   }
108  
109  
110 < void ONICALL DDrMake_Weapon_Message(char* weapon_string, char* output_ptr) {
110 > void ONICALL DDrMake_Weapon_Message(char* weapon_string, char* output_ptr)
111 > {
112          char* weapon_msg = NULL;        //The normal "You have recieved X" message.
113          char weapon_name[64] = {'\0'};  //The stripped weapon name
114          //TODO, someday: dynamically detect different keybindings.
# Line 124 | Line 126 | void ONICALL DDrMake_Weapon_Message(char
126          }
127          
128   }
129 +        typedef struct
130 +        {
131 +                uint16_t x;
132 +                uint16_t y;
133 +                
134 +        } IMtPoint2D;
135 +                IMtPoint2D Point = {256, 250};
136 +                extern void* TSrTest;
137 + void ONICALL DDrText_Hook()
138 + {
139 +        if(TSrTest)
140 +        {
141 +                TSrContext_DrawText(TSrTest, "FINALLY THIS BLOODY TEXT THING WORKS\n Gotta call it at the right point...", 128, 0, &Point);    
142 +        }
143 + COrConsole_StatusLine_Display();
144 +
145 + }

Diff Legend

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