Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Core/GameEngine/Include/GameClient/ParticleSys.h
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,21 @@ class ParticleSystemManager : public SubsystemInterface,
ParticleSystemIDMap m_systemMap; ///< a hash map of all particle systems
};

// TheSuperHackers @feature bobtista 31/01/2026
// ParticleSystemManager that does nothing. Used for Headless Mode.
class ParticleSystemManagerDummy : public ParticleSystemManager
{
public:
Int getOnScreenParticleCount() override { return 0; }
void doParticles(RenderInfoClass &rinfo) override {}
void queueParticleRender() override {}

protected:
void crc( Xfer *xfer ) override {}
void xfer( Xfer *xfer ) override {}
void loadPostProcess() override {}
};

/// The particle system manager singleton
extern ParticleSystemManager *TheParticleSystemManager;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
inline FunctionLexicon *Win32GameEngine::createFunctionLexicon() { return NEW W3DFunctionLexicon; }
inline LocalFileSystem *Win32GameEngine::createLocalFileSystem() { return NEW Win32LocalFileSystem; }
inline ArchiveFileSystem *Win32GameEngine::createArchiveFileSystem() { return NEW Win32BIGFileSystem; }
inline ParticleSystemManager* Win32GameEngine::createParticleSystemManager() { return NEW W3DParticleSystemManager; }
inline ParticleSystemManager* Win32GameEngine::createParticleSystemManager() { return TheGlobalData->m_headless ? NEW ParticleSystemManagerDummy : NEW W3DParticleSystemManager; }

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

left of '->m_headless' must point to class/struct/union

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'TheGlobalData' : undeclared identifier

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-debug+t+e

left of '->m_headless' must point to class/struct/union

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-debug+t+e

'TheGlobalData' : undeclared identifier

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / win32+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / win32-vcpkg-profile+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / win32-debug+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

left of '->m_headless' must point to class/struct/union

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'TheGlobalData' : undeclared identifier

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / win32-profile+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / win32-vcpkg-debug+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in Generals/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build Generals / win32-vcpkg+t+e

'TheGlobalData': undeclared identifier
Comment thread
bobtista marked this conversation as resolved.
Outdated

inline NetworkInterface *Win32GameEngine::createNetwork() { return NetworkInterface::createNetwork(); }
inline Radar *Win32GameEngine::createRadar() { return NEW W3DRadar; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
inline FunctionLexicon *Win32GameEngine::createFunctionLexicon() { return NEW W3DFunctionLexicon; }
inline LocalFileSystem *Win32GameEngine::createLocalFileSystem() { return NEW Win32LocalFileSystem; }
inline ArchiveFileSystem *Win32GameEngine::createArchiveFileSystem() { return NEW Win32BIGFileSystem; }
inline ParticleSystemManager* Win32GameEngine::createParticleSystemManager() { return NEW W3DParticleSystemManager; }
inline ParticleSystemManager* Win32GameEngine::createParticleSystemManager() { return TheGlobalData->m_headless ? NEW ParticleSystemManagerDummy : NEW W3DParticleSystemManager; }

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

left of '->m_headless' must point to class/struct/union

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'TheGlobalData' : undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

left of '->m_headless' must point to class/struct/union

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'TheGlobalData' : undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32-vcpkg+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32-vcpkg-debug+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32-profile+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32-debug+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

left of '->m_headless' must point to class/struct/union

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'TheGlobalData' : undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / win32-vcpkg-profile+t+e

'TheGlobalData': undeclared identifier

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-debug+t+e

left of '->m_headless' must point to class/struct/union

Check failure on line 96 in GeneralsMD/Code/GameEngineDevice/Include/Win32Device/Common/Win32GameEngine.h

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-debug+t+e

'TheGlobalData' : undeclared identifier

inline NetworkInterface *Win32GameEngine::createNetwork() { return NetworkInterface::createNetwork(); }
inline Radar *Win32GameEngine::createRadar() { return NEW W3DRadar; }
Expand Down
Loading