From d4d2244b93ff7c8c00914a8ffae3b6cad87ca907 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:24:55 +0100 Subject: [PATCH] Engine: inherit IEngineAPI through CTier1AppSystem Must be inherited through CTier1AppSystem to match the game's interface. Removed extraneous IAppSystem virtual method declarations as they are no longer needed to pad the vftable out. --- src/engine/sys_dll2.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/engine/sys_dll2.h b/src/engine/sys_dll2.h index 343f4994..d2d09432 100644 --- a/src/engine/sys_dll2.h +++ b/src/engine/sys_dll2.h @@ -2,17 +2,9 @@ #include "vpc/interfaces.h" #include "common/engine_launcher_api.h" -class CEngineAPI : public IEngineAPI +class CEngineAPI : public CTier1AppSystem { public: - virtual bool Connect(const CreateInterfaceFn factory) = 0; - virtual void Disconnect() = 0; - virtual void* QueryInterface(const char* const pInterfaceName) = 0; - virtual InitReturnVal_t Init() = 0; - virtual void Shutdown() = 0; - virtual AppSystemInfo_t* GetDependencies() = 0; - virtual void Reconnect(const CreateInterfaceFn factory, const char* const pInterfaceName) = 0; - // This function must be called before init virtual bool SetStartupInfo(StartupInfo_t& info) = 0;