updated build system

This commit is contained in:
Scott E. Graves 2024-08-02 15:22:01 -05:00
parent 89cd8c8fd0
commit fcd38db2ef
2 changed files with 2 additions and 1 deletions

View File

@ -706,6 +706,7 @@ void app_config::save() {
}
config_changed_ = false;
json data = get_json();
std::cout << "saving: " << data.dump() << std::endl;
auto success = false;
for (auto i = 0U; not success && (i < retry_save_count); i++) {
success = utils::file::write_json_file(file_path, data);

View File

@ -79,7 +79,7 @@ public:
std::size_t *total_written = nullptr) -> bool {
auto str_data = data.dump();
return write_(reinterpret_cast<const unsigned char *>(str_data.c_str()),
data.size(), 0U, total_written);
str_data.size(), 0U, total_written);
}
#endif // defined(PROJECT_ENABLE_JSON)