Changeset 297


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

some things that probably dont work

Location:
Daodan
Files:
6 added
5 edited

Legend:

Unmodified
Added
Removed
  • Daodan/build.bat

    r275 r297  
    1 gcc -O3 -s -Wall -shared -fomit-frame-pointer -o build\binkw32.dll src\Oni_Symbols.S src\Daodan.c src\Daodan_DLLStubs.c src\Daodan_Patch.c src\Daodan_Utility.c
     1gcc -O3 -s -Wall -shared -fomit-frame-pointer -o build\binkw32.dll src\Oni_Symbols.S src\Daodan.c src\Daodan_DLLStubs.c src\Daodan_Patch.c src\Daodan_Utility.c src\daodan_gl.c
  • 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);
  • Daodan/src/Daodan_Utility.c

    r276 r297  
    2828}
    2929
    30 int64_t DDrMachineTime_Sixtieths()
     30int64_t ONICALL DDrMachineTime_Sixtieths()
    3131{
    3232        static int64_t LastTime, Time;
     
    4646}
    4747
    48 int64_t DDrMachineTime_High()
     48int64_t ONICALL DDrMachineTime_High()
    4949{
    5050//      LARGE_INTEGER PerfCount;
     
    5757}
    5858
    59 double DDrMachineTime_High_Frequency()
     59double ONICALL DDrMachineTime_High_Frequency()
    6060{
    6161//      LARGE_INTEGER Frequency;
  • Daodan/src/Oni_Symbols.S

    r276 r297  
    22
    33// MSVC6.0 stdlib
    4 symbol ( _oni_malloc                      , 0x0011fc24 )
    5 symbol ( _oni_free                        , 0x0011fbf5 )
     4symbol ( _oni_malloc                         , 0x0011fc24 )
     5symbol ( _oni_free                           , 0x0011fbf5 )
    66
    7 symbol ( _oni_fopen                       , 0x0011ea9f )
    8 symbol ( _oni_fflush                      , 0x0011eab2 )
    9 symbol ( _oni_fprintf                     , 0x0011ebbf )
    10 symbol ( _oni_vsprintf                    , 0x0011e860 )
     7symbol ( _oni_fopen                          , 0x0011ea9f )
     8symbol ( _oni_fflush                         , 0x0011eab2 )
     9symbol ( _oni_fprintf                        , 0x0011ebbf )
     10symbol ( _oni_vsprintf                       , 0x0011e860 )
    1111
    1212// Oni Engine
    13 symbol ( _ONiMain                         , 0x000d3280 )
     13symbol ( _ONiMain                            , 0x000d3280 )
    1414
    1515// BFW_Utility
    16 symbol ( _UUrStartupMessage               , 0x00024860 )
    17 symbol ( @UUrMachineTime_High@0           , 0x00026480 )
    18 symbol ( @UUrMachineTime_High_Frequency@0 , 0x000264b0 )
    19 symbol ( @UUrMachineTime_Sixtieths@0      , 0x000263e0 )
    20 symbol ( _ONgFileStartup                  , 0x001711b8 )
     16symbol ( _UUrStartupMessage                  , 0x00024860 )
     17symbol ( @UUrMachineTime_High@0              , 0x00026480 )
     18symbol ( @UUrMachineTime_High_Frequency@0    , 0x000264b0 )
     19symbol ( @UUrMachineTime_Sixtieths@0         , 0x000263e0 )
     20symbol ( _ONgFileStartup                     , 0x001711b8 )
     21
     22// OpenGL
     23symbol ( @gl_enumerate_valid_display_modes@4 , 0x000083a0 )
Note: See TracChangeset for help on using the changeset viewer.