diff options
| author | navewindre <nw@moneybot.cc> | 2024-07-14 08:43:58 +0200 |
|---|---|---|
| committer | navewindre <nw@moneybot.cc> | 2024-07-14 08:43:58 +0200 |
| commit | 320e7b14a5a29838ed2cb909cadfd7c448c6849b (patch) | |
| tree | 3cbd09c2c09abb6263da01d41b9da5c37837e4c8 /src/cs2/cs2.h | |
| parent | 28f41cf689def99fb586bfca47b7e1786227a5a2 (diff) | |
schemas
Diffstat (limited to 'src/cs2/cs2.h')
| -rw-r--r-- | src/cs2/cs2.h | 22 |
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 |
