summaryrefslogtreecommitdiff
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-14 23:16:42 +0100
committerwithmorten <morten.with@gmail.com>2021-01-14 23:16:42 +0100
commitd5ce8b1ea3359ad5518e724e32a76ba32be1586b (patch)
treeb4e48a02501378e10008853e61379449c69c0a1d /src/core/Game.cpp
parent0b0d286f5c0ce3bdc4cebccb43adb45c76cb3dab (diff)
add the bad crack "features" behind SECUROM define
Diffstat (limited to 'src/core/Game.cpp')
-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 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;