CTitleStateMenu: implemented rebooting into installer

This commit is contained in:
Hyper
2024-12-08 02:57:27 +00:00
parent fc9c7ffb3a
commit d69f0442a7
16 changed files with 123 additions and 25 deletions
+4 -4
View File
@@ -65,7 +65,7 @@ public:
{
case SDL_KEYDOWN:
{
if (g_isAppInit)
if (App::s_isInit)
break;
switch (event->key.keysym.scancode)
@@ -93,7 +93,7 @@ public:
case SDL_MOUSEBUTTONDOWN:
{
if (g_isAppInit)
if (App::s_isInit)
break;
g_isAccepted = true;
@@ -273,8 +273,8 @@ void MessageWindow::Draw()
auto textMarginX = Scale(37);
auto textMarginY = Scale(45);
bool isController = g_isAppInit ? true : hid::detail::IsInputDeviceController();
bool isKeyboard = g_isAppInit ? false : hid::detail::g_inputDevice == hid::detail::EInputDevice::Keyboard;
bool isController = App::s_isInit ? true : hid::detail::IsInputDeviceController();
bool isKeyboard = App::s_isInit ? false : hid::detail::g_inputDevice == hid::detail::EInputDevice::Keyboard;
if (DrawContainer(g_appearTime, centre, { textSize.x / 2 + textMarginX, textSize.y / 2 + textMarginY }, !g_isControlsVisible))
{