mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
Added GODOT Configurator to the main menu
This commit is contained in:
parent
84bb0887ec
commit
1d6ba05824
|
@ -57,7 +57,10 @@ GuiMenu::GuiMenu()
|
||||||
addEntry("SCRAPER", mMenuColorPrimary, true, [this] { openScraperOptions(); });
|
addEntry("SCRAPER", mMenuColorPrimary, true, [this] { openScraperOptions(); });
|
||||||
|
|
||||||
if (isFullUI)
|
if (isFullUI)
|
||||||
addEntry("RETRODECK CONFIGURATOR", mMenuColorPrimary, false, [this] { openRetroDeckConfigurator(); });
|
addEntry("RETRODECK CLASSIC CONFIGURATOR", mMenuColorPrimary, false, [this] { openRetroDeckClassicConfigurator(); });
|
||||||
|
|
||||||
|
if (isFullUI)
|
||||||
|
addEntry("RETRODECK GODOT CONFIGURATOR", mMenuColorPrimary, false, [this] { openRetroDeckGodotConfigurator(); });
|
||||||
|
|
||||||
if (isFullUI)
|
if (isFullUI)
|
||||||
addEntry("ES-DE CONFIGURATIONS", mMenuColorPrimary, true, [this] { openESDEConfiguration(); });
|
addEntry("ES-DE CONFIGURATIONS", mMenuColorPrimary, true, [this] { openESDEConfiguration(); });
|
||||||
|
@ -2283,7 +2286,7 @@ std::vector<HelpPrompt> GuiMenu::getHelpPrompts()
|
||||||
return prompts;
|
return prompts;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiMenu::openRetroDeckConfigurator()
|
void GuiMenu::openRetroDeckClassicConfigurator()
|
||||||
{
|
{
|
||||||
// Launch the configurator.sh script
|
// Launch the configurator.sh script
|
||||||
std::string command;
|
std::string command;
|
||||||
|
@ -2295,3 +2298,16 @@ void GuiMenu::openRetroDeckConfigurator()
|
||||||
int result = Utils::Platform::launchGameUnix(command, startDirectory, runInBackground);
|
int result = Utils::Platform::launchGameUnix(command, startDirectory, runInBackground);
|
||||||
// You can add any checks for the script's outcome here.
|
// You can add any checks for the script's outcome here.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GuiMenu::openRetroDeckGodotConfigurator()
|
||||||
|
{
|
||||||
|
// Launch the configurator.sh script
|
||||||
|
std::string command;
|
||||||
|
std::string startDirectory;
|
||||||
|
bool runInBackground;
|
||||||
|
command = "bash godot-configurator.sh";
|
||||||
|
startDirectory = "/app";
|
||||||
|
runInBackground = false;
|
||||||
|
int result = Utils::Platform::launchGameUnix(command, startDirectory, runInBackground);
|
||||||
|
// You can add any checks for the script's outcome here.
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue