Changeset 273 for Daodan/src


Ignore:
Timestamp:
Mar 17, 2009, 10:55:12 AM (16 years ago)
Author:
rossy
Message:

DDrMain

Location:
Daodan/src
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan.c

    r272 r273  
    33#include "Daodan_Utility.h"
    44
     5#include "Oni.h"
    56#include "BFW_Utility.h"
    67
     
    5556}
    5657
     58void DDrMain(int argc, char* argv[])
     59{
     60        DDrPatch_Init();
     61       
     62        // Safe startup message printer
     63        DDrPatch_MakeJump(UUrStartupMessage, DDrStartupMessage);
     64       
     65        ONiMain(argc, argv);
     66}
     67
    5768BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
    5869{
     
    6374                        DDrONiModule = GetModuleHandle(NULL);
    6475                       
    65                         DDrPatch_MakeJump(UUrStartupMessage, DDrStartupMessage);
    66                         DDrPatch_Init();
     76                        DDrPatch_MakeCall((void*)0x00400000 + 0x0010fb49, DDrMain);
     77                       
    6778                        break;
    6879        }
  • Daodan/src/Daodan.h

    r272 r273  
    66#include <stdbool.h>
    77
     8#define ONICALL __fastcall
     9
    810extern HMODULE DDrDLLModule;
    911extern HMODULE DDrONiModule;
  • Daodan/src/Oni_Symbols.S

    r272 r273  
    11#define symbol(name, value) .global name; .set name, 0x00400000 + value
    2 
    3 // Patch locations
    4 // Font texture cache doubled
    5 symbol ( Patch_FontCache1      , 0x00020ea7 )
    6 symbol ( Patch_FontCache2      , 0x00020f4a )
    7 
    8 // Now supports textures up to 512x512
    9 symbol ( Patch_TextureSize     , 0x00005251 )
    10 
    11 // Non-"_Final" levels are now valid
    12 symbol ( Patch_LevelPlugins    , 0x000206a8 )
    13 
    14 // Pathfinding grid cache size x8
    15 symbol ( Patch_PathFind1       , 0x0010b03b )
    16 symbol ( Patch_PathFind2       , 0x0010b04c )
    17 
    18 // Projectile awareness fixed
    19 symbol ( Patch_Projectile1     , 0x0009c07c )
    20 symbol ( Patch_Projectile2     , 0x0009c080 )
    21 symbol ( Patch_Projectile3     , 0x0009c084 )
    22 symbol ( Patch_Projectile4     , 0x0009c110 )
    23 
    24 // Forced DirectInput (for Windows NT)
    25 symbol ( Patch_DInput          , 0x00002e6d )
    26 
    27 // Makes wp_fadetime actually have a function
    28 symbol ( Patch_WP_Fadetime1    , 0x0011a889 )
    29 symbol ( Patch_WP_Fadetime2    , 0x0011a560 )
    30 
    31 // Weapon fadetime
    32 symbol ( Patch_Fadetime        , 0x0011ab0e )
    33 
    34 // Kicking guns fix
    35 symbol ( Patch_GunsKick        , 0x000DC420 )
    36 
    37 // Cooldown timer exploit fix ^_^
    38 symbol ( Patch_Cooldown        , 0x0011A825 )
    39 
    40 // Replaces the pointer door_drawframes with the pointer for the "Last Man Standing" cheat.
    41 symbol ( Patch_Door_DFramesPtr , 0x000D8AA0 )
    42 
    43 // Replaces the variable name "door_drawframes" with the variable name "chr_lms"
    44 symbol ( Patch_Door_DFramesStr , 0x0015058C )
    45 
    46 // Replaces the description "draws doorframes for all unplaced doors(1 null)" with "turns on Last Man Standing mode(9 nulls)"
    47 symbol ( Patch_Door_DFramesDes , 0x00150564 )
    482
    493// MSVC6.0 stdlib
     
    526symbol ( _oni_fflush           , 0x0011eab2 )
    537
     8// Oni Engine
     9symbol ( _ONiMain              , 0x000d3280 )
     10
    5411// BFW_Utility
    5512symbol ( _UUrStartupMessage    , 0x00024860 )
Note: See TracChangeset for help on using the changeset viewer.