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.
This commit is contained in:
Kawe Mazidjatari 2024-11-15 15:24:55 +01:00
parent 1e7bfcde2e
commit d4d2244b93

View File

@ -2,17 +2,9 @@
#include "vpc/interfaces.h"
#include "common/engine_launcher_api.h"
class CEngineAPI : public IEngineAPI
class CEngineAPI : public CTier1AppSystem<IEngineAPI>
{
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;