From 544a8632fb356ec07cb5beb1f455119fc85ef293 Mon Sep 17 00:00:00 2001 From: craftablescience Date: Wed, 10 Apr 2024 02:51:28 -0400 Subject: [PATCH] chore: bump bufferstream --- src/fgdpp/fgdpp.cpp | 6 +++--- src/thirdparty/bufferstream | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fgdpp/fgdpp.cpp b/src/fgdpp/fgdpp.cpp index a244ca18f..20a11d3cc 100644 --- a/src/fgdpp/fgdpp.cpp +++ b/src/fgdpp/fgdpp.cpp @@ -258,7 +258,7 @@ FGD::FGD(std::string_view path, bool parseIncludes) { return; } - auto fileSize = static_cast(std::filesystem::file_size(std::filesystem::path{path})); + auto fileSize = static_cast(std::filesystem::file_size(path)); this->rawFGDFile = std::string(fileSize, ' '); file.read(this->rawFGDFile.data(), fileSize); file.close(); @@ -285,11 +285,11 @@ FGD::FGD(std::string_view path, bool parseIncludes) { exclusionList.push_back(currentPath); - auto includeFilePath = std::string{dirPath} + std::filesystem::path::preferred_separator + match[1].str(); + auto includeFilePath = std::string{dirPath} + '/' + match[1].str(); file.open(includeFilePath); if (!file.is_open()) continue; - auto includeSize = static_cast(std::filesystem::file_size(std::filesystem::path{includeFilePath})); + auto includeSize = static_cast(std::filesystem::file_size(includeFilePath)); std::string includeFileContents(includeSize, ' '); file.read(includeFileContents.data(), includeSize); file.close(); diff --git a/src/thirdparty/bufferstream b/src/thirdparty/bufferstream index 825aa17b3..34e044f1c 160000 --- a/src/thirdparty/bufferstream +++ b/src/thirdparty/bufferstream @@ -1 +1 @@ -Subproject commit 825aa17b3f53bb2bad56d1cf25e022e5d47bb298 +Subproject commit 34e044f1cfdf0dcf7df6f69f48c8266ebe92e9b6