diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-29 20:22:03 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-29 20:22:03 +0100 |
commit | 7d03876a3e11aedff0201a8330bfdb2b5523fc5e (patch) | |
tree | 04f795a2ff37644aa47c0b0d86f648eec949fba3 /src/MCLogger.h | |
parent | Fixed redstone simulator crash found in #570 (diff) | |
download | cuberite-7d03876a3e11aedff0201a8330bfdb2b5523fc5e.tar cuberite-7d03876a3e11aedff0201a8330bfdb2b5523fc5e.tar.gz cuberite-7d03876a3e11aedff0201a8330bfdb2b5523fc5e.tar.bz2 cuberite-7d03876a3e11aedff0201a8330bfdb2b5523fc5e.tar.lz cuberite-7d03876a3e11aedff0201a8330bfdb2b5523fc5e.tar.xz cuberite-7d03876a3e11aedff0201a8330bfdb2b5523fc5e.tar.zst cuberite-7d03876a3e11aedff0201a8330bfdb2b5523fc5e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/MCLogger.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/MCLogger.h b/src/MCLogger.h index c949a4cdf..7bcc195dd 100644 --- a/src/MCLogger.h +++ b/src/MCLogger.h @@ -21,7 +21,7 @@ public: // tolua_export ~cMCLogger(); // tolua_export - void Log(const char* a_Format, va_list a_ArgList); + void Log(const char* a_Format, va_list a_ArgList, bool a_ShouldReplaceLine = false); void Info(const char* a_Format, va_list a_ArgList); void Warn(const char* a_Format, va_list a_ArgList); void Error(const char* a_Format, va_list a_ArgList); @@ -51,12 +51,17 @@ private: /// Common initialization for all constructors, creates a logfile with the specified name and assigns s_MCLogger to this void InitLog(const AString & a_FileName); + + /** Flag to show whether a 'replace line' log command has been issued + Used to decide when to put a newline */ + bool m_BeginLineUpdate = false; }; // tolua_export +extern void LOGREPLACELINE(const char* a_Format, ...); extern void LOG(const char* a_Format, ...); extern void LOGINFO(const char* a_Format, ...); extern void LOGWARN(const char* a_Format, ...); |