diff --git a/game/shared/igamesystem.cpp b/game/shared/igamesystem.cpp index 17926463..45956f70 100644 --- a/game/shared/igamesystem.cpp +++ b/game/shared/igamesystem.cpp @@ -260,6 +260,11 @@ void IGameSystem::LevelInitPostEntityAllSystems( void ) InvokeMethod( &IGameSystem::LevelInitPostEntity, "LevelInitPostEntity" ); } +void IGameSystem::LevelShutdownPreClearSteamAPIContextAllSystems() +{ + InvokeMethodReverseOrder( &IGameSystem::LevelShutdownPreClearSteamAPIContext ); +} + void IGameSystem::LevelShutdownPreEntityAllSystems() { InvokeMethodReverseOrder( &IGameSystem::LevelShutdownPreEntity ); diff --git a/game/shared/igamesystem.h b/game/shared/igamesystem.h index da34591b..8cc8c6fd 100644 --- a/game/shared/igamesystem.h +++ b/game/shared/igamesystem.h @@ -40,6 +40,7 @@ public: // entities are created / spawned / precached here virtual void LevelInitPostEntity() = 0; + virtual void LevelShutdownPreClearSteamAPIContext() {}; virtual void LevelShutdownPreEntity() = 0; // Entities are deleted / released here... virtual void LevelShutdownPostEntity() = 0; @@ -75,6 +76,7 @@ public: static void ShutdownAllSystems(); static void LevelInitPreEntityAllSystems( char const* pMapName ); static void LevelInitPostEntityAllSystems(); + static void LevelShutdownPreClearSteamAPIContextAllSystems(); static void LevelShutdownPreEntityAllSystems(); static void LevelShutdownPostEntityAllSystems(); @@ -139,6 +141,7 @@ public: // Level init, shutdown virtual void LevelInitPreEntity() {} virtual void LevelInitPostEntity() {} + virtual void LevelShutdownPreClearSteamAPIContext() {} virtual void LevelShutdownPreEntity() {} virtual void LevelShutdownPostEntity() {} @@ -185,6 +188,7 @@ public: // Level init, shutdown virtual void LevelInitPreEntity() {} virtual void LevelInitPostEntity() {} + virtual void LevelShutdownPreClearSteamAPIContext() {} virtual void LevelShutdownPreEntity() {} virtual void LevelShutdownPostEntity() {}