public static void Initialize(D3DVersion ver) { switch (ver) { case D3DVersion.Direct3D9: Hook = new D3D9(); break; } Hook.Initialize(); }
public static void Initialize(D3DVersion ver) { switch (ver) { case D3DVersion.Direct3D9: Hook = new D3D9(); break; #if FALSE case D3DVersion.Direct3D11: Hook = new D3D11(); break; #endif } // if (Hook == null) // throw new Exception("Hook = null!"); Hook.Initialize(); }