Changeset 983 for Daodan/src/patches


Ignore:
Timestamp:
Mar 16, 2014, 9:06:52 PM (11 years ago)
Author:
alloc
Message:

Daodan:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/patches/Patches.c

    r896 r983  
    9090//this was broken
    9191FILE** _UUgError_WarningFile = (FILE**)0x005711B4;
    92 FILE *__fastcall DDrPrintWarning(int filename, int linenumber, unsigned __int16 errornum, int message)
    93 {
    94 
     92FILE* ONICALL DDrPrintWarning(int filename, int linenumber, unsigned __int16 errornum, int message)
     93{
    9594        FILE *v4; // eax@1
    9695        FILE *result; // eax@4
     
    121120}
    122121
     122_COrTextArea_Resize Oni_COrTextArea_Resize = (_COrTextArea_Resize)0;
     123int16_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}
    123129
    124130int DD_Patch_DebugNameTextureInit(short width, short height, int type, int allocated, int flags, char* name, void** output)
     
    320326}
    321327
     328void DD_Patch_HighresConsole() {
     329        Oni_COrTextArea_Resize = DDrPatch_MakeDetour((void*)COrTextArea_Resize, (void*)DD_COrTextArea_Resize);
     330}
     331
    322332// Hackish fix for Konoko not kicking guns
    323333// Don't use this, it breaks stairs.
     
    594604        if (patch_hdscreens_lowres)
    595605                DD_Patch_HDScreens_LowRes();
     606
     607        if (patch_highres_console)
     608                DD_Patch_HighresConsole();
    596609       
    597610        if (patch_kickguns)
Note: See TracChangeset for help on using the changeset viewer.