Debugging everywhere!

This commit is contained in:
J-D-K
2025-07-28 18:28:11 -04:00
parent 721585c117
commit b9b3acf7f2
56 changed files with 1322 additions and 1019 deletions

View File

@@ -1,6 +1,9 @@
#include "appstates/BaseTask.hpp"
#include "colors.hpp"
#include "input.hpp"
#include "strings.hpp"
#include "ui/PopMessageManager.hpp"
namespace
{
@@ -9,23 +12,28 @@ namespace
} // namespace
BaseTask::BaseTask()
: BaseState(false)
: BaseState{false}
, m_popUnableExit{strings::get_by_name(strings::names::GENERAL_POPS, 0)}
{
m_frameTimer.start(TICKS_GLYPH_TRIGGER);
}
void BaseTask::update()
{
const bool plusPressed = input::button_pressed(HidNpadButton_Plus);
if (!m_task->is_running())
{
BaseState::deactivate();
return;
}
else if (plusPressed) { ui::PopMessageManager::push_message(ui::PopMessageManager::DEFAULT_TICKS, m_popUnableExit); }
m_colorMod.update();
// Just bail if the timer wasn't triggered yet.
if (!m_frameTimer.is_triggered()) { return; }
if (++m_currentFrame >= 8) { m_currentFrame = 0; }
m_colorMod.update();
}
void BaseTask::render_loading_glyph()