summaryrefslogtreecommitdiff
path: root/src/cs2/cs2.cpp
blob: 224e44547cfe1909866d799ef64488a22b87b2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}