mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-13 04:55:18 -05:00
Refactoring, fixes.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user