From 8784cbfebcb8a0220fb947a6070032e20b80fc2f Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 14:13:39 +0500 Subject: Another qfengine graft: resource management DECOPYPASTA DECOPYPASTA DECOPYPASTA DECOPYPASTA --- core/utils/physfs.hh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 core/utils/physfs.hh (limited to 'core/utils/physfs.hh') 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& buffer); +bool read_file(std::string_view path, std::string& buffer); +bool write_file(std::string_view path, const std::vector& 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 -- cgit