Skip to content

Commit 706fce4

Browse files
author
nitrocaster
committed
Remove securom stuff.
1 parent e08653c commit 706fce4

File tree

11 files changed

+18
-273
lines changed

11 files changed

+18
-273
lines changed

src/xrEngine/Device_Initialize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void CRenderDevice::initialize_editor()
3232
}
3333
#endif // #ifdef INGAME_EDITOR
3434

35-
PROTECT_API void CRenderDevice::Initialize()
35+
void CRenderDevice::Initialize()
3636
{
3737
Log("Initializing Engine...");
3838
TimerGlobal.Start();

src/xrEngine/Device_create.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "Render.h"
44
#include "dedicated_server_only.h"
55
#include "xrCDB/xrXRC.h"
6-
#include "securom_api.h"
76

87
extern XRCDB_API BOOL* cdb_bDebug;
98

@@ -20,9 +19,8 @@ void CRenderDevice::_SetupStates()
2019
GlobalEnv.Render->SetupStates();
2120
}
2221

23-
PROTECT_API void CRenderDevice::Create()
22+
void CRenderDevice::Create()
2423
{
25-
SECUROM_MARKER_SECURITY_ON(4);
2624
if (b_is_Ready)
2725
return; // prevent double call
2826
Statistic = xr_new<CStats>();
@@ -52,5 +50,4 @@ PROTECT_API void CRenderDevice::Create()
5250
Statistic->OnDeviceCreate();
5351
dwFrame = 0;
5452
PreCache(0, false, false);
55-
SECUROM_MARKER_SECURITY_OFF(4);
5653
}

src/xrEngine/Engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CEngine::~CEngine()
2424

2525
extern void msCreate(LPCSTR name);
2626

27-
PROTECT_API void CEngine::Initialize(void)
27+
void CEngine::Initialize(void)
2828
{
2929
Engine.Sheduler.Initialize();
3030
#ifdef DEBUG

src/xrEngine/EngineAPI.cpp

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "EngineAPI.h"
77
#include "xrCDB/xrXRC.h"
88
#include "xrScriptEngine/script_engine.hpp"
9-
#include "securom_api.h"
109

1110
extern xr_token* vid_quality_token;
1211

@@ -48,23 +47,15 @@ ENGINE_API int g_current_renderer = 0;
4847
bool is_enough_address_space_available()
4948
{
5049
SYSTEM_INFO system_info;
51-
52-
SECUROM_MARKER_HIGH_SECURITY_ON(12)
53-
54-
GetSystemInfo(&system_info);
55-
56-
SECUROM_MARKER_HIGH_SECURITY_OFF(12)
57-
58-
return (*(u32*)&system_info.lpMaximumApplicationAddress) > 0x90000000;
50+
GetSystemInfo(&system_info);
51+
return (*(u32*)&system_info.lpMaximumApplicationAddress) > 0x90000000;
5952
}
6053

6154
#ifndef DEDICATED_SERVER
6255

6356
void CEngineAPI::InitializeNotDedicated()
6457
{
65-
SECUROM_MARKER_HIGH_SECURITY_ON(2)
66-
67-
LPCSTR r2_name = "xrRender_R2.dll";
58+
LPCSTR r2_name = "xrRender_R2.dll";
6859
LPCSTR r3_name = "xrRender_R3.dll";
6960
LPCSTR r4_name = "xrRender_R4.dll";
7061

@@ -111,8 +102,6 @@ void CEngineAPI::InitializeNotDedicated()
111102
else
112103
g_current_renderer = 2;
113104
}
114-
115-
SECUROM_MARKER_HIGH_SECURITY_OFF(2)
116105
}
117106
#endif // DEDICATED_SERVER
118107

src/xrEngine/Environment_misc.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include "Common/object_broker.h"
1111
#include "xrServerEntities/LevelGameDef.h"
1212

