mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
Logging cleanup (#69)
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 * Output/Logging Overhaul * Added StandardOut class * Renamed LOGX macros to LOG_X * Removed LogMsg macros in favor of LOG_X * Added console window for debug Windows builds * Updated Xcode Project + StandardOut.hpp + StandardOut.cpp * StandardOut_windows * Replaced the Windows #ifdefs in StandardOut with StandardOut_windows --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
@@ -89,6 +89,8 @@ Minecraft::Minecraft() :
|
||||
m_fLastUpdated = 0;
|
||||
m_fDeltaTime = 0;
|
||||
|
||||
m_standardOut = new StandardOut();
|
||||
|
||||
#ifndef ORIGINAL_CODE
|
||||
m_pTurnInput = new MouseTurnInput(this);
|
||||
#else
|
||||
@@ -797,6 +799,7 @@ Minecraft::~Minecraft()
|
||||
SAFE_DELETE(m_pUser);
|
||||
SAFE_DELETE(m_pLevelStorageSource);
|
||||
SAFE_DELETE(m_pTurnInput);
|
||||
SAFE_DELETE(m_standardOut);
|
||||
|
||||
//@BUG: potentially leaking a CThread instance if this is destroyed early?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user