Skip to content

Commit 64e5397

Browse files
committed
refactor: rename jumptoolsparams
1 parent d7c93e2 commit 64e5397

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Features/Tas/TasTools/JumpTool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void JumpTool::SetJumpInput(TasFramebulk &bulk, bool jump) {
4848
std::shared_ptr<TasToolParams> JumpTool::ParseParams(std::vector<std::string> vp) {
4949
if (vp.size() == 0 && !this->automatic) {
5050
// allow 0 parameters for non-automated jump tool
51-
return std::make_shared<JumpToolsParams>(true, false);
51+
return std::make_shared<JumpToolParams>(true, false);
5252
}
5353

5454
if (vp.size() != 1) {
@@ -67,5 +67,5 @@ std::shared_ptr<TasToolParams> JumpTool::ParseParams(std::vector<std::string> vp
6767
throw TasParserArgumentException(this, vp[0]);
6868
}
6969

70-
return std::make_shared<JumpToolsParams>(enabled, ducked);
70+
return std::make_shared<JumpToolParams>(enabled, ducked);
7171
}

src/Features/Tas/TasTools/JumpTool.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#pragma once
22
#include "../TasTool.hpp"
33

4-
struct JumpToolsParams : public TasToolParams {
5-
JumpToolsParams()
4+
struct JumpToolParams : public TasToolParams {
5+
JumpToolParams()
66
: TasToolParams() {
77
}
8-
JumpToolsParams(bool enabled, bool ducked)
8+
JumpToolParams(bool enabled, bool ducked)
99
: TasToolParams(enabled)
1010
, ducked(ducked) {
1111
}
1212

1313
bool ducked = false;
1414
};
1515

16-
class JumpTool : public TasToolWithParams<JumpToolsParams> {
16+
class JumpTool : public TasToolWithParams<JumpToolParams> {
1717
public:
1818
JumpTool(int slot, bool automatic)
1919
: TasToolWithParams(automatic ? "autojump" : "jump", POST_PROCESSING, BUTTONS, slot)

0 commit comments

Comments
 (0)