From 6482a7e2582867d51c19bb12d513bc52dde2cc66 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 29 Jun 2016 13:05:30 +0200 Subject: compat/options: separate module dll names from rest of settings The other settings are modified by the options dialog. These are in the main ui. We need to be able to save modules without saving the options dialog. --- opentrack-logic/state.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'opentrack-logic/state.hpp') diff --git a/opentrack-logic/state.hpp b/opentrack-logic/state.hpp index ff46cc36..f9bb82c0 100644 --- a/opentrack-logic/state.hpp +++ b/opentrack-logic/state.hpp @@ -17,13 +17,15 @@ using namespace options; #include "selected-libraries.hpp" #include "work.hpp" -struct State { +struct State +{ State() : pose(std::vector{&s.a_x, &s.a_y, &s.a_z, &s.a_yaw, &s.a_pitch, &s.a_roll}) {} Modules modules; SelectedLibraries libs; main_settings s; + module_settings m; Mappings pose; mem work; }; -- cgit v1.2.3