aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/Vic2PathSearch.cpp
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2024-07-07 20:58:13 +0200
committer GitHub <noreply@github.com>2024-07-07 20:58:13 +0200
commit2275b40b519bdbc8ee707ca2373ea167a72625ab (patch)
treed38d333b55e6ec42c28adf4554153aad378159fc /src/openvic-simulation/dataloader/Vic2PathSearch.cpp
parent8c8b9349e26b4f606e18810a201ff378eaac19b2 (diff)
parent71b846dc5dd1ac49626c8b479571050224a4cca1 (diff)
Merge pull request #169 from OpenVicProject/dryad
Update OpenVicProject/OpenVic-Dataloader@4a49007
Diffstat (limited to 'src/openvic-simulation/dataloader/Vic2PathSearch.cpp')
-rw-r--r--src/openvic-simulation/dataloader/Vic2PathSearch.cpp4
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);