mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
* Rename Logger_windows -> LoggerWindows
* Add logger support for SDL base
This commit is contained in:
@@ -12,6 +12,7 @@ add_library(reminecraftpe-core STATIC
|
||||
common/Timer.cpp
|
||||
common/CThread.cpp
|
||||
common/Util.cpp
|
||||
common/Logger.cpp
|
||||
network/packets/UpdateBlockPacket.cpp
|
||||
network/packets/RequestChunkPacket.cpp
|
||||
network/packets/PlayerEquipmentPacket.cpp
|
||||
|
||||
@@ -525,7 +525,7 @@ void GameRenderer::renderLevel(float f)
|
||||
if (bAnaglyph)
|
||||
glColorMask(true, true, true, false);
|
||||
}
|
||||
|
||||
int logs = 0;
|
||||
void GameRenderer::render(float f)
|
||||
{
|
||||
if (m_pMinecraft->m_pLocalPlayer && m_pMinecraft->m_bGrabbedMouse)
|
||||
@@ -636,7 +636,7 @@ void GameRenderer::render(float f)
|
||||
|
||||
std::stringstream debugText;
|
||||
debugText << "ReMinecraftPE " << m_pMinecraft->getVersionString();
|
||||
debugText << "\n" << m_shownFPS << " fps, " << m_shownChunkUpdates << " chunk updates";
|
||||
debugText << "\n" << m_shownFPS << " fps, " << m_shownChunkUpdates << " chunk updates" << " logs: " << logs;
|
||||
|
||||
if (m_pMinecraft->m_options.m_bDebugText)
|
||||
{
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
#include "Logger.hpp"
|
||||
#include "Util.hpp"
|
||||
|
||||
extern int logs;
|
||||
|
||||
Logger* Logger::m_singleton = nullptr;
|
||||
|
||||
Logger* const Logger::singleton()
|
||||
@@ -26,7 +28,8 @@ Logger::~Logger()
|
||||
|
||||
void Logger::print(const char* const str)
|
||||
{
|
||||
std::cout << str << std::endl;
|
||||
::printf("%s\n", str);
|
||||
logs++;
|
||||
}
|
||||
|
||||
void Logger::print(std::string str)
|
||||
|
||||
Reference in New Issue
Block a user