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

@@ -21,6 +21,8 @@
#include "tasks/update.hpp"
#include "ui/PopMessageManager.hpp"
// ---- Construction ----
MainMenuState::MainMenuState()
: m_renderTarget(sdl::TextureManager::load("mainMenuTarget", 200, 555, SDL_TEXTUREACCESS_TARGET))
, m_background(sdl::TextureManager::load("mainBackground", "romfs:/Textures/MenuBackground.png"))
@@ -37,6 +39,8 @@ MainMenuState::MainMenuState()
MainMenuState::check_for_update();
}
// ---- Public functions ----
void MainMenuState::update()
{
const int selected = m_mainMenu->get_selected();
@@ -110,6 +114,8 @@ void MainMenuState::refresh_view_states()
}
}
// ---- Private functions ----
void MainMenuState::initialize_settings_extras()
{
if (!sm_settingsState || !sm_extrasState)