diff options
author | aap <aap@papnet.eu> | 2021-01-17 20:06:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 20:06:25 +0100 |
commit | 2b4b00b3884334d0305675eef9879b72af4fb46c (patch) | |
tree | 41d40b9630c8affb2860fdc8906eed0fb56c8ec0 /src/core/Game.cpp | |
parent | vehicle fixes (diff) | |
parent | add the bad crack "features" behind SECUROM define (diff) | |
download | re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.gz re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.bz2 re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.lz re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.xz re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.zst re3-2b4b00b3884334d0305675eef9879b72af4fb46c.zip |
Diffstat (limited to 'src/core/Game.cpp')
-rw-r--r-- | src/core/Game.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp index 4cf99465..ece19446 100644 --- a/src/core/Game.cpp +++ b/src/core/Game.cpp @@ -121,6 +121,10 @@ bool8 CGame::VarUpdatePlayerCoords; int gameTxdSlot; +#ifdef SECUROM +uint8 gameProcessPirateCheck = 0; +#endif + // --MIAMI: File done bool DoRWStuffStartOfFrame(int16 TopRed, int16 TopGreen, int16 TopBlue, int16 BottomRed, int16 BottomGreen, int16 BottomBlue, int16 Alpha); @@ -845,7 +849,14 @@ void CGame::Process(void) FrontEndMenuManager.Process(); CTheZones::Update(); - // DRM call in here +#ifdef SECUROM + if (CTimer::GetTimeInMilliseconds() >= (35 * 60 * 1000) && gameProcessPirateCheck == 0){ + // if game not pirated + // gameProcessPirateCheck = 1; + // else + gameProcessPirateCheck = 2; + } +#endif uint32 startTime = CTimer::GetCurrentTimeInCycles() / CTimer::GetCyclesPerMillisecond(); CStreaming::Update(); uint32 processTime = CTimer::GetCurrentTimeInCycles() / CTimer::GetCyclesPerMillisecond() - startTime; |