about summary refs log tree commit diff stats
path: root/src/tracker_config.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-03-06 14:09:02 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2025-03-06 14:09:02 -0500
commit6e7146714e0af2145c8c6cda3da4e2a54b469cb6 (patch)
tree01e2bbc7100629ff612f47063b2e89aee0ea216b /src/tracker_config.cpp
parent85c02f71f81e5d5d250d4ad3f39edc5394902c99 (diff)
downloadlingo-ap-tracker-6e7146714e0af2145c8c6cda3da4e2a54b469cb6.tar.gz
lingo-ap-tracker-6e7146714e0af2145c8c6cda3da4e2a54b469cb6.tar.bz2
lingo-ap-tracker-6e7146714e0af2145c8c6cda3da4e2a54b469cb6.zip
Added setting for disabling player position tracking
Diffstat (limited to 'src/tracker_config.cpp')
-rw-r--r--src/tracker_config.cpp2
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;