mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-03-06 14:27:48 +00:00
Add RD mods patch to ES-DE module
This commit is contained in:
parent
f9bcb976c1
commit
0ce07a4f57
|
@ -272,10 +272,11 @@ modules:
|
|||
branch: 608d8a3c09abc5db398cdadc09e18fd2dfbaf570
|
||||
- type: shell
|
||||
commands:
|
||||
- sed -i 's/QUIT EMULATIONSTATION/QUIT RETRODECK/g' es-app/src/guis/GuiMenu.cpp
|
||||
- sed -i 's#"EMULATIONSTATION-DE V" + Utils::String::toUpper(PROGRAM_VERSION_STRING)#"RetroDECK
|
||||
v'$(cat ${FLATPAK_DEST}/retrodeck/version)', ES-DE v" + Utils::String::toUpper(PROGRAM_VERSION_STRING)#g'
|
||||
es-app/src/guis/GuiMenu.cpp
|
||||
- type: patch
|
||||
path: rd-submodules/es-de/es-de-retrodeck-mods.patch
|
||||
|
||||
# ES-DE - END
|
||||
|
||||
|
|
40
rd-submodules/es-de/es-de-retrodeck-mods.patch
Normal file
40
rd-submodules/es-de/es-de-retrodeck-mods.patch
Normal file
|
@ -0,0 +1,40 @@
|
|||
diff -au1r emulationstation-de/es-app/src/guis/GuiMenu.cpp emulationstation-de/es-app/src/guis/GuiMenu.cpp
|
||||
--- emulationstation-de/es-app/src/guis/GuiMenu.cpp 2023-04-12 09:08:12.394935336 -0400
|
||||
+++ emulationstation-de/es-app/src/guis/GuiMenu.cpp 2023-04-12 10:08:50.433350606 -0400
|
||||
@@ -66,2 +66,4 @@
|
||||
|
||||
+ addEntry("RETRODECK CONFIGURATOR", 0x777777FF, true, [this] { openRetroDeckConfigurator(); });
|
||||
+
|
||||
if (!Settings::getInstance()->getBool("ForceKiosk") &&
|
||||
@@ -69,3 +71,3 @@
|
||||
#if defined(__APPLE__)
|
||||
- addEntry("QUIT EMULATIONSTATION", 0x777777FF, false, [this] { openQuitMenu(); });
|
||||
+ addEntry("QUIT RETRODECK", 0x777777FF, false, [this] { openQuitMenu(); });
|
||||
#else
|
||||
@@ -74,3 +76,3 @@
|
||||
else
|
||||
- addEntry("QUIT EMULATIONSTATION", 0x777777FF, false, [this] { openQuitMenu(); });
|
||||
+ addEntry("QUIT RETRODECK", 0x777777FF, false, [this] { openQuitMenu(); });
|
||||
#endif
|
||||
@@ -1704,2 +1706,9 @@
|
||||
|
||||
+void GuiMenu::openRetroDeckConfigurator()
|
||||
+{
|
||||
+ // Launch the configurator.sh script
|
||||
+ int result = system("/app/tools/configurator.sh");
|
||||
+ // You can add any checks for the script's outcome here.
|
||||
+}
|
||||
+
|
||||
void GuiMenu::openQuitMenu()
|
||||
@@ -1732,3 +1741,3 @@
|
||||
});
|
||||
- auto quitText = std::make_shared<TextComponent>("QUIT EMULATIONSTATION",
|
||||
+ auto quitText = std::make_shared<TextComponent>("QUIT RETRODECK",
|
||||
Font::get(FONT_SIZE_MEDIUM), 0x777777FF);
|
||||
diff -au1r emulationstation-de/es-app/src/guis/GuiMenu.h emulationstation-de/es-app/src/guis/GuiMenu.h
|
||||
--- emulationstation-de/es-app/src/guis/GuiMenu.h 2023-04-12 09:08:12.394935336 -0400
|
||||
+++ emulationstation-de/es-app/src/guis/GuiMenu.h 2023-04-12 09:33:25.023871033 -0400
|
||||
@@ -46,2 +46,3 @@
|
||||
void openOtherOptions();
|
||||
+ void openRetroDeckConfigurator();
|
||||
void openQuitMenu();
|
Loading…
Reference in a new issue