Skip to content

Commit

Permalink
disable stats v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Oct 6, 2023
1 parent eb4db5f commit bf8f35b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/hooks/PlayLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -54,7 +54,7 @@ class $modify(BIPlayLayer, PlayLayer) {
.x = player->m_position.x,
.y = player->m_position.y,
.rotation = player->getRotation()
});
});*/
}

void resetLevel(){
Expand Down
8 changes: 4 additions & 4 deletions src/layers/ExtendedLevelInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <deque>
Expand Down Expand Up @@ -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 << "\n<cp>Normal</c>: " << level->m_normalPercent
<< "%\n<co>Practice</c>: " << level->m_practicePercent << "%";
Expand All @@ -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 << "<cp>Attempts (normal)</c>: " << normalAttempts << "\n";
secondStream << "<co>Attempts (practice)</c>: " << practiceAttempts << "\n";
if((normalAttempts + practiceAttempts) != level->m_attempts) secondStream << "<cy>Attempts (unknown)</c>: " << (level->m_attempts - practiceAttempts - normalAttempts) << "\n";
Expand All @@ -435,7 +435,7 @@ void ExtendedLevelInfo::showProgressDialog(GJGameLevel* level){
if(stats->getPlay(level, true) != 0) secondStream << "<cl>Last played</c>: " << BetterInfo::timeToString(stats->getPlay(level, true)) << "\n";
if(stats->getCompletion(level, false) > 0) secondStream << "<cp>Completed</c>: " << BetterInfo::timeToString(stats->getCompletion(level, false)) << "\n";
if(stats->getCompletion(level, true) > 0) secondStream << "<co>Completed (practice)</c>: " << BetterInfo::timeToString(stats->getCompletion(level, true)) << "\n";
secondStream << "<co>Common fail:</c> " << commonFail.first << "% (" << commonFail.second << "x)\n";
//secondStream << "<co>Common fail:</c> " << commonFail.first << "% (" << commonFail.second << "x)\n";
}else{
contentStream << "\n<cp>Objects</c>: " << level->m_objectCount
<< "\n<cr>In Editor</c>: " << ExtendedLevelInfo::workingTime(level->m_workingTime) << "\n";
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <thread>

#include "managers/BetterInfoStatsV2.h"
//#include "managers/BetterInfoStatsV2.h"
#include "managers/BetterInfoCache.h"

using namespace geode::prelude;
Expand Down Expand Up @@ -53,7 +53,7 @@ void setupPageLimitBypass() {

void loadManagers() {
std::thread([] {
BetterInfoStatsV2::sharedState();
//BetterInfoStatsV2::sharedState();
BetterInfoCache::sharedState();
}).detach();
}
Expand Down

0 comments on commit bf8f35b

Please sign in to comment.