mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
fixed ViewController.cpp ifs
This commit is contained in:
parent
5d75983b3f
commit
2384ad2ab2
|
@ -262,16 +262,16 @@ void ViewController::invalidSystemsFileDialog()
|
||||||
|
|
||||||
void ViewController::noGamesDialog()
|
void ViewController::noGamesDialog()
|
||||||
{
|
{
|
||||||
#if defined(__ANDROID__)
|
#if defined(__RETRODECK__)
|
||||||
|
mNoGamesErrorMessage = _("NO GAME WERE FOUND. PLEASE PLACE YOUR GAMES IN "
|
||||||
|
"THE RETRODECK ROM DIRECTORY LOCATED IN:\n");
|
||||||
|
#elif defined(__ANDROID__)
|
||||||
mNoGamesErrorMessage = _("NO GAME FILES WERE FOUND, PLEASE PLACE YOUR GAMES IN "
|
mNoGamesErrorMessage = _("NO GAME FILES WERE FOUND, PLEASE PLACE YOUR GAMES IN "
|
||||||
"THE CONFIGURED ROM DIRECTORY. OPTIONALLY THE ROM "
|
"THE CONFIGURED ROM DIRECTORY. OPTIONALLY THE ROM "
|
||||||
"DIRECTORY STRUCTURE CAN BE GENERATED WHICH WILL "
|
"DIRECTORY STRUCTURE CAN BE GENERATED WHICH WILL "
|
||||||
"CREATE A TEXT FILE FOR EACH SYSTEM PROVIDING SOME "
|
"CREATE A TEXT FILE FOR EACH SYSTEM PROVIDING SOME "
|
||||||
"INFORMATION SUCH AS THE SUPPORTED FILE EXTENSIONS.\n"
|
"INFORMATION SUCH AS THE SUPPORTED FILE EXTENSIONS.\n"
|
||||||
"THIS IS THE CURRENTLY CONFIGURED ROM DIRECTORY:\n");
|
"THIS IS THE CURRENTLY CONFIGURED ROM DIRECTORY:\n");
|
||||||
#elif defined(__RETRODECK__)
|
|
||||||
mNoGamesErrorMessage = _("NO GAME WERE FOUND. PLEASE PLACE YOUR GAMES IN "
|
|
||||||
"THE RETRODECK ROM DIRECTORY LOCATED IN:\n");
|
|
||||||
#else
|
#else
|
||||||
mNoGamesErrorMessage = _("NO GAME FILES WERE FOUND. EITHER PLACE YOUR GAMES IN "
|
mNoGamesErrorMessage = _("NO GAME FILES WERE FOUND. EITHER PLACE YOUR GAMES IN "
|
||||||
"THE CURRENTLY CONFIGURED ROM DIRECTORY OR CHANGE "
|
"THE CURRENTLY CONFIGURED ROM DIRECTORY OR CHANGE "
|
||||||
|
@ -289,6 +289,7 @@ void ViewController::noGamesDialog()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__RETRODECK__)
|
#if defined(__RETRODECK__)
|
||||||
|
// Show a simple message with a "QUIT" option if RETRODECK is defined
|
||||||
mNoGamesMessageBox = new GuiMsgBox(
|
mNoGamesMessageBox = new GuiMsgBox(
|
||||||
HelpStyle(),
|
HelpStyle(),
|
||||||
mNoGamesErrorMessage + mRomDirectory,
|
mNoGamesErrorMessage + mRomDirectory,
|
||||||
|
@ -297,7 +298,8 @@ void ViewController::noGamesDialog()
|
||||||
SDL_Event quit {};
|
SDL_Event quit {};
|
||||||
quit.type = SDL_QUIT;
|
quit.type = SDL_QUIT;
|
||||||
SDL_PushEvent(&quit);
|
SDL_PushEvent(&quit);
|
||||||
},
|
}
|
||||||
|
);
|
||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__)
|
||||||
mNoGamesMessageBox = new GuiMsgBox(
|
mNoGamesMessageBox = new GuiMsgBox(
|
||||||
HelpStyle(), mNoGamesErrorMessage + mRomDirectory,
|
HelpStyle(), mNoGamesErrorMessage + mRomDirectory,
|
||||||
|
@ -417,12 +419,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);
|
||||||
|
|
Loading…
Reference in a new issue