summaryrefslogtreecommitdiffhomepage
path: root/proto-ft/ftnoir_protocol_ft.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-04-06 16:25:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-04-06 16:25:05 +0200
commit926b2b16c8df2e7c54de10780860176d2277e9b1 (patch)
tree3424a07f6ef6e226a59f4006777c6d6bd620fc05 /proto-ft/ftnoir_protocol_ft.h
parent5ac80f5ed0dfff50af05d064401c37f88a28f894 (diff)
proto/ft: make clear registry path on quit optional
Make clearing the dll path optional, defaulting to false. See previous commit. It has a side effect of games started before opentrack not seeing any dll path, and loading nothing. That is, opentrack only functions when tracking is started before a game is started. Issue: #332
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.h')
-rwxr-xr-xproto-ft/ftnoir_protocol_ft.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.h b/proto-ft/ftnoir_protocol_ft.h
index 8940e5d8..b5b802bd 100755
--- a/proto-ft/ftnoir_protocol_ft.h
+++ b/proto-ft/ftnoir_protocol_ft.h
@@ -27,11 +27,12 @@ using namespace options;
struct settings : opts {
value<int> intUsedInterface;
- value<bool> useTIRViews;
+ value<bool> useTIRViews, close_protocols_on_exit;
settings() :
opts("proto-freetrack"),
intUsedInterface(b, "used-interfaces", 0),
- useTIRViews(b, "use-memory-hacks", false)
+ useTIRViews(b, "use-memory-hacks", false),
+ close_protocols_on_exit(b, "close-protocols-on-exit", false)
{}
};
@@ -45,6 +46,7 @@ struct runonce
virtual void try_exit() = 0;
virtual bool is_first_run() = 0;
virtual ~runonce() {}
+ virtual void set_enabled(bool flag) = 0;
};
class FTNoIR_Protocol : public IProtocol