diff options
| author | untodesu <kirill@untode.su> | 2025-09-11 14:13:39 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-09-11 14:13:39 +0500 |
| commit | 8784cbfebcb8a0220fb947a6070032e20b80fc2f (patch) | |
| tree | 2e03a2c013ed7b19a5dafaba1ddfb05c1878449a /core/utils/physfs.hh | |
| parent | f0cc06c7388acb32b86301965c5b2547e4e3b919 (diff) | |
| download | voxelius-8784cbfebcb8a0220fb947a6070032e20b80fc2f.tar.bz2 voxelius-8784cbfebcb8a0220fb947a6070032e20b80fc2f.zip | |
Another qfengine graft: resource management
DECOPYPASTA DECOPYPASTA DECOPYPASTA DECOPYPASTA
Diffstat (limited to 'core/utils/physfs.hh')
| -rw-r--r-- | core/utils/physfs.hh | 18 |
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 |
