mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 12:05:39 +00:00
Changed the order of dialogs shown on application startup.
Also made the startup animation finish before the dialogs are displayed.
This commit is contained in:
parent
9683295c10
commit
53a29b8314
|
@ -750,16 +750,6 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if any of the enabled systems have an invalid alternative emulator entry,
|
|
||||||
// which means that a label is present in the gamelist.xml file which is not matching
|
|
||||||
// any command tag in es_systems.xml.
|
|
||||||
for (auto system : SystemData::sSystemVector) {
|
|
||||||
if (system->getAlternativeEmulator().substr(0, 9) == "<INVALID>") {
|
|
||||||
ViewController::getInstance()->invalidAlternativeEmulatorDialog();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Don't generate controller events while we're loading.
|
// Don't generate controller events while we're loading.
|
||||||
SDL_GameControllerEventState(SDL_DISABLE);
|
SDL_GameControllerEventState(SDL_DISABLE);
|
||||||
|
|
||||||
|
@ -776,14 +766,17 @@ int main(int argc, char* argv[])
|
||||||
applicationUpdater->getResults(updaterResults);
|
applicationUpdater->getResults(updaterResults);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
// Open the input configuration GUI if the force flag was passed from the command line.
|
|
||||||
if (!loadSystemsStatus) {
|
if (!loadSystemsStatus)
|
||||||
if (forceInputConfig) {
|
ViewController::getInstance()->goToStart(true);
|
||||||
window->pushGui(new GuiDetectDevice(
|
|
||||||
false, true, [] { ViewController::getInstance()->goToStart(true); }));
|
// Check if any of the enabled systems have an invalid alternative emulator entry,
|
||||||
}
|
// which means that a label is present in the gamelist.xml file which is not matching
|
||||||
else {
|
// any command tag in es_systems.xml.
|
||||||
ViewController::getInstance()->goToStart(true);
|
for (auto system : SystemData::sSystemVector) {
|
||||||
|
if (system->getAlternativeEmulator().substr(0, 9) == "<INVALID>") {
|
||||||
|
ViewController::getInstance()->invalidAlternativeEmulatorDialog();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -808,6 +801,12 @@ int main(int argc, char* argv[])
|
||||||
ViewController::getInstance()->updateAvailableDialog(updaterResults);
|
ViewController::getInstance()->updateAvailableDialog(updaterResults);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Open the input configuration GUI if the force flag was passed from the command line.
|
||||||
|
if (forceInputConfig) {
|
||||||
|
ViewController::getInstance()->cancelViewTransitions();
|
||||||
|
window->pushGui(new GuiDetectDevice(false, true, nullptr));
|
||||||
|
}
|
||||||
|
|
||||||
// Main application loop.
|
// Main application loop.
|
||||||
|
|
||||||
if (!SystemData::sStartupExitSignal) {
|
if (!SystemData::sStartupExitSignal) {
|
||||||
|
|
|
@ -65,7 +65,7 @@ void ViewController::invalidSystemsFileDialog()
|
||||||
"SOMETHING IS LIKELY WRONG WITH YOUR XML SYNTAX. "
|
"SOMETHING IS LIKELY WRONG WITH YOUR XML SYNTAX. "
|
||||||
"IF YOU DON'T HAVE A CUSTOM SYSTEMS FILE, THEN THE "
|
"IF YOU DON'T HAVE A CUSTOM SYSTEMS FILE, THEN THE "
|
||||||
"EMULATIONSTATION INSTALLATION IS BROKEN. SEE THE "
|
"EMULATIONSTATION INSTALLATION IS BROKEN. SEE THE "
|
||||||
"APPLICATION LOG FILE es_log.txt FOR ADDITIONAL INFO.";
|
"APPLICATION LOG FILE es_log.txt FOR ADDITIONAL INFO";
|
||||||
|
|
||||||
mWindow->pushGui(new GuiMsgBox(
|
mWindow->pushGui(new GuiMsgBox(
|
||||||
HelpStyle(), errorMessage.c_str(), "QUIT",
|
HelpStyle(), errorMessage.c_str(), "QUIT",
|
||||||
|
@ -200,19 +200,20 @@ void ViewController::noGamesDialog()
|
||||||
|
|
||||||
void ViewController::invalidAlternativeEmulatorDialog()
|
void ViewController::invalidAlternativeEmulatorDialog()
|
||||||
{
|
{
|
||||||
mWindow->pushGui(new GuiMsgBox(getHelpStyle(), "AT LEAST ONE OF YOUR SYSTEMS HAS AN\n"
|
cancelViewTransitions();
|
||||||
"INVALID ALTERNATIVE EMULATOR CONFIGURED\n"
|
mWindow->pushGui(new GuiMsgBox(getHelpStyle(),
|
||||||
"WITH NO MATCHING ENTRY IN THE SYSTEMS\n"
|
"AT LEAST ONE OF YOUR SYSTEMS HAS AN\n"
|
||||||
"CONFIGURATION FILE, PLEASE REVIEW YOUR\n"
|
"INVALID ALTERNATIVE EMULATOR CONFIGURED\n"
|
||||||
"SETUP USING THE 'ALTERNATIVE EMULATORS'\n"
|
"WITH NO MATCHING ENTRY IN THE SYSTEMS\n"
|
||||||
"INTERFACE IN THE 'OTHER SETTINGS' MENU"));
|
"CONFIGURATION FILE, PLEASE REVIEW YOUR\n"
|
||||||
|
"SETUP USING THE 'ALTERNATIVE EMULATORS'\n"
|
||||||
|
"INTERFACE IN THE 'OTHER SETTINGS' MENU",
|
||||||
|
"OK", nullptr, "", nullptr, "", nullptr, true, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ViewController::updateAvailableDialog(const std::string& message)
|
void ViewController::updateAvailableDialog(const std::string& message)
|
||||||
{
|
{
|
||||||
if (isAnimationPlaying(0))
|
cancelViewTransitions();
|
||||||
finishAnimation(0);
|
|
||||||
|
|
||||||
mWindow->pushGui(new GuiMsgBox(getHelpStyle(), message, "OK", nullptr, "", nullptr, "", nullptr,
|
mWindow->pushGui(new GuiMsgBox(getHelpStyle(), message, "OK", nullptr, "", nullptr, "", nullptr,
|
||||||
true, true,
|
true, true,
|
||||||
(mRenderer->getIsVerticalOrientation() ?
|
(mRenderer->getIsVerticalOrientation() ?
|
||||||
|
|
Loading…
Reference in a new issue