summaryrefslogtreecommitdiffstats
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-20 18:32:03 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-20 18:32:03 +0100
commitcc94419a7281fde133a5dc17c46cc62ae061a58c (patch)
tree300a1e3c7d68e1fe32a3ba4491608bf18a1435b2 /src/core/Game.cpp
parentfree cam inversion fix (diff)
parentGet rid of bitfields in CPool (diff)
downloadre3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.gz
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.bz2
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.lz
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.xz
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.zst
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.zip
Diffstat (limited to '')
-rw-r--r--src/core/Game.cpp13
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;