From 9d5eb5ba23b76abc04bfe796cc01c387351bbf2f Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 8 Aug 2023 09:28:11 +0200 Subject: [PATCH] Remove redundant CEngine stuff No longer required, the vftable has been reversed. --- r5dev/engine/sys_engine.cpp | 80 ------------------------------------- 1 file changed, 80 deletions(-) diff --git a/r5dev/engine/sys_engine.cpp b/r5dev/engine/sys_engine.cpp index d553a6c4..111fbf62 100644 --- a/r5dev/engine/sys_engine.cpp +++ b/r5dev/engine/sys_engine.cpp @@ -30,86 +30,6 @@ bool CEngine::_Frame(CEngine* thisp) return v_CEngine_Frame(thisp); } -/* -//----------------------------------------------------------------------------- -// Purpose: Start initializing the engine. -// Output : Returns true on success, false on failure. -//----------------------------------------------------------------------------- -bool CEngine::Load(bool dedicated, const char* rootDir) -{ - const static int index = 1; - return CallVFunc(index, this, dedicated, rootDir); -} - -//----------------------------------------------------------------------------- -// Purpose: Start to shutdown the engine. -//----------------------------------------------------------------------------- -void CEngine::Unload(void) -{ - const static int index = 2; - CallVFunc(index, this); -} - -//----------------------------------------------------------------------------- -// Purpose: Set the next dll engine state. -//----------------------------------------------------------------------------- -void CEngine::SetNextState(EngineState_t iNextState) -{ - m_nNextDLLState = iNextState; -} - -//----------------------------------------------------------------------------- -// Purpose: Get the dll engine state. -//----------------------------------------------------------------------------- -EngineState_t CEngine::GetState(void) const -{ - return m_nDLLState; -} - -//----------------------------------------------------------------------------- -// Purpose: -//----------------------------------------------------------------------------- -void CEngine::Frame(void) -{ - const static int index = 5; - CallVFunc(index, this); -} - -//----------------------------------------------------------------------------- -// Purpose: Get engine frame time. -//----------------------------------------------------------------------------- -float CEngine::GetFrameTime(void) const -{ - return m_flFrameTime; -} - -//----------------------------------------------------------------------------- -// Purpose: -//----------------------------------------------------------------------------- -float CEngine::GetPreviousTime(void) // I'm not sure if this is right, should double check. -{ - const static int index = 7; - return CallVFunc(index, this); -} - -//----------------------------------------------------------------------------- -// Purpose: -//----------------------------------------------------------------------------- -__m128 __fastcall CEngine::GetCurTime(CEngine *thisPtr) const -{ - return _mm_cvtpd_ps(_mm_cvtepi32_pd(_mm_cvtsi64_si128(thisPtr->m_flCurrentTime))); -} - -//----------------------------------------------------------------------------- -// Purpose: Set dll state. -//----------------------------------------------------------------------------- -void CEngine::SetQuitting(EngineDllQuitting_t quitDllState) -{ - const static int index = 9; - CallVFunc(index, this, quitDllState); -} -*/ - void VEngine::Attach() const { DetourAttach((LPVOID*)&v_CEngine_Frame, &CEngine::_Frame);