Changeset 339


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

Developer Mode

Location:
Daodan
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • Daodan/build.bat

    r323 r339  
    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 src\Daodan_Win32.c src\daodan_gl.c -lgdi32
     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_Win32.c src\Daodan_Cheater.c src\Daodan_Persistence.c src\daodan_gl.c -lgdi32
  • 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
  • Daodan/src/Daodan_Persistence.c

    r297 r339  
     1#include "Daodan.h"
     2#include "Daodan_Persistence.h"
     3
     4uint8_t ONICALL DDrPersist_GetWonGame()
     5{
     6        return 1;
     7}
  • Daodan/src/Daodan_Persistence.h

    r297 r339  
    33#define DAODAN_PERSISTENCE_H
    44
    5 onibool ONICALL (*DDrPersist_GetWonGame)();
     5#include <stdint.h>
     6
     7#include "Daodan.h"
     8
     9uint8_t ONICALL DDrPersist_GetWonGame();
    610
    711#endif
  • Daodan/src/Oni_Persistence.h

    r326 r339  
    33#define ONI_PERSISTENCE_H
    44
     5#include <stdint.h>
    56#include "Daodan.h"
    67
    78float ONICALL ONrPersist_GetGamma();
     9uint8_t ONICALL ONrPersist_GetWonGame();
    810
    911#endif
  • Daodan/src/Oni_Symbols.S

    r326 r339  
    2020//Oni Persistance
    2121symbol ( @ONrPersist_GetGamma@0              , 0x0010f450 )
     22symbol ( @ONrPersist_GetWonGame@0            , 0x0010f660 )
    2223
    2324// BFW_Utility
Note: See TracChangeset for help on using the changeset viewer.