From bf8f35b0230a8211e3c95705fe2510f1ea8168e1 Mon Sep 17 00:00:00 2001 From: Cvolton Date: Fri, 6 Oct 2023 18:19:13 +0200 Subject: [PATCH] disable stats v2 --- src/hooks/PlayLayer.cpp | 6 +++--- src/layers/ExtendedLevelInfo.cpp | 8 ++++---- src/main.cpp | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/hooks/PlayLayer.cpp b/src/hooks/PlayLayer.cpp index aa890d6..bbdf866 100644 --- a/src/hooks/PlayLayer.cpp +++ b/src/hooks/PlayLayer.cpp @@ -3,7 +3,7 @@ #include "../managers/BetterInfoScheduler.h" #include "../managers/BetterInfoStats.h" -#include "../managers/BetterInfoStatsV2.h" +//#include "../managers/BetterInfoStatsV2.h" #include "../managers/BetterInfoCache.h" using namespace geode::prelude; @@ -45,7 +45,7 @@ class $modify(BIPlayLayer, PlayLayer) { if(!m_isDead || needsReset) return; needsReset = true; - log::info("death x: {}", player->m_position.x); + /*log::info("death x: {}", player->m_position.x); log::info("death y: {}", player->m_position.y); log::info("death rotation: {}", player->getRotation()); log::info("percent: {}", m_lastDeathPercent); @@ -54,7 +54,7 @@ class $modify(BIPlayLayer, PlayLayer) { .x = player->m_position.x, .y = player->m_position.y, .rotation = player->getRotation() - }); + });*/ } void resetLevel(){ diff --git a/src/layers/ExtendedLevelInfo.cpp b/src/layers/ExtendedLevelInfo.cpp index 1e79883..dc30c38 100644 --- a/src/layers/ExtendedLevelInfo.cpp +++ b/src/layers/ExtendedLevelInfo.cpp @@ -3,7 +3,7 @@ #include "PaginatedFLAlert.h" #include "../utils.hpp" #include "../managers/BetterInfoStats.h" -#include "../managers/BetterInfoStatsV2.h" +//#include "../managers/BetterInfoStatsV2.h" #include "../managers/BetterInfoCache.h" #include @@ -417,7 +417,7 @@ void ExtendedLevelInfo::showProgressDialog(GJGameLevel* level){ if(level->m_levelType != GJLevelType::Editor){ auto stats = BetterInfoStats::sharedState(); - auto statsV2 = BetterInfoStatsV2::sharedState(); + //auto statsV2 = BetterInfoStatsV2::sharedState(); contentStream << "\nNormal: " << level->m_normalPercent << "%\nPractice: " << level->m_practicePercent << "%"; @@ -426,7 +426,7 @@ void ExtendedLevelInfo::showProgressDialog(GJGameLevel* level){ auto normalAttempts = stats->getAttempts(level, false); auto practiceAttempts = stats->getAttempts(level, true); - auto commonFail = statsV2->getCommonFail(level); + //auto commonFail = statsV2->getCommonFail(level); secondStream << "Attempts (normal): " << normalAttempts << "\n"; secondStream << "Attempts (practice): " << practiceAttempts << "\n"; if((normalAttempts + practiceAttempts) != level->m_attempts) secondStream << "Attempts (unknown): " << (level->m_attempts - practiceAttempts - normalAttempts) << "\n"; @@ -435,7 +435,7 @@ void ExtendedLevelInfo::showProgressDialog(GJGameLevel* level){ if(stats->getPlay(level, true) != 0) secondStream << "Last played: " << BetterInfo::timeToString(stats->getPlay(level, true)) << "\n"; if(stats->getCompletion(level, false) > 0) secondStream << "Completed: " << BetterInfo::timeToString(stats->getCompletion(level, false)) << "\n"; if(stats->getCompletion(level, true) > 0) secondStream << "Completed (practice): " << BetterInfo::timeToString(stats->getCompletion(level, true)) << "\n"; - secondStream << "Common fail: " << commonFail.first << "% (" << commonFail.second << "x)\n"; + //secondStream << "Common fail: " << commonFail.first << "% (" << commonFail.second << "x)\n"; }else{ contentStream << "\nObjects: " << level->m_objectCount << "\nIn Editor: " << ExtendedLevelInfo::workingTime(level->m_workingTime) << "\n"; diff --git a/src/main.cpp b/src/main.cpp index d1987fb..dc8735a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,7 +2,7 @@ #include -#include "managers/BetterInfoStatsV2.h" +//#include "managers/BetterInfoStatsV2.h" #include "managers/BetterInfoCache.h" using namespace geode::prelude; @@ -53,7 +53,7 @@ void setupPageLimitBypass() { void loadManagers() { std::thread([] { - BetterInfoStatsV2::sharedState(); + //BetterInfoStatsV2::sharedState(); BetterInfoCache::sharedState(); }).detach(); }