1- // xrAI.cpp : Defines the entry point for the application.
2- //
3-
41#include " stdafx.h"
52#include " xrCore/xr_ini.h"
6- #include " process.h"
3+ #include < process.h>
74#include " xrAI.h"
85
96#include " xr_graph_merge.h"
1613
1714#pragma comment(linker, "/STACK:0x800000,0x400000")
1815
19- #pragma comment(lib, "comctl32.lib")
20- #pragma comment(lib, "d3dx9.lib")
21- #pragma comment(lib, "IMAGEHLP.LIB")
2216#pragma comment(lib, "winmm.LIB")
23- #pragma comment(lib, "xrcdb.LIB")
24- #pragma comment(lib, "MagicFM.LIB")
25- #pragma comment(lib, "xrCore.LIB")
26- #pragma comment(lib, "xrLCUtil.lib")
27- #pragma comment(lib, "xrAICore.lib")
2817
29- #include " utils/xrLCUtil/LevelCompilerLoggerWindow.hpp"
3018#include " xrCore/cdecl_cast.hpp"
3119#include " xrCore/ModuleLookup.hpp"
3220
@@ -49,14 +37,7 @@ CThreadManager::ReportStatusFunc ProxyStatus = cdecl_cast([](const char* format,
4937CThreadManager::ReportProgressFunc ProxyProgress = cdecl_cast([](float progress) { Logger.Progress (progress); });
5038
5139extern void xrCompiler (LPCSTR name, bool draft_mode, bool pure_covers, LPCSTR out_name);
52- extern void test_smooth_path (LPCSTR name);
53- extern void test_hierarchy (LPCSTR name);
54- extern void xrConvertMaps ();
55- extern void test_goap ();
56- extern void smart_cover (LPCSTR name);
5740extern void verify_level_graph (LPCSTR name, bool verbose);
58- extern void compare_graphs (LPCSTR level_name);
59- extern void test_levels ();
6041
6142static const char * h_str =
6243 " The following keys are supported / required:\n "
@@ -190,8 +171,6 @@ void Startup(LPSTR lpCmdLine)
190171
191172#include " factory_api.h"
192173
193- #include " xrGame/quadtree.h"
194-
195174Factory_Create* create_entity = 0 ;
196175Factory_Destroy* destroy_entity = 0 ;
197176
@@ -200,10 +179,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
200179 xrDebug::Initialize (false );
201180 Core.Initialize (" xrai" , 0 );
202181
203-
204- constexpr pcstr g_name = " xrSE_Factory" ;
205- Log (" Loading DLL:" , g_name);
206- const auto hFactory = std::make_unique<XRay::Module>(g_name);
182+ const auto hFactory = std::make_unique<XRay::Module>(" xrSE_Factory" );
207183
208184 if (!hFactory->exist ())
209185 R_CHK (GetLastError ());
0 commit comments