updated build system
This commit is contained in:
parent
89cd8c8fd0
commit
fcd38db2ef
@ -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);
|
||||
|
2
support/3rd_party/include/utils/file.hpp
vendored
2
support/3rd_party/include/utils/file.hpp
vendored
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user