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

Comparing Daodan/src/patches/Patches.c (file contents):
Revision 896 by alloc, Sun Aug 11 22:42:40 2013 UTC vs.
Revision 983 by alloc, Sun Mar 16 20:06:52 2014 UTC

# Line 89 | Line 89 | void ONICALL DDrGame_Init()
89  
90   //this was broken
91   FILE** _UUgError_WarningFile = (FILE**)0x005711B4;
92 < FILE *__fastcall DDrPrintWarning(int filename, int linenumber, unsigned __int16 errornum, int message)
92 > FILE* ONICALL DDrPrintWarning(int filename, int linenumber, unsigned __int16 errornum, int message)
93   {
94
94          FILE *v4; // eax@1
95          FILE *result; // eax@4
96          char v6[512]; // [sp+0h] [bp-100h]@1
# Line 120 | Line 119 | FILE *__fastcall DDrPrintWarning(int fil
119          return result;
120   }
121  
122 + _COrTextArea_Resize Oni_COrTextArea_Resize = (_COrTextArea_Resize)0;
123 + int16_t ONICALL DD_COrTextArea_Resize(void* inTextArea, UUtRect* inBounds, int16_t inNumTextEntries) {
124 +        if (inTextArea == COgCommandLine) {
125 +                inBounds->top -= 5;
126 +        }
127 +        return Oni_COrTextArea_Resize(inTextArea, inBounds, inNumTextEntries);
128 + }
129  
130   int DD_Patch_DebugNameTextureInit(short width, short height, int type, int allocated, int flags, char* name, void** output)
131   {
# Line 319 | Line 325 | void DD_Patch_HDScreens_LowRes()
325          DDrPatch_MakeJump((void*)M3rDraw_BigBitmap, (void*)DD_M3rDraw_BigBitmap);
326   }
327  
328 + void DD_Patch_HighresConsole() {
329 +        Oni_COrTextArea_Resize = DDrPatch_MakeDetour((void*)COrTextArea_Resize, (void*)DD_COrTextArea_Resize);
330 + }
331 +
332   // Hackish fix for Konoko not kicking guns
333   // Don't use this, it breaks stairs.
334   void DD_Patch_KickGuns()
# Line 593 | Line 603 | bool DD_Patch_Init()
603  
604          if (patch_hdscreens_lowres)
605                  DD_Patch_HDScreens_LowRes();
606 +
607 +        if (patch_highres_console)
608 +                DD_Patch_HighresConsole();
609          
610          if (patch_kickguns)
611                  DD_Patch_KickGuns();

Diff Legend

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