mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-12 12:35:26 -05:00
Add comments to states.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user