From df8ddc0098b98b21f7ecede38f042efe2edabeed Mon Sep 17 00:00:00 2001 From: "zer0.k" Date: Fri, 5 Dec 2025 04:29:47 +0700 Subject: [PATCH 1/3] Update ILoopModePrerequisiteRegistry and IEngineServiceMgr --- public/engine/IEngineService.h | 25 ++++++++++++++++++++++--- public/iloopmode.h | 1 - 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/public/engine/IEngineService.h b/public/engine/IEngineService.h index 067e7b08..0ade1ed1 100644 --- a/public/engine/IEngineService.h +++ b/public/engine/IEngineService.h @@ -13,6 +13,7 @@ #include #include #include +#include class ISwitchLoopModeStatusNotify; class IAddonListChangeNotify; @@ -68,8 +69,6 @@ public: virtual CEventDispatcher* GetEventDispatcher(void) = 0; virtual void *GetDebugVisualizerMgr( void ) = 0; virtual int GetActiveLoopClientServerMode( void ) const = 0; - virtual void EnableMaxFramerate( bool ) = 0; - virtual void OverrideMaxFramerate( float ) = 0; virtual void PrintStatus( void ) = 0; virtual ActiveLoop_t GetActiveLoop( void ) = 0; virtual bool IsLoadingLevel( void ) const = 0; @@ -78,14 +77,34 @@ public: virtual void ChangeVideoMode( RenderDeviceInfo_t & ) = 0; virtual void GetVideoModeChange( void ) = 0; virtual int GetAddonCount( void ) const = 0; - virtual void GetAddon( int ) const = 0; + virtual const char* GetAddon( int ) const = 0; virtual bool IsAddonMounted( const char * ) const = 0; virtual const char *GetAddonsString( void ) const = 0; + virtual void unk101( void ) = 0; + virtual void unk102( void ) = 0; + virtual void unk103( void ) = 0; virtual void InstallSwitchLoopModeStatusNotify( ISwitchLoopModeStatusNotify * ) = 0; virtual void UninstallSwitchLoopModeStatusNotify( ISwitchLoopModeStatusNotify * ) = 0; virtual void InstallAddonListChangeNotify( IAddonListChangeNotify * ) = 0; virtual void UninstallAddonListChangeNotify( IAddonListChangeNotify * ) = 0; + virtual void StartEngineWatchdogThread( void ) = 0; + virtual void AddLogCaptureString( const char * ) = 0; + virtual void AddLogCaptureStringV( const char *pFormat, va_list args ) = 0; + virtual void AddLogCaptureStringF( const char *pFormat, ... ) = 0; + virtual void unk201( void ) = 0; virtual void ExitMainLoop( void ) = 0; + virtual void RegisterPrerequisite( IPrerequisite * ) = 0; + + // Same methods as ILocalize + virtual LocalizeStringIndex_t FindIndex(const char *tokenName) = 0; + + // Same methods as IVEngineServer2 + virtual void SetFrameTimeAmnesty( const char *amnesty, int, float frametime ) = 0; + virtual const char *GetFrameTimeAmnesty( bool check_cvar ) = 0; + virtual void unk301() = 0; +#ifdef _LINUX + virtual void unk302() = 0; +#endif }; #endif // IENGINESERVICE_H \ No newline at end of file diff --git a/public/iloopmode.h b/public/iloopmode.h index f10edad4..10e4d30c 100644 --- a/public/iloopmode.h +++ b/public/iloopmode.h @@ -119,7 +119,6 @@ public: abstract_class ILoopModePrerequisiteRegistry : public IPrerequisiteRegistry { public: - virtual void LookupLocalizationToken( const char * ) = 0; virtual void UnregisterPrerequisite( IPrerequisite * ) = 0; }; From dab138af32c3bc0795bbb3a24f706f60d966b7f0 Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Fri, 5 Dec 2025 13:34:57 +0300 Subject: [PATCH 2/3] Small method name adjustment --- public/engine/IEngineService.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/engine/IEngineService.h b/public/engine/IEngineService.h index 0ade1ed1..ba2d4706 100644 --- a/public/engine/IEngineService.h +++ b/public/engine/IEngineService.h @@ -96,7 +96,7 @@ public: virtual void RegisterPrerequisite( IPrerequisite * ) = 0; // Same methods as ILocalize - virtual LocalizeStringIndex_t FindIndex(const char *tokenName) = 0; + virtual LocalizeStringIndex_t FindLocalizeTokenIndex(const char *tokenName) = 0; // Same methods as IVEngineServer2 virtual void SetFrameTimeAmnesty( const char *amnesty, int, float frametime ) = 0; @@ -107,4 +107,4 @@ public: #endif }; -#endif // IENGINESERVICE_H \ No newline at end of file +#endif // IENGINESERVICE_H From 7f0dc8d4c885918034d412a0d0020903e325e8a4 Mon Sep 17 00:00:00 2001 From: "zer0.k" Date: Fri, 5 Dec 2025 17:55:29 +0700 Subject: [PATCH 3/3] Minor name adjustment for consistency --- public/engine/IEngineService.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/engine/IEngineService.h b/public/engine/IEngineService.h index ba2d4706..e5e30475 100644 --- a/public/engine/IEngineService.h +++ b/public/engine/IEngineService.h @@ -77,7 +77,7 @@ public: virtual void ChangeVideoMode( RenderDeviceInfo_t & ) = 0; virtual void GetVideoModeChange( void ) = 0; virtual int GetAddonCount( void ) const = 0; - virtual const char* GetAddon( int ) const = 0; + virtual const char *GetAddon( int ) const = 0; virtual bool IsAddonMounted( const char * ) const = 0; virtual const char *GetAddonsString( void ) const = 0; virtual void unk101( void ) = 0;