11// Entry point is in xr_3da/entry_point.cpp
22#include " stdafx.h"
3+ #include " main.h"
34#include " xr_3da/resource.h"
45
56#include < process.h>
@@ -38,7 +39,7 @@ HWND logoWindow = nullptr;
3839void RunBenchmark (pcstr name);
3940}
4041
41- void InitEngine ()
42+ ENGINE_API void InitEngine ()
4243{
4344 Engine.Initialize ();
4445 Device.Initialize ();
@@ -62,7 +63,7 @@ struct PathIncludePred
6263};
6364}
6465
65- void InitSettings ()
66+ ENGINE_API void InitSettings ()
6667{
6768 string_path fname;
6869 FS .update_path (fname, " $game_config$" , " system.ltx" );
@@ -84,7 +85,7 @@ void InitSettings()
8485 make_string (" Cannot find file %s.\n Reinstalling application may fix this problem." , fname));
8586}
8687
87- void InitConsole ()
88+ ENGINE_API void InitConsole ()
8889{
8990 if (GEnv.isDedicatedServer )
9091 Console = new CTextConsole ();
@@ -101,16 +102,16 @@ void InitConsole()
101102 }
102103}
103104
104- void InitInput ()
105+ ENGINE_API void InitInput ()
105106{
106107 bool captureInput = !strstr (Core.Params , " -i" );
107108 pInput = new CInput (captureInput);
108109}
109110
110- void destroyInput () { xr_delete (pInput); }
111- void InitSound () { ISoundManager::_create (); }
112- void destroySound () { ISoundManager::_destroy (); }
113- void destroySettings ()
111+ ENGINE_API void destroyInput () { xr_delete (pInput); }
112+ ENGINE_API void InitSound () { ISoundManager::_create (); }
113+ ENGINE_API void destroySound () { ISoundManager::_destroy (); }
114+ ENGINE_API void destroySettings ()
114115{
115116 auto s = const_cast <CInifile**>(&pSettings);
116117 xr_delete (*s);
@@ -119,14 +120,14 @@ void destroySettings()
119120 xr_delete (pGameIni);
120121}
121122
122- void destroyConsole ()
123+ ENGINE_API void destroyConsole ()
123124{
124125 Console->Execute (" cfg_save" );
125126 Console->Destroy ();
126127 xr_delete (Console);
127128}
128129
129- void destroyEngine ()
130+ ENGINE_API void destroyEngine ()
130131{
131132 Device.Destroy ();
132133 Engine.Destroy ();
@@ -161,7 +162,7 @@ void CheckPrivilegySlowdown()
161162#endif
162163}
163164
164- void Startup ()
165+ ENGINE_API void Startup ()
165166{
166167 execUserScript ();
167168 InitSound ();
@@ -226,7 +227,7 @@ static INT_PTR CALLBACK LogoWndProc(HWND hw, UINT msg, WPARAM wp, LPARAM lp)
226227 return true ;
227228}
228229
229- XR_EXPORT int RunApplication (pcstr commandLine)
230+ ENGINE_API int RunApplication (pcstr commandLine)
230231{
231232 if (strstr (commandLine, " -nosplash" ) == 0 )
232233 {
0 commit comments