diff options
author | zaaarf <me@zaaarf.foo> | 2024-05-15 10:57:21 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-07-07 01:11:10 +0200 |
commit | 71b846dc5dd1ac49626c8b479571050224a4cca1 (patch) | |
tree | d38d333b55e6ec42c28adf4554153aad378159fc /src/openvic-simulation/dataloader/Vic2PathSearch.cpp | |
parent | 8c8b9349e26b4f606e18810a201ff378eaac19b2 (diff) |
Update OpenVicProject/OpenVic-Dataloader@4a49007dryad
Update .clang-format categories
Move type_name and SelfType functioanlity to utility/Getters
Diffstat (limited to 'src/openvic-simulation/dataloader/Vic2PathSearch.cpp')
-rw-r--r-- | src/openvic-simulation/dataloader/Vic2PathSearch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/dataloader/Vic2PathSearch.cpp b/src/openvic-simulation/dataloader/Vic2PathSearch.cpp index dd36f28..bc30b6e 100644 --- a/src/openvic-simulation/dataloader/Vic2PathSearch.cpp +++ b/src/openvic-simulation/dataloader/Vic2PathSearch.cpp @@ -182,7 +182,7 @@ static fs::path _search_for_game_path(fs::path hint_path = {}) { lexy_vdf::Parser parser; std::string buffer; - auto error_log_stream = detail::CallbackStream { + auto error_log_stream = detail::make_callback_stream<char>( [](void const* s, std::streamsize n, void* user_data) -> std::streamsize { if (s != nullptr && n > 0 && user_data != nullptr) { static_cast<std::string*>(user_data)->append(static_cast<char const*>(s), n); @@ -193,7 +193,7 @@ static fs::path _search_for_game_path(fs::path hint_path = {}) { } }, &buffer - }; + ); parser.set_error_log_to(error_log_stream); parser.load_from_file(current_path); |