From a369e9617757d0acb0de1c9f010ec6eef87ab717 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 24 Dec 2019 22:35:49 +0100 Subject: [PATCH] Add last_guid to ProfileData. --- src/config.cpp | 2 ++ src/config.hpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/config.cpp b/src/config.cpp index 7248ae8..6eb25d9 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -56,6 +56,7 @@ std::ostream &operator <<(std::ostream &out, const ProfileData &data) out << "], " << "instance: \"" << data.instance << "\", " << "interval: " << data.interval << ", " + << "last_guid: \"" << data.last_guid << "\", " << "max_size: " << data.max_size << ", " << "skip: ["; for (const auto &skip : data.skip) @@ -226,6 +227,7 @@ void Config::parse() data.interval = static_cast(_json[_profile]["interval"].asUInt64()); } + data.last_guid = _json[_profile]["last_guid"].asString(); if (!_json[_profile]["max_size"].isNull()) { data.max_size = diff --git a/src/config.hpp b/src/config.hpp index 3e0bbd1..eee785f 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -46,6 +46,7 @@ struct ProfileData vector fixes; string instance; uint32_t interval{30}; + string last_guid; uint32_t max_size{500}; vector skip; bool titles_as_cw{false};