Skip to content

Commit

Permalink
Load more subsystems for standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
feliwir committed Sep 13, 2024
1 parent adda106 commit f18391c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/game/client/gameclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ void GameClient::Preload_Assets(TimeOfDayType tod)
g_theControlBar->Preload_Assets(tod);
g_theParticleSystemManager->Preload_Assets(tod);

char *preload_textures[39];
const char *preload_textures[39];
preload_textures[0] = "ptspruce01.tga";
preload_textures[1] = "exrktflame.tga";
preload_textures[2] = "cvlimo3_d2.tga";
Expand Down
10 changes: 5 additions & 5 deletions src/game/common/gameengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ void GameEngine::Real_Init(int argc, char *argv[])
//}

// We don't support most after this
#ifndef GAME_DLL
#pragma message("SKIPPING NOT YET SUPPORTED SUBSYSTEMS !!!")
captainslog_info("Skipping not yet supported subsystems");
return;
#endif
// #ifndef GAME_DLL
// #pragma message("SKIPPING NOT YET SUPPORTED SUBSYSTEMS !!!")
// captainslog_info("Skipping not yet supported subsystems");
// return;
// #endif

ini.Load("Data/INI/Default/Water.ini", INI_LOAD_OVERWRITE, &xfer);
ini.Load("Data/INI/Water.ini", INI_LOAD_OVERWRITE, &xfer);
Expand Down
11 changes: 10 additions & 1 deletion src/platform/sdl2/sdl2gameengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@
#include "sdl2mouse.h"
#include "w3dfunctionlexicon.h"
#include "w3dmodulefactory.h"
#include "w3dparticlesys.h"
#include "win32bigfilesystem.h"
#include "win32localfilesystem.h"

#ifdef BUILD_WITH_STDFS
#include "stdlocalfilesystem.h"
#endif

#ifdef BUILD_WITH_OPENAL
#include "alaudiomanager.h"
#endif

SDL_Window *g_applicationWindow = nullptr;

namespace Thyme
Expand Down Expand Up @@ -158,12 +163,16 @@ WebBrowser *SDL2GameEngine::Create_Web_Browser()

ParticleSystemManager *SDL2GameEngine::Create_Particle_System_Manager()
{
return nullptr;
return new W3DParticleSystemManager();
}

AudioManager *SDL2GameEngine::Create_Audio_Manager()
{
#ifdef BUILD_WITH_OPENAL
return new Thyme::ALAudioManager;
#else
return nullptr;
#endif
}

NetworkInterface *SDL2GameEngine::Create_Network()
Expand Down

0 comments on commit f18391c

Please sign in to comment.