Changeset 297 for Daodan/src/Daodan.c


Ignore:
Timestamp:
Apr 17, 2009, 3:31:04 PM (16 years ago)
Author:
rossy
Message:

some things that probably dont work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan.c

    r276 r297  
    55#include "Oni.h"
    66#include "BFW_Utility.h"
     7
     8#include "oni_gl.h"
     9#include "daodan_gl.h"
    710
    811HMODULE DDrDLLModule;
     
    4245        DDrPatch_Int16 (OniExe + 0x0011ab0e, 0x12c0);
    4346       
     47        // Patch for alt-tab and the start menu
     48        DDrPatch_Byte  (OniExe + 0x00026010, 0xC3);
     49       
    4450        // Hackish fix for Konoko not kicking guns
    4551//      const char kickgun_patch[] = { 0x00, 0x05, 0x00, 0x00, 0x00, 0xC7, 0x05, 0x1C, 0xC9, 0x5E, 0x00, 0x70, 0xB8, 0x43, 0x00, 0xC7, 0x05, 0x20, 0xC9, 0x5E, 0x00, 0x20, 0xBE, 0x43 };
     
    6369        DDrPatch_MakeJump(UUrStartupMessage, DDrStartupMessage);
    6470       
    65         // Test performance patch
     71        // Daodan device mode enumeration function
     72        DDrPatch_MakeJump(gl_enumerate_valid_display_modes, daodan_enumerate_valid_display_modes);
     73       
     74        // Performance patch
    6675        DDrPatch_MakeJump(UUrMachineTime_High, DDrMachineTime_High);
    6776        DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency);
Note: See TracChangeset for help on using the changeset viewer.