summaryrefslogtreecommitdiffstats
path: root/core/utils/physfs.hh
diff options
context:
space:
mode:
Diffstat (limited to 'core/utils/physfs.hh')
-rw-r--r--core/utils/physfs.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/utils/physfs.hh b/core/utils/physfs.hh
new file mode 100644
index 0000000..df5e392
--- /dev/null
+++ b/core/utils/physfs.hh
@@ -0,0 +1,18 @@
+#ifndef UTILS_PHYSFS_HH
+#define UTILS_PHYSFS_HH 1
+#pragma once
+
+namespace utils
+{
+bool read_file(std::string_view path, std::vector<std::byte>& buffer);
+bool read_file(std::string_view path, std::string& buffer);
+bool write_file(std::string_view path, const std::vector<std::byte>& buffer);
+bool write_file(std::string_view path, const std::string& buffer);
+} // namespace utils
+
+namespace utils
+{
+std::string_view physfs_error(void);
+} // namespace utils
+
+#endif // UTILS_PHYSFS_HH