Changeset 322 for Daodan


Ignore:
Timestamp:
May 15, 2009, 1:45:19 PM (16 years ago)
Author:
rossy
Message:
 
Location:
Daodan
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/BFW_Utility.h

    r276 r322  
    1111double  ONICALL UUrMachineTime_High_Frequency();
    1212int64_t ONICALL UUrMachineTime_Sixtieths();
     13void    ONICALL UUrPlatform_Initialize();
     14void    ONICALL UUrPlatform_Terminate();
    1315
    1416extern FILE* ONgFileStartup;
  • Daodan/src/Daodan.c

    r297 r322  
    4545        DDrPatch_Int16 (OniExe + 0x0011ab0e, 0x12c0);
    4646       
    47         // Patch for alt-tab and the start menu
    48         DDrPatch_Byte  (OniExe + 0x00026010, 0xC3);
    4947       
    5048        // Hackish fix for Konoko not kicking guns
     
    5856//      const char throwtest_patch[] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };
    5957//      DDrPatch_Const(OniExe + 0x000dc190, throwtest_patch);
     58       
     59        // Disable UUrPlatform_Initalize/Terminate, this enables the Alt-Tab and the Windows key but has the possible side effect of allowing the screensaver to enable itself in-game.
     60        DDrPatch_Byte  ((void*)UUrPlatform_Initialize, 0xC3);
     61        DDrPatch_Byte  ((void*)UUrPlatform_Terminate, 0xC3);
     62       
     63        // Unlocks particle action disabling/enabling bits for all events. (Will be controlled by a command line switch when I figure out how to do that without Win32 hacks.)
     64        //DDrPatch_Int16 (OniExe + 0x001b184, 0x9090);
    6065       
    6166        return true;
  • Daodan/src/Oni.h

    r273 r322  
    33#define ONI_H
    44
     5typedef struct
     6{
     7        HINSTANCE Instance;
     8        HWND Window;
     9} ONtPlatformData;
     10
    511void __cdecl ONiMain(int ArgCount, char *ArgList[]);
     12short ONICALL ONrPlatform_Initialize(ONtPlatformData *PlatformData);
    613
    714#endif
  • Daodan/src/Oni_Symbols.S

    r297 r322  
    2020symbol ( _ONgFileStartup                     , 0x001711b8 )
    2121
     22symbol ( @UUrPlatform_Initialize@0           , 0x00026010 )
     23symbol ( @UUrPlatform_Terminate@0            , 0x00026310 )
     24
    2225// OpenGL
    2326symbol ( @gl_enumerate_valid_display_modes@4 , 0x000083a0 )
Note: See TracChangeset for help on using the changeset viewer.