From f1ad43afafe72fcad67d5ff39469442a2740213f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 18 Apr 2023 12:50:31 -0400 Subject: Common/CommonFuncs: Move interface into Common namespace Gets these functions out of the global namespace. --- Source/Core/Common/FileUtil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/Common/FileUtil.cpp') diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index a9e7c35946..9a494ab2e0 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -358,14 +358,14 @@ u64 GetSize(FILE* f) const u64 pos = ftello(f); if (fseeko(f, 0, SEEK_END) != 0) { - ERROR_LOG_FMT(COMMON, "GetSize: seek failed {}: {}", fmt::ptr(f), LastStrerrorString()); + ERROR_LOG_FMT(COMMON, "GetSize: seek failed {}: {}", fmt::ptr(f), Common::LastStrerrorString()); return 0; } const u64 size = ftello(f); if ((size != pos) && (fseeko(f, pos, SEEK_SET) != 0)) { - ERROR_LOG_FMT(COMMON, "GetSize: seek failed {}: {}", fmt::ptr(f), LastStrerrorString()); + ERROR_LOG_FMT(COMMON, "GetSize: seek failed {}: {}", fmt::ptr(f), Common::LastStrerrorString()); return 0; } @@ -379,7 +379,7 @@ bool CreateEmptyFile(const std::string& filename) if (!File::IOFile(filename, "wb")) { - ERROR_LOG_FMT(COMMON, "CreateEmptyFile: failed {}: {}", filename, LastStrerrorString()); + ERROR_LOG_FMT(COMMON, "CreateEmptyFile: failed {}: {}", filename, Common::LastStrerrorString()); return false; } @@ -726,7 +726,7 @@ std::string GetBundleDirectory() std::string GetExePath() { #ifdef _WIN32 - auto exe_path = GetModuleName(nullptr); + auto exe_path = Common::GetModuleName(nullptr); if (!exe_path) return {}; std::error_code error; -- cgit v1.2.3