Skip to content

Commit 74bcad5

Browse files
committed
feat: add easier way to interrupt setang tas tool
1 parent 99b848f commit 74bcad5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Features/Tas/TasTools/SetAngleTool.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ std::shared_ptr<TasToolParams> SetAngleTool::ParseParams(std::vector<std::string
5555
AngleToolsUtils::EasingType easingType;
5656
int i = 2;
5757

58+
if (vp[0] == "off") {
59+
if (vp.size() != 1) throw TasParserArgumentCountException(this, vp.size());
60+
return std::make_shared<SetAngleParams>();
61+
}
62+
5863
if (vp[0] == "ahead") {
5964
if (vp.size() > 3) throw TasParserArgumentCountException(this, vp.size());
6065
target = vp[0];

0 commit comments

Comments
 (0)