Skip to content

Commit

Permalink
Fix issues with battlelog syncing (#33)
Browse files Browse the repository at this point in the history
* Add process_curl_result to debug syncing

* Log headers, redact some stuff, need F9 to see headers

* Try defining versions

* Make it so #33!
  • Loading branch information
netniV authored May 10, 2024
1 parent affc95f commit a2012af
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 72 deletions.
2 changes: 2 additions & 0 deletions mods/src/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,10 @@ void Config::Load()
this->fix_unity_web_requests = get_config_or_default(config, parsed, "tech", "fix_unity_web_requests", true);

this->sync_url = get_config_or_default<std::string>(config, parsed, "sync", "url", "");
this->sync_proxy = get_config_or_default<std::string>(config, parsed, "sync", "proxy", "");
this->sync_file = get_config_or_default<std::string>(config, parsed, "sync", "file", "");
this->sync_token = get_config_or_default<std::string>(config, parsed, "sync", "token", "");
this->sync_logging = get_config_or_default(config, parsed, "sync", "logging", false);
this->sync_battlelogs = get_config_or_default(config, parsed, "sync", "battlelogs", false);
this->sync_resources = get_config_or_default(config, parsed, "sync", "resources", false);
this->sync_officer = get_config_or_default(config, parsed, "sync", "officer", false);
Expand Down
2 changes: 2 additions & 0 deletions mods/src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ class Config
bool always_skip_reveal_sequence;
bool stay_in_bundle_after_summary;

std::string sync_proxy;
std::string sync_url;
std::string sync_file;
std::string sync_token;
bool sync_logging;
bool sync_resources;
bool sync_battlelogs;
bool sync_officer;
Expand Down
Loading

0 comments on commit a2012af

Please sign in to comment.