Add comments to states.

This commit is contained in:
J-D-K
2025-10-30 13:34:03 -04:00
parent 17410fd8a9
commit ec2417d068
32 changed files with 226 additions and 34 deletions

View File

@@ -4,6 +4,7 @@
#include <switch.h>
// ---- Construction ----
BaseState::BaseState(bool isClosable)
: m_isClosable(isClosable)
{
@@ -17,6 +18,8 @@ BaseState::~BaseState()
error::libnx(appletEndBlockingHomeButtonShortAndLongPressed());
}
// ---- Public functions ----
void BaseState::deactivate() { m_isActive = false; }
void BaseState::reactivate() { m_isActive = true; }