diff options
Diffstat (limited to 'src/tracker_config.cpp')
| -rw-r--r-- | src/tracker_config.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/tracker_config.cpp b/src/tracker_config.cpp index 129dbbc..aeff669 100644 --- a/src/tracker_config.cpp +++ b/src/tracker_config.cpp | |||
| @@ -29,6 +29,7 @@ void TrackerConfig::Load() { | |||
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | ipc_address = file["ipc_address"].as<std::string>(); | 31 | ipc_address = file["ipc_address"].as<std::string>(); |
| 32 | track_position = file["track_position"].as<bool>(); | ||
| 32 | } catch (const std::exception&) { | 33 | } catch (const std::exception&) { |
| 33 | // It's fine if the file can't be loaded. | 34 | // It's fine if the file can't be loaded. |
| 34 | } | 35 | } |
| @@ -55,6 +56,7 @@ void TrackerConfig::Save() { | |||
| 55 | } | 56 | } |
| 56 | 57 | ||
| 57 | output["ipc_address"] = ipc_address; | 58 | output["ipc_address"] = ipc_address; |
| 59 | output["track_position"] = track_position; | ||
| 58 | 60 | ||
| 59 | std::ofstream filewriter(filename_); | 61 | std::ofstream filewriter(filename_); |
| 60 | filewriter << output; | 62 | filewriter << output; |
