diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-20 19:14:12 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-20 19:14:12 +0100 |
commit | 23831e38e632073c9d1fc5ff073b1568c02e33b8 (patch) | |
tree | e2386110918e4424e26d33a8a9c9d0e9ea46fa2c /src/core/Game.cpp | |
parent | Merge branch 'lcs-dev' into lcs (diff) | |
parent | Merge branch 'miami' into lcs (diff) | |
download | re3-23831e38e632073c9d1fc5ff073b1568c02e33b8.tar re3-23831e38e632073c9d1fc5ff073b1568c02e33b8.tar.gz re3-23831e38e632073c9d1fc5ff073b1568c02e33b8.tar.bz2 re3-23831e38e632073c9d1fc5ff073b1568c02e33b8.tar.lz re3-23831e38e632073c9d1fc5ff073b1568c02e33b8.tar.xz re3-23831e38e632073c9d1fc5ff073b1568c02e33b8.tar.zst re3-23831e38e632073c9d1fc5ff073b1568c02e33b8.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 43e5856c..b8a5bd7a 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); @@ -846,7 +850,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; |