From 668e1696467c8d6750fd1ee367e2014cfd76d45f Mon Sep 17 00:00:00 2001 From: Michal <88426022+SlynxCZ@users.noreply.github.com> Date: Sun, 4 Oct 2026 20:39:41 +0200 Subject: [PATCH] Move CBaseGameSystem to CAutoGameSystem (#432) --- game/shared/igamesystem.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/game/shared/igamesystem.h b/game/shared/igamesystem.h index cdd86828..9ff37005 100644 --- a/game/shared/igamesystem.h +++ b/game/shared/igamesystem.h @@ -387,10 +387,10 @@ public: // Quick and dirty server system for users who don't care about precise ordering // and usually only want to implement a few of the callbacks -class CBaseGameSystem : public IGameSystem +class CAutoGameSystem : public IGameSystem { public: - CBaseGameSystem(const char* pszInitName = "unnamed") + CAutoGameSystem(const char* pszInitName = "unnamed") : m_pName(pszInitName) { } @@ -491,16 +491,13 @@ public: virtual void SetGameSystemGlobalPtrs(void* pValue) override {} virtual void SetName(const char* pName) override { m_pName = pName; } virtual bool DoesGameSystemReallocate() override { return false; } - virtual ~CBaseGameSystem() {} + virtual ~CAutoGameSystem() {} private: const char* m_pName; }; -class CAutoGameSystem : public CBaseGameSystem -{ -protected: - virtual ~CAutoGameSystem() {}; -}; +// AMNOTE: Deprecated, use CAutoGameSystem instead +using CBaseGameSystem = CAutoGameSystem; #endif // IGAMESYSTEM_H