summaryrefslogtreecommitdiff
path: root/src/cs2/cs2.cpp
diff options
context:
space:
mode:
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;
+}