* Remove debug console - it's now behind a GameMod

* Remove log counter.
This commit is contained in:
iProgramInCpp
2023-08-28 20:45:05 +03:00
parent 08aadb8535
commit d88e0a7643
4 changed files with 7 additions and 7 deletions

View File

@@ -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" << " logs: " << logs;
debugText << "\n" << m_shownFPS << " fps, " << m_shownChunkUpdates << " chunk updates";
if (m_pMinecraft->m_options.m_bDebugText)
{

View File

@@ -4,8 +4,6 @@
#include "Logger.hpp"
#include "Util.hpp"
extern int logs;
Logger* Logger::m_singleton = nullptr;
Logger* const Logger::singleton()
@@ -28,8 +26,9 @@ Logger::~Logger()
void Logger::print(const char* const str)
{
// iProgramInCpp changed this to printf because he was worried that
// the std::cout features wouldn't work in emscripten.
::printf("%s\n", str);
logs++;
}
void Logger::print(std::string str)