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.h | |
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 'src/OSSupport/File.h')
-rw-r--r-- | src/OSSupport/File.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/OSSupport/File.h b/src/OSSupport/File.h index 7a3333483..975b78cd7 100644 --- a/src/OSSupport/File.h +++ b/src/OSSupport/File.h @@ -158,25 +158,18 @@ public: /** Returns the path separator used by the current platform. Note that the platform / CRT may support additional path separators (such as slashes on Windows), these don't get reported. */ - static AString GetPathSeparator(void); + static AString GetPathSeparator(); /** Returns the customary executable extension used by the current platform. */ - static AString GetExecutableExt(void); + static AString GetExecutableExt(); // tolua_end /** Returns the list of all items in the specified folder (files, folders, nix pipes, whatever's there). */ static AStringVector GetFolderContents(const AString & a_Folder); // Exported in ManualBindings.cpp - int vPrintf(const char * a_Format, fmt::printf_args a_ArgList); - template <typename... Args> - int Printf(const char * a_Format, const Args & ... a_Args) - { - return vPrintf(a_Format, fmt::make_printf_args(a_Args...)); - } - /** Flushes all the bufferef output into the file (only when writing) */ - void Flush(void); + void Flush(); private: FILE * m_File; |