Skip to content

Commit

Permalink
twinhook: prune useless files
Browse files Browse the repository at this point in the history
  • Loading branch information
Netdex committed Jun 22, 2019
1 parent 6e08939 commit adae4d0
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 627 deletions.
119 changes: 0 additions & 119 deletions twinhook/config/th_command_proc.cpp

This file was deleted.

52 changes: 0 additions & 52 deletions twinhook/config/th_command_proc.h

This file was deleted.

1 change: 0 additions & 1 deletion twinhook/control/th_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ void th_player::draw(IDirect3DDevice9* d3dDev)
{
if (algorithm)
algorithm->visualize(d3dDev);
cmdp.render(d3dDev);
DI8_Overlay_RenderInput(d3dDev, this->getKeyboardState());

/* IMGUI Integration*/
Expand Down
4 changes: 1 addition & 3 deletions twinhook/control/th_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "util/vec2.h"
#include "algo/th_algorithm.h"
#include "info/keypress_detect.h"
#include "config/th_command_proc.h"
#include "gfx/imgui_controller.h"

#include "model/game_object.h"
Expand Down Expand Up @@ -38,7 +37,6 @@ class th_player
protected:
th_algorithm *algorithm = nullptr;
keypress_detect kpd;
th_command_proc cmdp;
imgui_controller *imguictl = nullptr;

// game specific pointers
Expand All @@ -52,7 +50,7 @@ class th_player
bool enabled = false;
bool render = false;

th_player(gs_addr gsa) : gs_ptr(gsa), cmdp(this) {}
th_player(gs_addr gsa) : gs_ptr(gsa) {}
virtual ~th_player()
{
if (imguictl) delete imguictl;
Expand Down
4 changes: 1 addition & 3 deletions twinhook/gfx/imgui_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

#include <d3d9.h>

#include "pattern/nocopy.h"

class imgui_controller : nocopy
class imgui_controller
{
HWND hWnd = NULL;
IDirect3DDevice9 *pD3DDev = NULL;
Expand Down
2 changes: 1 addition & 1 deletion twinhook/model/obb.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class obb : public polygon
{
static std::vector<vec2> toVertices(vec2 position,
static std::vector<vec2> toVertices(const vec2& position,
float length, float radius, float angle);
public:
obb(const vec2& position, float length, float radius, float angle, const vec2& velocity = vec2())
Expand Down
9 changes: 0 additions & 9 deletions twinhook/pattern/nocopy.h

This file was deleted.

39 changes: 0 additions & 39 deletions twinhook/strategy/th_laser_expander.cpp

This file was deleted.

19 changes: 0 additions & 19 deletions twinhook/strategy/th_laser_expander.h

This file was deleted.

Loading

0 comments on commit adae4d0

Please sign in to comment.