From a7ff8d9e1db29d871b310f0ac00f16ddd40d7577 Mon Sep 17 00:00:00 2001 From: blahpy Date: Fri, 11 Sep 2020 09:24:03 +1200 Subject: [PATCH] Format using clang-format --- common/util/FileUtil.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/common/util/FileUtil.cpp b/common/util/FileUtil.cpp index 40c13d5a64..163bc7d2ee 100644 --- a/common/util/FileUtil.cpp +++ b/common/util/FileUtil.cpp @@ -12,17 +12,19 @@ std::string FileUtil::GetProjectPath() { #ifdef _WIN32 char buffer[FILENAME_MAX]; GetModuleFileNameA(NULL, buffer, FILENAME_MAX); - std::string::size_type pos = - std::string(buffer).rfind("\\jak-project\\"); // Strip file path down to \jak-project\ directory - return std::string(buffer).substr(0, pos + 12); // + 12 to include "\jak-project" in the returned filepath + std::string::size_type pos = std::string(buffer).rfind( + "\\jak-project\\"); // Strip file path down to \jak-project\ directory + return std::string(buffer).substr( + 0, pos + 12); // + 12 to include "\jak-project" in the returned filepath #else // do Linux stuff char buffer[FILENAME_MAX]; readlink("/proc/self/exe", buffer, FILENAME_MAX); // /proc/self acts like a "virtual folder" containing information about // the current process - std::string::size_type pos = - std::string(buffer).find_last_of("/jak-project/"); // Strip file path down to /jak-project/ directory - return std::string(buffer).substr(0, pos + 12); // + 12 to include "/jak-project" in the returned filepath + std::string::size_type pos = std::string(buffer).find_last_of( + "/jak-project/"); // Strip file path down to /jak-project/ directory + return std::string(buffer).substr( + 0, pos + 12); // + 12 to include "/jak-project" in the returned filepath #endif }