noGamesDialog tentative fix

This commit is contained in:
XargonWan 2024-09-27 14:16:20 +09:00
parent 902d849003
commit 175c7ec187

View file

@ -288,21 +288,19 @@ void ViewController::noGamesDialog()
mRomDirectory = FileData::getROMDirectory(); mRomDirectory = FileData::getROMDirectory();
#endif #endif
#if defined(__ANDROID__) #if defined(__RETRODECK__)
mNoGamesMessageBox = new GuiMsgBox( mNoGamesMessageBox = new GuiMsgBox(
HelpStyle(), mNoGamesErrorMessage + mRomDirectory, HelpStyle(),
#elif defined(__RETRODECK__) mNoGamesErrorMessage + mRomDirectory,
mNoGamesMessageBox = new GuiMsgBox( _("QUIT"),
HelpStyle(), mNoGamesErrorMessage + mRomDirectory, _("QUIT"),
[] { [] {
SDL_Event quit {}; SDL_Event quit {};
quit.type = SDL_QUIT; quit.type = SDL_QUIT;
SDL_PushEvent(&quit); SDL_PushEvent(&quit);
}, },
"", nullptr, "", nullptr, nullptr, true, true, #elif defined(__ANDROID__)
(mRenderer->getIsVerticalOrientation() ? mNoGamesMessageBox = new GuiMsgBox(
0.90f : HelpStyle(), mNoGamesErrorMessage + mRomDirectory,
0.62f * (1.778f / mRenderer->getScreenAspectRatio())));
#else #else
mNoGamesMessageBox = new GuiMsgBox( mNoGamesMessageBox = new GuiMsgBox(
HelpStyle(), mNoGamesErrorMessage + mRomDirectory, _("CHANGE ROM DIRECTORY"), HelpStyle(), mNoGamesErrorMessage + mRomDirectory, _("CHANGE ROM DIRECTORY"),
@ -419,12 +417,12 @@ void ViewController::noGamesDialog()
"", nullptr, nullptr, true, false, "", nullptr, nullptr, true, false,
(mRenderer->getIsVerticalOrientation() ? (mRenderer->getIsVerticalOrientation() ?
0.90f : 0.90f :
0.58f * (1.778f / mRenderer->getScreenAspectRatio()))); 0.58f * (1.778f / mRenderer->getScreenAspectRatio()));
#else #else
nullptr, true, false, nullptr, true, false,
(mRenderer->getIsVerticalOrientation() ? (mRenderer->getIsVerticalOrientation() ?
0.90f : 0.90f :
0.62f * (1.778f / mRenderer->getScreenAspectRatio()))); 0.62f * (1.778f / mRenderer->getScreenAspectRatio()));
#endif #endif
mWindow->pushGui(mNoGamesMessageBox); mWindow->pushGui(mNoGamesMessageBox);