Changeset 339 for Daodan/src/Daodan.c


Ignore:
Timestamp:
Jun 6, 2009, 3:30:13 AM (16 years ago)
Author:
rossy
Message:

Developer Mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan.c

    r329 r339  
    33#include "Daodan_Utility.h"
    44#include "Daodan_Win32.h"
     5#include "Daodan_Cheater.h"
     6#include "Daodan_Persistence.h"
    57
    68#include "Oni.h"
     9#include "Oni_Persistence.h"
     10
    711#include "BFW_Utility.h"
    812
     
    8387        DDrPatch_Byte  (OniExe + 0x0002e9dc, 0xeb);
    8488       
     89        // Cheat table patch
     90        DDrPatch_Int32 (OniExe + 0x000f616b, (int)&DDr_CheatTable[0].name);
     91        DDrPatch_Int32 (OniExe + 0x000f617a, (int)&DDr_CheatTable[0].message_on);
     92       
    8593        return true;
    8694}
     
    100108        DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency);
    101109        DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths);
     110       
     111        // Cheats always enabled
     112        DDrPatch_MakeJump(ONrPersist_GetWonGame, DDrPersist_GetWonGame);
    102113       
    103114        // Windowed mode
Note: See TracChangeset for help on using the changeset viewer.