| 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 |
| 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 |
|
{ |
| 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() |
| 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(); |