diff options
| author | untodesu <kirill@untode.su> | 2025-12-26 14:50:33 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-26 14:50:33 +0500 |
| commit | 6c2abde5c99a236453b795abaa6d7d70105e31f7 (patch) | |
| tree | f085049b9615a7d03cca5de40adb6529d6c13e11 /src/core/io/physfs.cc | |
| parent | f40d09cb8f712e87691af4912f3630d92d692779 (diff) | |
| download | voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.tar.bz2 voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.zip | |
Just a big Ctrl+H refactoring
Diffstat (limited to 'src/core/io/physfs.cc')
| -rw-r--r-- | src/core/io/physfs.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/io/physfs.cc b/src/core/io/physfs.cc index 1c36f88..b9fe91e 100644 --- a/src/core/io/physfs.cc +++ b/src/core/io/physfs.cc @@ -2,7 +2,7 @@ #include "core/io/physfs.hh" -bool io::read_file(std::string_view path, std::vector<std::byte>& buffer) +bool read_file(std::string_view path, std::vector<std::byte>& buffer) { auto file = PHYSFS_openRead(std::string(path).c_str()); @@ -20,7 +20,7 @@ bool io::read_file(std::string_view path, std::vector<std::byte>& buffer) return true; } -bool io::read_file(std::string_view path, std::string& buffer) +bool read_file(std::string_view path, std::string& buffer) { auto file = PHYSFS_openRead(std::string(path).c_str()); @@ -38,7 +38,7 @@ bool io::read_file(std::string_view path, std::string& buffer) return true; } -bool io::write_file(std::string_view path, const std::vector<std::byte>& buffer) +bool write_file(std::string_view path, const std::vector<std::byte>& buffer) { auto file = PHYSFS_openWrite(std::string(path).c_str()); @@ -53,7 +53,7 @@ bool io::write_file(std::string_view path, const std::vector<std::byte>& buffer) return true; } -bool io::write_file(std::string_view path, const std::string& buffer) +bool write_file(std::string_view path, const std::string& buffer) { auto file = PHYSFS_openWrite(std::string(path).c_str()); @@ -68,7 +68,7 @@ bool io::write_file(std::string_view path, const std::string& buffer) return true; } -std::string_view io::physfs_error(void) +std::string_view physfs_error(void) { auto error_code = PHYSFS_getLastErrorCode(); auto error_string = PHYSFS_getErrorByCode(error_code); |
