mirror of
https://github.com/halpz/re3.git
synced 2025-07-03 09:40:44 +00:00
add the bad crack "features" behind SECUROM define
This commit is contained in:
@ -3237,7 +3237,9 @@ CMenuManager::PrintBriefs()
|
||||
void
|
||||
CMenuManager::PrintStats()
|
||||
{
|
||||
static uint8 pirateCheck = 0;
|
||||
#ifdef SECUROM
|
||||
static uint8 statsPirateCheck = 0;
|
||||
#endif
|
||||
static float scrollY = 0;
|
||||
|
||||
int rowNum = CStats::ConstructStatLine(99999);
|
||||
@ -3250,11 +3252,13 @@ CMenuManager::PrintStats()
|
||||
CFont::SetPropOn();
|
||||
CFont::SetDropShadowPosition(0);
|
||||
|
||||
if (pirateCheck == 0)
|
||||
#ifdef SECUROM
|
||||
if (statsPirateCheck == 0)
|
||||
// if not pirated game
|
||||
pirateCheck = 46;
|
||||
// statsPirateCheck = 46;
|
||||
// else
|
||||
// pirateCheck = 45;
|
||||
statsPirateCheck = 45;
|
||||
#endif
|
||||
|
||||
if (m_PrefsLanguage == LANGUAGE_AMERICAN)
|
||||
CFont::SetScale(MENU_X(0.43f), MENU_Y(0.75f));
|
||||
@ -3274,8 +3278,10 @@ CMenuManager::PrintStats()
|
||||
lastCheck = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
}
|
||||
|
||||
if (pirateCheck == 45)
|
||||
#ifdef SECUROM
|
||||
if (statsPirateCheck == 45)
|
||||
return;
|
||||
#endif
|
||||
|
||||
float nextYChange, y, alpha;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -476,6 +476,10 @@ void CRadar::Draw3dMarkers()
|
||||
void CRadar::DrawBlips()
|
||||
{
|
||||
if (!TheCamera.m_WideScreenOn && CHud::m_Wants_To_Draw_Hud) {
|
||||
#ifdef SECUROM
|
||||
extern uint8 roadBlocksPirateCheck;
|
||||
if (roadBlocksPirateCheck == 2) return;
|
||||
#endif
|
||||
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)FALSE);
|
||||
RwRenderStateSet(rwRENDERSTATEZTESTENABLE, (void*)FALSE);
|
||||
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void*)TRUE);
|
||||
|
Reference in New Issue
Block a user