summaryrefslogtreecommitdiff
path: root/src/cs2/cs2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cs2/cs2.h')
-rw-r--r--src/cs2/cs2.h22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/cs2/cs2.h b/src/cs2/cs2.h
index 58eba14..db136b9 100644
--- a/src/cs2/cs2.h
+++ b/src/cs2/cs2.h
@@ -1,25 +1,14 @@
#pragma once
-
#include "../process64.h"
+#include "iface.h"
+
+#include "sdk.h"
class CS2 : public PROCESS64 {
public:
CS2() : PROCESS64( "cs2.exe" ) {};
- bool 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" );
-
- return true;
- }
+ bool open();
IFACE_ENTRY get_iface( const char* name ) {
VECTOR<IFACE_ENTRY> entries = iface_get_all( this );
@@ -42,5 +31,8 @@ public:
struct {
IFACE_ENTRY client;
IFACE_ENTRY engine;
+ IFACE_ENTRY schema;
} iface;
+
+ VECTOR<NETVAR_ENTRY> netvars;
}; \ No newline at end of file