diff options
| author | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
| commit | 0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch) | |
| tree | 90ddefa28b40b6384dd9618bb7573704de2733a9 /src/core/io/physfs.hh | |
| parent | 6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff) | |
| download | voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2 voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip | |
Add include guards and header comments to sources
Diffstat (limited to 'src/core/io/physfs.hh')
| -rw-r--r-- | src/core/io/physfs.hh | 17 |
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 |
