Add TeamSync configuration scaffold

This commit is contained in:
2026-06-11 21:53:48 -04:00
parent fe412ebd84
commit c4fb18b3b4
4 changed files with 128 additions and 0 deletions
+2
View File
@@ -19,6 +19,7 @@
#include "Text.hh"
#include "TextIndex.hh"
#include "AccountSync.hh"
#include "TeamSync.hh"
#ifdef PHOSG_WINDOWS
static constexpr bool IS_WINDOWS = true;
@@ -886,6 +887,7 @@ void ServerState::load_config_early() {
this->patch_client_idle_timeout_usecs = this->config_json->get_int("PatchClientIdleTimeout", 300000000);
AccountSync::configure_from_json(this->config_json->get("AccountSync", phosg::JSON::dict()));
AccountSync::start_login_lock_heartbeat_task(*this->io_context);
TeamSync::configure_from_json(this->config_json->get("TeamSync", phosg::JSON::dict()));
this->psopeeps_dcv2_exp_multiplier = this->config_json->get_int("PsoPeepsDCV2EXPMultiplier", 5);
if ((this->psopeeps_dcv2_exp_multiplier != 5) && (this->psopeeps_dcv2_exp_multiplier != 10)) {
throw std::runtime_error("PsoPeepsDCV2EXPMultiplier must be 5 or 10");