Skip to content

Commit f18391c

Browse files
committed
Load more subsystems for standalone
1 parent adda106 commit f18391c

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

src/game/client/gameclient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ void GameClient::Preload_Assets(TimeOfDayType tod)
710710
g_theControlBar->Preload_Assets(tod);
711711
g_theParticleSystemManager->Preload_Assets(tod);
712712

713-
char *preload_textures[39];
713+
const char *preload_textures[39];
714714
preload_textures[0] = "ptspruce01.tga";
715715
preload_textures[1] = "exrktflame.tga";
716716
preload_textures[2] = "cvlimo3_d2.tga";

src/game/common/gameengine.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ void GameEngine::Real_Init(int argc, char *argv[])
279279
//}
280280

281281
// We don't support most after this
282-
#ifndef GAME_DLL
283-
#pragma message("SKIPPING NOT YET SUPPORTED SUBSYSTEMS !!!")
284-
captainslog_info("Skipping not yet supported subsystems");
285-
return;
286-
#endif
282+
// #ifndef GAME_DLL
283+
// #pragma message("SKIPPING NOT YET SUPPORTED SUBSYSTEMS !!!")
284+
// captainslog_info("Skipping not yet supported subsystems");
285+
// return;
286+
// #endif
287287

288288
ini.Load("Data/INI/Default/Water.ini", INI_LOAD_OVERWRITE, &xfer);
289289
ini.Load("Data/INI/Water.ini", INI_LOAD_OVERWRITE, &xfer);

src/platform/sdl2/sdl2gameengine.cpp

+10-1
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,18 @@
2020
#include "sdl2mouse.h"
2121
#include "w3dfunctionlexicon.h"
2222
#include "w3dmodulefactory.h"
23+
#include "w3dparticlesys.h"
2324
#include "win32bigfilesystem.h"
2425
#include "win32localfilesystem.h"
2526

2627
#ifdef BUILD_WITH_STDFS
2728
#include "stdlocalfilesystem.h"
2829
#endif
2930

31+
#ifdef BUILD_WITH_OPENAL
32+
#include "alaudiomanager.h"
33+
#endif
34+
3035
SDL_Window *g_applicationWindow = nullptr;
3136

3237
namespace Thyme
@@ -158,12 +163,16 @@ WebBrowser *SDL2GameEngine::Create_Web_Browser()
158163

159164
ParticleSystemManager *SDL2GameEngine::Create_Particle_System_Manager()
160165
{
161-
return nullptr;
166+
return new W3DParticleSystemManager();
162167
}
163168

164169
AudioManager *SDL2GameEngine::Create_Audio_Manager()
165170
{
171+
#ifdef BUILD_WITH_OPENAL
172+
return new Thyme::ALAudioManager;
173+
#else
166174
return nullptr;
175+
#endif
167176
}
168177

169178
NetworkInterface *SDL2GameEngine::Create_Network()

0 commit comments

Comments
 (0)