From ee450783622008698647010540d9b9a9d55cb323 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 15 Mar 2022 22:29:53 -0700 Subject: Temporarily switch to cstdio instead of custom FileStream implementation --- core/src/Utils/IO/CstdioFile.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 core/src/Utils/IO/CstdioFile.hpp (limited to 'core/src/Utils/IO/CstdioFile.hpp') diff --git a/core/src/Utils/IO/CstdioFile.hpp b/core/src/Utils/IO/CstdioFile.hpp new file mode 100644 index 0000000..e863dd5 --- /dev/null +++ b/core/src/Utils/IO/CstdioFile.hpp @@ -0,0 +1,17 @@ +#pragma once + +#include +#include + +namespace FileUtils { + +enum IoMode +{ + IM_Read, + IM_WriteAppend, + IM_WriteTruncate, +}; + +FILE* OpenCstdioFile(const std::filesystem::path& path, IoMode mode); + +} // namespace FileUtils -- cgit v1.2.3-70-g09d2