Skip to content

Commit adae4d0

Browse files
committed
twinhook: prune useless files
1 parent 6e08939 commit adae4d0

File tree

12 files changed

+3
-627
lines changed

12 files changed

+3
-627
lines changed

twinhook/config/th_command_proc.cpp

Lines changed: 0 additions & 119 deletions
This file was deleted.

twinhook/config/th_command_proc.h

Lines changed: 0 additions & 52 deletions
This file was deleted.

twinhook/control/th_player.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ void th_player::draw(IDirect3DDevice9* d3dDev)
5454
{
5555
if (algorithm)
5656
algorithm->visualize(d3dDev);
57-
cmdp.render(d3dDev);
5857
DI8_Overlay_RenderInput(d3dDev, this->getKeyboardState());
5958

6059
/* IMGUI Integration*/

twinhook/control/th_player.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "util/vec2.h"
44
#include "algo/th_algorithm.h"
55
#include "info/keypress_detect.h"
6-
#include "config/th_command_proc.h"
76
#include "gfx/imgui_controller.h"
87

98
#include "model/game_object.h"
@@ -38,7 +37,6 @@ class th_player
3837
protected:
3938
th_algorithm *algorithm = nullptr;
4039
keypress_detect kpd;
41-
th_command_proc cmdp;
4240
imgui_controller *imguictl = nullptr;
4341

4442
// game specific pointers
@@ -52,7 +50,7 @@ class th_player
5250
bool enabled = false;
5351
bool render = false;
5452

55-
th_player(gs_addr gsa) : gs_ptr(gsa), cmdp(this) {}
53+
th_player(gs_addr gsa) : gs_ptr(gsa) {}
5654
virtual ~th_player()
5755
{
5856
if (imguictl) delete imguictl;

twinhook/gfx/imgui_controller.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
#include <d3d9.h>
44

5-
#include "pattern/nocopy.h"
6-
7-
class imgui_controller : nocopy
5+
class imgui_controller
86
{
97
HWND hWnd = NULL;
108
IDirect3DDevice9 *pD3DDev = NULL;

twinhook/model/obb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class obb : public polygon
1010
{
11-
static std::vector<vec2> toVertices(vec2 position,
11+
static std::vector<vec2> toVertices(const vec2& position,
1212
float length, float radius, float angle);
1313
public:
1414
obb(const vec2& position, float length, float radius, float angle, const vec2& velocity = vec2())

twinhook/pattern/nocopy.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

twinhook/strategy/th_laser_expander.cpp

Lines changed: 0 additions & 39 deletions
This file was deleted.

twinhook/strategy/th_laser_expander.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)