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

@@ -22,6 +22,8 @@
// This is the sorting function.
static bool compare_info(data::TitleInfo *infoA, data::TitleInfo *infoB);
// ---- Construction ----
SaveCreateState::SaveCreateState(data::User *user, TitleSelectCommon *titleSelect)
: m_user(user)
, m_titleSelect(titleSelect)
@@ -34,6 +36,8 @@ SaveCreateState::SaveCreateState(data::User *user, TitleSelectCommon *titleSelec
SaveCreateState::initialize_data_struct();
}
// ---- Public functions ----
void SaveCreateState::update()
{
const bool hasFocus = BaseState::has_focus();
@@ -67,6 +71,8 @@ void SaveCreateState::render()
void SaveCreateState::refresh_required() { m_refreshRequired.store(true); }
// ---- Private functions ----
void SaveCreateState::initialize_static_members()
{
if (!sm_slidePanel) { sm_slidePanel = std::make_unique<ui::SlideOutPanel>(640, ui::SlideOutPanel::Side::Right); }
@@ -130,6 +136,8 @@ void SaveCreateState::deactivate_state()
BaseState::deactivate();
}
// ---- Static functions ----
static bool compare_info(data::TitleInfo *infoA, data::TitleInfo *infoB)
{
// Get pointers to both titles.