From 320e7b14a5a29838ed2cb909cadfd7c448c6849b Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 14 Jul 2024 08:43:58 +0200 Subject: schemas --- src/cs2/cs2.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/cs2/cs2.cpp (limited to 'src/cs2/cs2.cpp') diff --git a/src/cs2/cs2.cpp b/src/cs2/cs2.cpp new file mode 100644 index 0000000..224e445 --- /dev/null +++ b/src/cs2/cs2.cpp @@ -0,0 +1,21 @@ +#include "cs2.h" +#include "schema.h" + +bool CS2::open() { + if( !PROCESS64::open() ) + return false; + + mod.client = get_module64( "client.dll"fnv ); + mod.engine = get_module64( "engine.dll"fnv ); + mod.schema = get_module64( "schemasystem.dll"fnv ); + + // todo: handle this using loader + iface.client = get_iface( "Source2Client0" ); + iface.engine = get_iface( "Source2EngineToClient0" ); + iface.schema = get_iface( "SchemaSystem_0" ); + + // also handle w/ loader + netvars = schema_get_all( this ); + + return true; +} -- cgit v1.2.3