From fcd38db2ef2e1ed3b1362304aea437fa3e4a091b Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 2 Aug 2024 15:22:01 -0500 Subject: [PATCH] updated build system --- repertory/librepertory/src/app_config.cpp | 1 + support/3rd_party/include/utils/file.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/repertory/librepertory/src/app_config.cpp b/repertory/librepertory/src/app_config.cpp index 9fc65531..88ff5e51 100644 --- a/repertory/librepertory/src/app_config.cpp +++ b/repertory/librepertory/src/app_config.cpp @@ -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); diff --git a/support/3rd_party/include/utils/file.hpp b/support/3rd_party/include/utils/file.hpp index c07f0699..20a982c2 100644 --- a/support/3rd_party/include/utils/file.hpp +++ b/support/3rd_party/include/utils/file.hpp @@ -79,7 +79,7 @@ public: std::size_t *total_written = nullptr) -> bool { auto str_data = data.dump(); return write_(reinterpret_cast(str_data.c_str()), - data.size(), 0U, total_written); + str_data.size(), 0U, total_written); } #endif // defined(PROJECT_ENABLE_JSON)