13-
#include "securom_api.h"
14-
1513
void CEnvModifier::load(IReader* fs, u32 version)
1614
{
1715
use_flags.one();
@@ -537,9 +535,7 @@ void CEnvironment::mods_unload()
537535

538536
void CEnvironment::load_level_specific_ambients()
539537
{
540-
SECUROM_MARKER_PERFORMANCE_ON(13)
541-
542-
const shared_str level_name = g_pGameLevel->name();
538+
const shared_str level_name = g_pGameLevel->name();
543539

544540
string_path path;
545541
strconcat(sizeof(path), path, "environment\\ambients\\", level_name.c_str(), ".ltx");
@@ -571,8 +567,6 @@ void CEnvironment::load_level_specific_ambients()
571567
}
572568

573569
xr_delete(level_ambients);
574-
575-
SECUROM_MARKER_PERFORMANCE_OFF(13)
576570
}
577571

578572
CEnvDescriptor* CEnvironment::create_descriptor(shared_str const& identifier, CInifile* config)

src/xrEngine/IGame_Level.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include "xr_object.h"
1313
#include "Feel_Sound.h"
1414

15-
#include "securom_api.h"
16-
1715
ENGINE_API IGame_Level* g_pGameLevel = NULL;
1816
extern BOOL g_bLoaded;
1917

@@ -82,10 +80,8 @@ static void __stdcall build_callback(Fvector* V, int Vcnt, CDB::TRI* T, int Tcnt
8280

8381
bool IGame_Level::Load(u32 dwNum)
8482
{
85-
SECUROM_MARKER_PERFORMANCE_ON(10)
86-
87-
// Initialize level data
88-
pApp->Level_Set(dwNum);
83+
// Initialize level data
84+
pApp->Level_Set(dwNum);
8985
string_path temp;
9086
if (!FS.exist(temp, "$level$", "level.ltx"))
9187
Debug.fatal(DEBUG_INFO, "Can't find level configuration file '%s'.", temp);
@@ -137,10 +133,7 @@ bool IGame_Level::Load(u32 dwNum)
137133
#endif
138134

139135
Device.seqFrame.Add(this);
140-
141-
SECUROM_MARKER_PERFORMANCE_OFF(10)
142-
143-
return true;
136+
return true;
144137
}
145138

146139
#ifndef _EDITOR

src/xrEngine/XR_IOConsole.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
#include "Include/xrRender/UIRender.h"
1717

18-
#include "securom_api.h"
19-
2018
static float const UI_BASE_WIDTH = 1024.0f;
2119
static float const UI_BASE_HEIGHT = 768.0f;
2220
static float const LDIST = 0.05f;
@@ -650,8 +648,6 @@ void CConsole::ExecuteCommand(LPCSTR cmd_str, bool record_cmd)
650648

651649
void CConsole::Show()
652650
{
653-
SECUROM_MARKER_HIGH_SECURITY_ON(11)
654-
655651
if (bVisible)
656652
{
657653
return;
@@ -669,8 +665,6 @@ void CConsole::Show()
669665
m_editor->IR_Capture();
670666
Device.seqRender.Add(this, 1);
671667
Device.seqFrame.Add(this);
672-
673-
SECUROM_MARKER_HIGH_SECURITY_OFF(11)
674668
}
675669

676670
extern CInput* pInput;

src/xrEngine/dedicated_server_only.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,4 @@
55

66
//#define DEDICATED_SERVER_ONLY
77

8-
#ifdef DEDICATED_SERVER_ONLY
9-
# define PROTECT_API
10-
#else// #ifdef DEDICATED_SERVER_ONLY
11-
# define PROTECT_API XR_EXPORT
12-
#endif // #ifdef DEDICATED_SERVER_ONLY
13-
14-
#ifdef BENCHMARK_BUILD
15-
# undef PROTECT_API
16-
# define PROTECT_API
17-
#endif // #ifdef BENCHMARK_BUILD
18-
198
#endif // #ifndef DEDICATED_SERVER_ONLY_H_INCLUDED

src/xrEngine/securom_api.h

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)