From 6c2abde5c99a236453b795abaa6d7d70105e31f7 Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 26 Dec 2025 14:50:33 +0500 Subject: Just a big Ctrl+H refactoring --- src/core/io/physfs.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/io/physfs.cc') 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& buffer) +bool read_file(std::string_view path, std::vector& buffer) { auto file = PHYSFS_openRead(std::string(path).c_str()); @@ -20,7 +20,7 @@ bool io::read_file(std::string_view path, std::vector& 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& buffer) +bool write_file(std::string_view path, const std::vector& 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& 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); -- cgit