diff options
author | rtk0c <[email protected]> | 2022-03-15 22:29:53 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-03-15 22:29:53 -0700 |
commit | ee450783622008698647010540d9b9a9d55cb323 (patch) | |
tree | 67088fa2da506a5229fea47b6a812d38b18304a0 /core/src/Utils/IO/CstdioFile.hpp | |
parent | 9dcdcf68f6a60741cbdd287e7eda23b4a21a080e (diff) |
Temporarily switch to cstdio instead of custom FileStream implementation
Diffstat (limited to 'core/src/Utils/IO/CstdioFile.hpp')
-rw-r--r-- | core/src/Utils/IO/CstdioFile.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
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 <cstdio> +#include <filesystem> + +namespace FileUtils { + +enum IoMode +{ + IM_Read, + IM_WriteAppend, + IM_WriteTruncate, +}; + +FILE* OpenCstdioFile(const std::filesystem::path& path, IoMode mode); + +} // namespace FileUtils |