diff options
author | Mattes D <github@xoft.cz> | 2023-05-11 22:05:17 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2023-05-16 23:50:37 +0200 |
commit | c9522fb740200ccef6230cec452c48efb31e5394 (patch) | |
tree | 7e74d70699e13dd0a92444a1a0add7a3059ac7ca /src/OSSupport/File.cpp | |
parent | Try a timeout for jobs. (diff) | |
download | cuberite-c9522fb740200ccef6230cec452c48efb31e5394.tar cuberite-c9522fb740200ccef6230cec452c48efb31e5394.tar.gz cuberite-c9522fb740200ccef6230cec452c48efb31e5394.tar.bz2 cuberite-c9522fb740200ccef6230cec452c48efb31e5394.tar.lz cuberite-c9522fb740200ccef6230cec452c48efb31e5394.tar.xz cuberite-c9522fb740200ccef6230cec452c48efb31e5394.tar.zst cuberite-c9522fb740200ccef6230cec452c48efb31e5394.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/File.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp index 618463bd6..ba90f4038 100644 --- a/src/OSSupport/File.cpp +++ b/src/OSSupport/File.cpp @@ -666,7 +666,7 @@ unsigned cFile::GetLastModificationTime(const AString & a_FileName) -AString cFile::GetPathSeparator(void) +AString cFile::GetPathSeparator() { #ifdef _WIN32 return "\\"; @@ -679,7 +679,7 @@ AString cFile::GetPathSeparator(void) -AString cFile::GetExecutableExt(void) +AString cFile::GetExecutableExt() { #ifdef _WIN32 return ".exe"; @@ -692,18 +692,7 @@ AString cFile::GetExecutableExt(void) -int cFile::vPrintf(const char * a_Format, fmt::printf_args a_ArgList) -{ - fmt::memory_buffer Buffer; - fmt::vprintf(Buffer, fmt::to_string_view(a_Format), a_ArgList); - return Write(Buffer.data(), Buffer.size()); -} - - - - - -void cFile::Flush(void) +void cFile::Flush() { fflush(m_File); } |