summaryrefslogtreecommitdiffstats
path: root/src/core/io/physfs.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/io/physfs.hh')
-rw-r--r--src/core/io/physfs.hh17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/core/io/physfs.hh b/src/core/io/physfs.hh
index 88f97de..8cf84be 100644
--- a/src/core/io/physfs.hh
+++ b/src/core/io/physfs.hh
@@ -1,8 +1,23 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: physfs.hh
+// Description: PhysFS utilities
+
+#ifndef CORE_IO_PHYSFS_HH
+#define CORE_IO_PHYSFS_HH
#pragma once
+namespace physfs
+{
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 physfs
+
+namespace physfs
+{
+std::string_view last_error(void);
+} // namespace physfs
-std::string_view physfs_error(void);
+#endif