Refactoring, fixes.

This commit is contained in:
J-D-K
2025-08-06 19:35:23 -04:00
parent 211f55fdaf
commit 884f1a36f9
97 changed files with 3070 additions and 2186 deletions

View File

@@ -1,18 +1,20 @@
#include "appstates/BaseState.hpp"
#include "error.hpp"
#include <switch.h>
BaseState::BaseState(bool isClosable)
: m_isClosable{isClosable}
: m_isClosable(isClosable)
{
if (m_isClosable) { return; }
appletBeginBlockingHomeButton(0);
error::libnx(appletBeginBlockingHomeButton(0));
}
BaseState::~BaseState()
{
if (m_isClosable) { return; }
appletEndBlockingHomeButton();
error::libnx(appletEndBlockingHomeButton());
}
void BaseState::deactivate() { m_isActive = false; }