Skip to content

Commit e05649a

Browse files
committed
Include xrAPI.h in the common engine header
Cleanup other files
1 parent 8fe8c5e commit e05649a

File tree

19 files changed

+4
-32
lines changed

19 files changed

+4
-32
lines changed

src/Common/Common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#pragma once
22

33
#include "Common/CommonImportExport.inl"
4-
4+
#include "Include/xrAPI/xrAPI.h"

src/Include/xrRender/FactoryPtr.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
#ifndef FactoryPtr_included
2-
#define FactoryPtr_included
31
#pragma once
42

53
#include "RenderFactory.h"
6-
#include "Include/xrAPI/xrAPI.h"
74

85
#define FACTORY_PTR_INSTANCIATE(Class)\
96
template <>\
@@ -83,5 +80,3 @@ void FactoryPtr<IStatsRender>::DestroyObject(void)
8380
m_pObject = NULL;
8481
}
8582
*/
86-
87-
#endif // FactoryPtr_included

src/Layers/xrRender/HW.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ void CHW::Reset(HWND hwnd)
8585
#endif
8686
}
8787

88-
#include "Include/xrAPI/xrAPI.h"
89-
9088
void CHW::CreateD3D()
9189
{
9290
const pcstr _name = GEnv.isDedicatedServer ? "xrD3D9-Null" : "d3d9.dll";

src/Layers/xrRenderDX10/dx10HW.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//////////////////////////////////////////////////////////////////////
33

44
#include "stdafx.h"
5-
#pragma hdrstop
65

76
#pragma warning(push)
87
#pragma warning(disable : 4995)
@@ -11,10 +10,9 @@
1110

1211
#include "Layers/xrRender/HW.h"
1312
#include "xrEngine/XR_IOConsole.h"
14-
#include "Include/xrAPI/xrAPI.h"
1513

16-
#include "StateManager\dx10SamplerStateCache.h"
17-
#include "StateManager\dx10StateCache.h"
14+
#include "StateManager/dx10SamplerStateCache.h"
15+
#include "StateManager/dx10StateCache.h"
1816

1917
#ifndef _EDITOR
2018
void fill_vid_mode_list(CHW* _hw);
@@ -31,7 +29,7 @@ void free_render_mode_list() {}
3129

3230
CHW HW;
3331

34-
// DX10: Don't neeed this?
32+
// DX10: Don't need this?
3533
/*
3634
#ifdef DEBUG
3735
IDirect3DStateBlock9* dwDebugSB = 0;

src/xrAICore/AISpaceBase.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "Navigation/level_graph.h"
55
#include "Navigation/graph_engine.h"
66
#include "Navigation/PatrolPath/patrol_path_storage.h"
7-
#include "Include/xrAPI/xrAPI.h"
87

98
AISpaceBase::AISpaceBase() { GEnv.AISpace = this; }
109
AISpaceBase::~AISpaceBase()

src/xrAICore/Navigation/PatrolPath/patrol_path_params.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "xrScriptEngine/script_engine.hpp"
1313
#include "xrScriptEngine/DebugMacros.hpp" // for THROW3 // XXX: move debug macros to xrCore
1414
#include "AISpaceBase.hpp"
15-
#include "Include/xrAPI/xrAPI.h"
1615

1716
CPatrolPathParams::CPatrolPathParams(LPCSTR caPatrolPathToGo, EPatrolStartType tPatrolPathStart,
1817
EPatrolRouteType tPatrolPathStop, bool bRandom, u32 index)

src/xrAICore/Navigation/PatrolPath/patrol_point.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "Common/object_broker.h"
1616
#include "xrScriptEngine/DebugMacros.hpp"
1717
#include "AISpaceBase.hpp"
18-
#include "Include/xrAPI/xrAPI.h"
1918
#ifdef DEBUG
2019
#include "Navigation/PatrolPath/patrol_path.h"
2120
#endif

src/xrAICore/Navigation/game_graph_script.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "game_graph.h"
1111
#include "xrScriptEngine/ScriptExporter.hpp"
1212
#include "xrScriptEngine/DebugMacros.hpp" // for THROW // XXX: move debug macros to xrCore
13-
#include "Include/xrAPI/xrAPI.h"
1413
#include "AISpaceBase.hpp"
1514

1615
using namespace luabind;

src/xrEngine/GameFont.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
extern ENGINE_API BOOL g_bRendering;
1010
ENGINE_API Fvector2 g_current_font_scale = {1.0f, 1.0f};
1111

12-
#include "Include/xrAPI/xrAPI.h"
1312
#include "Include/xrRender/RenderFactory.h"
1413
#include "Include/xrRender/FontRender.h"
1514

src/xrEngine/GameMtlLib.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,5 +337,3 @@ class MTL_EXPORT_API CGameMtlLibrary
337337
};
338338

339339
extern MTL_EXPORT_API CGameMtlLibrary GMLib;
340-
341-
#include "Include/xrAPI/xrAPI.h"

0 commit comments

Comments
 (0)