Skip to content

Commit

Permalink
chore: bump bufferstream
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Apr 10, 2024
1 parent d7abbf0 commit 19e3b5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/fgdpp/fgdpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ FGD::FGD(std::string_view path, bool parseIncludes) {
return;
}

auto fileSize = static_cast<std::streamsize>(std::filesystem::file_size(std::filesystem::path{path}));
auto fileSize = static_cast<std::streamsize>(std::filesystem::file_size(path));
this->rawFGDFile = std::string(fileSize, ' ');
file.read(this->rawFGDFile.data(), fileSize);
file.close();
Expand All @@ -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::streamsize>(std::filesystem::file_size(std::filesystem::path{includeFilePath}));
auto includeSize = static_cast<std::streamsize>(std::filesystem::file_size(includeFilePath));
std::string includeFileContents(includeSize, ' ');
file.read(includeFileContents.data(), includeSize);
file.close();
Expand Down
2 changes: 1 addition & 1 deletion src/thirdparty/bufferstream

0 comments on commit 19e3b5b

Please sign in to comment.