aboutsummaryrefslogtreecommitdiff
path: root/primedev/core/convar/convar.cpp
diff options
context:
space:
mode:
authorF1F7Y <64418963+F1F7Y@users.noreply.github.com>2024-09-02 17:10:57 +0200
committerGitHub <noreply@github.com>2024-09-02 17:10:57 +0200
commit669fdaed4c00728e798ee911c4426a6339f93951 (patch)
tree47719b1fb865708225d580280604c4e38265c509 /primedev/core/convar/convar.cpp
parent96c34f64ab4ed6099d08f458178e4686dff96b00 (diff)
downloadNorthstarLauncher-669fdaed4c00728e798ee911c4426a6339f93951.tar.gz
NorthstarLauncher-669fdaed4c00728e798ee911c4426a6339f93951.zip
core: Remove use of `SourceInterface` for `CCvar` (#804)
`SourceInteface` class goes back to icepick and is not good. We have a replacement, let's use it.
Diffstat (limited to 'primedev/core/convar/convar.cpp')
-rw-r--r--primedev/core/convar/convar.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/primedev/core/convar/convar.cpp b/primedev/core/convar/convar.cpp
index 87a1e159..802c088d 100644
--- a/primedev/core/convar/convar.cpp
+++ b/primedev/core/convar/convar.cpp
@@ -1,7 +1,7 @@
#include "bits.h"
#include "cvar.h"
#include "convar.h"
-#include "core/sourceinterface.h"
+#include "core/tier1.h"
#include <float.h>
@@ -35,8 +35,7 @@ ON_DLL_LOAD("engine.dll", ConVar, (CModule module))
g_pConVar_Vtable = module.Offset(0x67FD28);
g_pIConVar_Vtable = module.Offset(0x67FDC8);
- g_pCVarInterface = new SourceInterface<CCvar>("vstdlib.dll", "VEngineCvar007");
- g_pCVar = *g_pCVarInterface;
+ g_pCVar = Sys_GetFactoryPtr("vstdlib.dll", "VEngineCvar007").RCast<CCvar*>();
}
//-----------------------------------------------------------------------------