From 175c7ec187784a9241c3b1dfcc090b3f0cbf06eb Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 27 Sep 2024 14:16:20 +0900 Subject: [PATCH] noGamesDialog tentative fix --- es-app/src/views/ViewController.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 5a5eaec2a..8f5a2297f 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -288,21 +288,19 @@ void ViewController::noGamesDialog() mRomDirectory = FileData::getROMDirectory(); #endif -#if defined(__ANDROID__) +#if defined(__RETRODECK__) mNoGamesMessageBox = new GuiMsgBox( - HelpStyle(), mNoGamesErrorMessage + mRomDirectory, -#elif defined(__RETRODECK__) - mNoGamesMessageBox = new GuiMsgBox( - HelpStyle(), mNoGamesErrorMessage + mRomDirectory, _("QUIT"), + HelpStyle(), + mNoGamesErrorMessage + mRomDirectory, + _("QUIT"), [] { SDL_Event quit {}; quit.type = SDL_QUIT; SDL_PushEvent(&quit); }, - "", nullptr, "", nullptr, nullptr, true, true, - (mRenderer->getIsVerticalOrientation() ? - 0.90f : - 0.62f * (1.778f / mRenderer->getScreenAspectRatio()))); +#elif defined(__ANDROID__) + mNoGamesMessageBox = new GuiMsgBox( + HelpStyle(), mNoGamesErrorMessage + mRomDirectory, #else mNoGamesMessageBox = new GuiMsgBox( HelpStyle(), mNoGamesErrorMessage + mRomDirectory, _("CHANGE ROM DIRECTORY"), @@ -419,12 +417,12 @@ void ViewController::noGamesDialog() "", nullptr, nullptr, true, false, (mRenderer->getIsVerticalOrientation() ? 0.90f : - 0.58f * (1.778f / mRenderer->getScreenAspectRatio()))); + 0.58f * (1.778f / mRenderer->getScreenAspectRatio())); #else nullptr, true, false, (mRenderer->getIsVerticalOrientation() ? 0.90f : - 0.62f * (1.778f / mRenderer->getScreenAspectRatio()))); + 0.62f * (1.778f / mRenderer->getScreenAspectRatio())); #endif mWindow->pushGui(mNoGamesMessageBox);