summaryrefslogtreecommitdiff
path: root/src/cs2/cs2.cpp
diff options
context:
space:
mode:
authornavewindre <nw@moneybot.cc>2024-07-14 08:43:58 +0200
committernavewindre <nw@moneybot.cc>2024-07-14 08:43:58 +0200
commit320e7b14a5a29838ed2cb909cadfd7c448c6849b (patch)
tree3cbd09c2c09abb6263da01d41b9da5c37837e4c8 /src/cs2/cs2.cpp
parent28f41cf689def99fb586bfca47b7e1786227a5a2 (diff)
schemas
Diffstat (limited to 'src/cs2/cs2.cpp')
-rw-r--r--src/cs2/cs2.cpp21
1 files changed, 21 insertions, 0 deletions
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;
+}