mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +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:
@@ -75,7 +75,7 @@ void ExternalFileLevelStorage::savePlayerData(LevelData* levelData, std::vector<
|
||||
FILE* pFile = fopen((m_levelDirPath + "/" + "player.dat").c_str(), "wb");
|
||||
if (!pFile)
|
||||
{
|
||||
LogMsg("Not saving player data");
|
||||
LOG_W("Not saving player data");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ void ExternalFileLevelStorage::save(Level* level, LevelChunk* chunk)
|
||||
SAFE_DELETE(m_pRegionFile);
|
||||
m_pRegionFile = nullptr;
|
||||
|
||||
LogMsg("Not saving :( (x: %d z: %d)", chunk->m_chunkX, chunk->m_chunkZ);
|
||||
LOG_W("Not saving :( (x: %d z: %d)", chunk->m_chunkX, chunk->m_chunkZ);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ void ExternalFileLevelStorageSource::getLevelList(std::vector<LevelSummary>& vls
|
||||
if (!de)
|
||||
break;
|
||||
|
||||
LogMsg("Entry: %s", de->d_name);
|
||||
LOG_I("Entry: %s", de->d_name);
|
||||
|
||||
if (de->d_type == DT_DIR)
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ bool MemoryLevelStorageSource::isNewLevelIdAcceptable(const std::string& x)
|
||||
|
||||
void MemoryLevelStorageSource::deleteLevel(const std::string& x)
|
||||
{
|
||||
LogMsg("Delete level: %s", x.c_str());
|
||||
LOG_I("Delete level: %s", x.c_str());
|
||||
}
|
||||
|
||||
void MemoryLevelStorageSource::renameLevel(const std::string& x, const std::string& y)
|
||||
|
||||
Reference in New Issue
Block a user