mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-24 15:05:39 +00:00
ES-DE: changing more paths
This commit is contained in:
parent
8fec21f9ad
commit
eb12692891
|
@ -145,7 +145,7 @@
|
||||||
<string name="ScraperPasswordScreenScraper" value="" />
|
<string name="ScraperPasswordScreenScraper" value="" />
|
||||||
<string name="ScraperRegion" value="eu" />
|
<string name="ScraperRegion" value="eu" />
|
||||||
<string name="ScraperUsernameScreenScraper" value="" />
|
<string name="ScraperUsernameScreenScraper" value="" />
|
||||||
<string name="ScreensaverSlideshowImageDir" value="/var/config/emulationstation/ES-DE/slideshow/custom_images" />
|
<string name="ScreensaverSlideshowImageDir" value="/var/config/es-de/ES-DE/slideshow/custom_images" />
|
||||||
<string name="ScreensaverType" value="video" />
|
<string name="ScreensaverType" value="video" />
|
||||||
<string name="StartupSystem" value="" />
|
<string name="StartupSystem" value="" />
|
||||||
<string name="SystemsSorting" value="default" />
|
<string name="SystemsSorting" value="default" />
|
||||||
|
|
|
@ -28,12 +28,12 @@ save_migration() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Doing the dir prep as we don't know from which version we came
|
# Doing the dir prep as we don't know from which version we came
|
||||||
dir_prep "$media_folder" "/var/config/emulationstation/ES-DE/downloaded_media"
|
dir_prep "$media_folder" "/var/config/es-de/ES-DE/downloaded_media"
|
||||||
dir_prep "$themes_folder" "/var/config/emulationstation/ES-DE/themes"
|
dir_prep "$themes_folder" "/var/config/es-de/ES-DE/themes"
|
||||||
mkdir -pv $rdhome/logs #this was added later, maybe safe to remove in a few versions
|
mkdir -pv $rdhome/logs #this was added later, maybe safe to remove in a few versions
|
||||||
|
|
||||||
# Resetting es_settings, now we need it but in the future I should think a better solution, maybe with sed
|
# Resetting es_settings, now we need it but in the future I should think a better solution, maybe with sed
|
||||||
cp -fv /app/retrodeck/es_settings.xml /var/config/emulationstation/ES-DE/es_settings.xml
|
cp -fv /app/retrodeck/es_settings.xml /var/config/es-de/ES-DE/es_settings.xml
|
||||||
|
|
||||||
# 0.4 -> 0.5
|
# 0.4 -> 0.5
|
||||||
# Perform save and state migration if needed
|
# Perform save and state migration if needed
|
||||||
|
|
|
@ -486,9 +486,9 @@ install_retrodeck_starterpack() {
|
||||||
|
|
||||||
## DOOM section ##
|
## DOOM section ##
|
||||||
cp /app/retrodeck/extras/doom1.wad "$roms_folder/doom/doom1.wad" # No -f in case the user already has it
|
cp /app/retrodeck/extras/doom1.wad "$roms_folder/doom/doom1.wad" # No -f in case the user already has it
|
||||||
mkdir -p "/var/config/emulationstation/ES-DE/gamelists/doom"
|
mkdir -p "/var/config/es-de/ES-DE/gamelists/doom"
|
||||||
if [[ ! -f "/var/config/emulationstation/ES-DE/gamelists/doom/gamelist.xml" ]]; then # Don't overwrite an existing gamelist
|
if [[ ! -f "/var/config/es-de/ES-DE/gamelists/doom/gamelist.xml" ]]; then # Don't overwrite an existing gamelist
|
||||||
cp "/app/retrodeck/rd_prepacks/doom/gamelist.xml" "/var/config/emulationstation/ES-DE/gamelists/doom/gamelist.xml"
|
cp "/app/retrodeck/rd_prepacks/doom/gamelist.xml" "/var/config/es-de/ES-DE/gamelists/doom/gamelist.xml"
|
||||||
fi
|
fi
|
||||||
mkdir -p "$media_folder/doom"
|
mkdir -p "$media_folder/doom"
|
||||||
unzip -oq "/app/retrodeck/rd_prepacks/doom/doom.zip" -d "$media_folder/doom/"
|
unzip -oq "/app/retrodeck/rd_prepacks/doom/doom.zip" -d "$media_folder/doom/"
|
||||||
|
@ -519,8 +519,8 @@ update_splashscreens() {
|
||||||
# This script will purge any existing ES graphics and reload them from RO space into somewhere ES will look for it
|
# This script will purge any existing ES graphics and reload them from RO space into somewhere ES will look for it
|
||||||
# USAGE: update_splashscreens
|
# USAGE: update_splashscreens
|
||||||
|
|
||||||
rm -rf /var/config/emulationstation/ES-DE/resources/graphics
|
rm -rf /var/config/es-de/ES-DE/resources/graphics
|
||||||
rsync -rlD --mkpath "/app/retrodeck/graphics/" "/var/config/emulationstation/ES-DE/resources/graphics/"
|
rsync -rlD --mkpath "/app/retrodeck/graphics/" "/var/config/es-de/ES-DE/resources/graphics/"
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy_helper_files() {
|
deploy_helper_files() {
|
||||||
|
@ -564,12 +564,12 @@ easter_eggs() {
|
||||||
|
|
||||||
quit_retrodeck() {
|
quit_retrodeck() {
|
||||||
pkill -f retrodeck
|
pkill -f retrodeck
|
||||||
pkill -f emulationstation
|
pkill -f es-de
|
||||||
}
|
}
|
||||||
|
|
||||||
start_retrodeck() {
|
start_retrodeck() {
|
||||||
easter_eggs # Check if today has a surprise splashscreen and load it if so
|
easter_eggs # Check if today has a surprise splashscreen and load it if so
|
||||||
# normal startup
|
# normal startup
|
||||||
echo "Starting RetroDECK v$version"
|
echo "Starting RetroDECK v$version"
|
||||||
emulationstation --home /var/config/emulationstation
|
es-de --home /var/config/es-de
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,9 +25,9 @@ zip_compressable_extensions="$emuconfigs/defaults/retrodeck/reference_lists/zip_
|
||||||
easter_egg_checklist="$emuconfigs/defaults/retrodeck/reference_lists/easter_egg_checklist.cfg" # A config file listing days and times when special splash screens should show up
|
easter_egg_checklist="$emuconfigs/defaults/retrodeck/reference_lists/easter_egg_checklist.cfg" # A config file listing days and times when special splash screens should show up
|
||||||
input_validation="$emuconfigs/defaults/retrodeck/reference_lists/input_validation.cfg" # A config file listing valid CLI inputs
|
input_validation="$emuconfigs/defaults/retrodeck/reference_lists/input_validation.cfg" # A config file listing valid CLI inputs
|
||||||
finit_options_list="$emuconfigs/defaults/retrodeck/reference_lists/finit_options_list.cfg" # A config file listing available optional installs during finit
|
finit_options_list="$emuconfigs/defaults/retrodeck/reference_lists/finit_options_list.cfg" # A config file listing available optional installs during finit
|
||||||
splashscreen_dir="/var/config/emulationstation/ES-DE/resources/graphics/extra_splashes" # The default location of extra splash screens
|
splashscreen_dir="/var/config/es-de/ES-DE/resources/graphics/extra_splashes" # The default location of extra splash screens
|
||||||
current_splash_file="/var/config/emulationstation/ES-DE/resources/graphics/splash.svg" # The active splash file that will be shown on boot
|
current_splash_file="/var/config/es-de/ES-DE/resources/graphics/splash.svg" # The active splash file that will be shown on boot
|
||||||
default_splash_file="/var/config/emulationstation/ES-DE/resources/graphics/splash-orig.svg" # The default RetroDECK splash screen
|
default_splash_file="/var/config/es-de/ES-DE/resources/graphics/splash-orig.svg" # The default RetroDECK splash screen
|
||||||
multi_user_emulator_config_dirs="$emuconfigs/defaults/retrodeck/reference_lists/multi_user_emulator_config_dirs.cfg" # A list of emulator config folders that can be safely linked/unlinked entirely in multi-user mode
|
multi_user_emulator_config_dirs="$emuconfigs/defaults/retrodeck/reference_lists/multi_user_emulator_config_dirs.cfg" # A list of emulator config folders that can be safely linked/unlinked entirely in multi-user mode
|
||||||
rd_es_themes="/app/share/es-de/themes" # The directory where themes packaged with RetroDECK are stored
|
rd_es_themes="/app/share/es-de/themes" # The directory where themes packaged with RetroDECK are stored
|
||||||
lockfile="/var/config/retrodeck/.lock" # where the lockfile is located
|
lockfile="/var/config/retrodeck/.lock" # where the lockfile is located
|
||||||
|
@ -58,7 +58,7 @@ yuzuconf="/var/config/yuzu/qt-config.ini"
|
||||||
|
|
||||||
# ES-DE config files
|
# ES-DE config files
|
||||||
|
|
||||||
es_settings="/var/config/emulationstation/ES-DE/es_settings.xml"
|
es_settings="/var/config/es-de/ES-DE/es_settings.xml"
|
||||||
|
|
||||||
# RetroArch config files
|
# RetroArch config files
|
||||||
|
|
||||||
|
|
|
@ -241,8 +241,10 @@ post_update() {
|
||||||
# - Install RetroDECK controller profile in desired location TODO
|
# - Install RetroDECK controller profile in desired location TODO
|
||||||
# - Change section name in retrodeck.cfg for ABXY button swap preset
|
# - Change section name in retrodeck.cfg for ABXY button swap preset
|
||||||
sed -i 's^nintendo_button_layout^abxy_button_swap^' "$rd_conf" # This is a one-off sed statement as there are no functions for replacing section names
|
sed -i 's^nintendo_button_layout^abxy_button_swap^' "$rd_conf" # This is a one-off sed statement as there are no functions for replacing section names
|
||||||
mv -f /var/config/emulationstation/.emulationstation /var/config/emulationstation/ES-DE # in 3.0 .emulationstation was moved into ES-DE
|
# in 3.0 .emulationstation was moved into ES-DE
|
||||||
ln -s /var/config/emulationstation/ES-DE /var/config/emulationstation/.emulationstation # symlinking it to mantain the compatibility # TODO: remove this symlink n 0.9.0b
|
mv -f /var/config/es-de/ /var/config/es-de/ES-DE
|
||||||
|
mv -f /var/config/es-de/.emulationstation /var/config/es-de/ES-DE
|
||||||
|
ln -s /var/config/es-de/ES-DE /var/config/es-de/.emulationstation # symlinking it to mantain the compatibility # TODO: remove this symlink n 0.9.0b
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [[ $prev_version -le "090" ]]; then
|
# if [[ $prev_version -le "090" ]]; then
|
||||||
|
|
|
@ -39,21 +39,21 @@ prepare_component() {
|
||||||
|
|
||||||
if [[ "$component" =~ ^(es-de|ES-DE|all)$ ]]; then # For use after ESDE-related folders are moved or a reset
|
if [[ "$component" =~ ^(es-de|ES-DE|all)$ ]]; then # For use after ESDE-related folders are moved or a reset
|
||||||
if [[ "$action" == "reset" ]]; then
|
if [[ "$action" == "reset" ]]; then
|
||||||
rm -rf /var/config/emulationstation/
|
rm -rf /var/config/es-de/
|
||||||
mkdir -p /var/config/emulationstation/ES-DE/
|
mkdir -p /var/config/es-de/ES-DE/
|
||||||
cp -f /app/retrodeck/es_settings.xml /var/config/emulationstation/ES-DE/es_settings.xml
|
cp -f /app/retrodeck/es_settings.xml /var/config/es-de/ES-DE/es_settings.xml
|
||||||
set_setting_value "$es_settings" "ROMDirectory" "$roms_folder" "es_settings"
|
set_setting_value "$es_settings" "ROMDirectory" "$roms_folder" "es_settings"
|
||||||
set_setting_value "$es_settings" "MediaDirectory" "$media_folder" "es_settings"
|
set_setting_value "$es_settings" "MediaDirectory" "$media_folder" "es_settings"
|
||||||
set_setting_value "$es_settings" "UserThemeDirectory" "$themes_folder" "es_settings"
|
set_setting_value "$es_settings" "UserThemeDirectory" "$themes_folder" "es_settings"
|
||||||
dir_prep "$rdhome/gamelists" "/var/config/emulationstation/ES-DE/gamelists"
|
dir_prep "$rdhome/gamelists" "/var/config/es-de/ES-DE/gamelists"
|
||||||
emulationstation --home /var/config/emulationstation --create-system-dirs
|
es-de --home /var/config/es-de --create-system-dirs
|
||||||
update_splashscreens
|
update_splashscreens
|
||||||
fi
|
fi
|
||||||
if [[ "$action" == "postmove" ]]; then
|
if [[ "$action" == "postmove" ]]; then
|
||||||
set_setting_value "$es_settings" "ROMDirectory" "$roms_folder" "es_settings"
|
set_setting_value "$es_settings" "ROMDirectory" "$roms_folder" "es_settings"
|
||||||
set_setting_value "$es_settings" "MediaDirectory" "$media_folder" "es_settings"
|
set_setting_value "$es_settings" "MediaDirectory" "$media_folder" "es_settings"
|
||||||
set_setting_value "$es_settings" "UserThemeDirectory" "$themes_folder" "es_settings"
|
set_setting_value "$es_settings" "UserThemeDirectory" "$themes_folder" "es_settings"
|
||||||
dir_prep "$rdhome/gamelists" "/var/config/emulationstation/ES-DE/gamelists"
|
dir_prep "$rdhome/gamelists" "/var/config/es-de/ES-DE/gamelists"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -421,10 +421,6 @@ modules:
|
||||||
url: https://github.com/XargonWan/RetroDECK-ES-DE
|
url: https://github.com/XargonWan/RetroDECK-ES-DE
|
||||||
branch: update/3.0
|
branch: update/3.0
|
||||||
- type: shell
|
- type: shell
|
||||||
commands:
|
|
||||||
- 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
|
|
||||||
|
|
||||||
# ES-DE - END
|
# ES-DE - END
|
||||||
|
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
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-08-23 13:12:15.617292576 +0200
|
|
||||||
+++ emulationstation-de/es-app/src/guis/GuiMenu.cpp 2023-08-23 13:44:10.736412006 +0200
|
|
||||||
@@ -67,2 +67,4 @@
|
|
||||||
|
|
||||||
+ addEntry("RETRODECK CONFIGURATOR", mMenuColorPrimary, false, [this] { openRetroDeckConfigurator(); });
|
|
||||||
+
|
|
||||||
if (!Settings::getInstance()->getBool("ForceKiosk") &&
|
|
||||||
@@ -70,3 +72,3 @@
|
|
||||||
#if defined(__APPLE__)
|
|
||||||
- addEntry("QUIT EMULATIONSTATION", mMenuColorPrimary, false, [this] { openQuitMenu(); });
|
|
||||||
+ addEntry("QUIT RETRODECK", mMenuColorPrimary, false, [this] { openQuitMenu(); });
|
|
||||||
#else
|
|
||||||
@@ -75,3 +77,3 @@
|
|
||||||
else
|
|
||||||
- addEntry("QUIT EMULATIONSTATION", mMenuColorPrimary, false, [this] { openQuitMenu(); });
|
|
||||||
+ addEntry("QUIT RETRODECK", mMenuColorPrimary, false, [this] { openQuitMenu(); });
|
|
||||||
#endif
|
|
||||||
@@ -1758,3 +1760,3 @@
|
|
||||||
auto quitText = std::make_shared<TextComponent>(
|
|
||||||
- "QUIT EMULATIONSTATION", Font::get(FONT_SIZE_MEDIUM), mMenuColorPrimary);
|
|
||||||
+ "QUIT RETRODECK", Font::get(FONT_SIZE_MEDIUM), mMenuColorPrimary);
|
|
||||||
quitText->setSelectable(true);
|
|
||||||
@@ -1910 +1912,14 @@
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+void GuiMenu::openRetroDeckConfigurator()
|
|
||||||
+{
|
|
||||||
+ // Launch the configurator.sh script
|
|
||||||
+ std::string command;
|
|
||||||
+ std::string startDirectory;
|
|
||||||
+ bool runInBackground;
|
|
||||||
+ command = "bash /app/tools/configurator.sh";
|
|
||||||
+ startDirectory = "/app/tools";
|
|
||||||
+ runInBackground = false;
|
|
||||||
+ int result = Utils::Platform::launchGameUnix(command, startDirectory, runInBackground);
|
|
||||||
+ // You can add any checks for the script's outcome here.
|
|
||||||
+}
|
|
|
@ -1,10 +0,0 @@
|
||||||
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-08-23 13:12:15.617292576 +0200
|
|
||||||
+++ emulationstation-de/es-app/src/guis/GuiMenu.h 2023-08-23 13:50:20.978700234 +0200
|
|
||||||
@@ -46,2 +46,3 @@
|
|
||||||
void openOtherOptions();
|
|
||||||
+ void openRetroDeckConfigurator();
|
|
||||||
void openQuitMenu();
|
|
||||||
@@ -54 +55,2 @@
|
|
||||||
#endif // ES_APP_GUIS_GUI_MENU_H
|
|
||||||
+
|
|
|
@ -1,10 +0,0 @@
|
||||||
diff -au1r emulationstation-de/es-app/src/guis/GuiThemeDownloader.cpp emulationstation-de/es-app/src/guis/GuiThemeDownloader.cpp
|
|
||||||
--- emulationstation-de/es-app/src/guis/GuiThemeDownloader.cpp 2023-11-03 16:25:01.115126901 +0100
|
|
||||||
+++ emulationstation-de/es-app/src/guis/GuiThemeDownloader.cpp 2023-11-03 16:26:18.882607724 +0100
|
|
||||||
@@ -602,4 +602,4 @@
|
|
||||||
getHelpStyle(),
|
|
||||||
- "IT SEEMS AS IF YOU'RE NOT RUNNING THE LATEST ES-DE RELEASE, PLEASE UPGRADE BEFORE "
|
|
||||||
- "PROCEEDING AS THESE THEMES MAY NOT BE COMPATIBLE WITH YOUR VERSION",
|
|
||||||
+ "ES-DE THEME ENGINE WAS UPDATED UPSTREAM. THESE THEMES MAY NOT BE COMPATIBLE WITH THE CURRENT RETRODECK VERSION."
|
|
||||||
+ "CHECK IF A NEW RETRODECK UPDATE IS AVAILABLE, ELSE PLEASE WAIT FOR IT OR PROCEED AT YOUR OWN RISK.",
|
|
||||||
"OK", [] { return; }, "", nullptr, "", nullptr, nullptr, true));
|
|
|
@ -1,101 +0,0 @@
|
||||||
diff -au1r emulationstation-de/es-app/src/views/ViewController.cpp emulationstation-de/es-app/src/views/ViewController.cpp
|
|
||||||
--- emulationstation-de/es-app/src/views/ViewController.cpp 2023-11-04 15:09:24.332178777 -0400
|
|
||||||
+++ emulationstation-de/es-app/src/views/ViewController.cpp 2023-11-04 15:13:59.015780009 -0400
|
|
||||||
@@ -195,91 +195,3 @@
|
|
||||||
mNoGamesMessageBox = new GuiMsgBox(
|
|
||||||
- HelpStyle(), mNoGamesErrorMessage + mRomDirectory, "CHANGE ROM DIRECTORY",
|
|
||||||
- [this] {
|
|
||||||
- std::string currentROMDirectory;
|
|
||||||
-#if defined(_WIN64)
|
|
||||||
- currentROMDirectory = Utils::String::replace(FileData::getROMDirectory(), "/", "\\");
|
|
||||||
-#else
|
|
||||||
- currentROMDirectory = FileData::getROMDirectory();
|
|
||||||
-#endif
|
|
||||||
- if (Settings::getInstance()->getBool("VirtualKeyboard")) {
|
|
||||||
- mWindow->pushGui(new GuiTextEditKeyboardPopup(
|
|
||||||
- HelpStyle(), 0.0f, "ENTER ROM DIRECTORY PATH", currentROMDirectory,
|
|
||||||
- [this, currentROMDirectory](const std::string& newROMDirectory) {
|
|
||||||
- if (currentROMDirectory != newROMDirectory) {
|
|
||||||
- Settings::getInstance()->setString(
|
|
||||||
- "ROMDirectory", Utils::String::trim(newROMDirectory));
|
|
||||||
- Settings::getInstance()->saveFile();
|
|
||||||
-#if defined(_WIN64)
|
|
||||||
- mRomDirectory =
|
|
||||||
- Utils::String::replace(FileData::getROMDirectory(), "/", "\\");
|
|
||||||
-#else
|
|
||||||
- mRomDirectory = FileData::getROMDirectory();
|
|
||||||
-#endif
|
|
||||||
- mNoGamesMessageBox->changeText(mNoGamesErrorMessage + mRomDirectory);
|
|
||||||
- mWindow->pushGui(new GuiMsgBox(HelpStyle(),
|
|
||||||
- "ROM DIRECTORY SETTING SAVED, RESTART\n"
|
|
||||||
- "THE APPLICATION TO RESCAN THE SYSTEMS",
|
|
||||||
- "OK", nullptr, "", nullptr, "", nullptr,
|
|
||||||
- nullptr, true, true));
|
|
||||||
- }
|
|
||||||
- },
|
|
||||||
- false, "SAVE", "SAVE CHANGES?", "Currently configured path:",
|
|
||||||
- currentROMDirectory, "LOAD CURRENTLY CONFIGURED PATH",
|
|
||||||
- "CLEAR (LEAVE BLANK TO RESET TO DEFAULT PATH)"));
|
|
||||||
- }
|
|
||||||
- else {
|
|
||||||
- mWindow->pushGui(new GuiTextEditPopup(
|
|
||||||
- HelpStyle(), "ENTER ROM DIRECTORY PATH", currentROMDirectory,
|
|
||||||
- [this](const std::string& newROMDirectory) {
|
|
||||||
- Settings::getInstance()->setString("ROMDirectory",
|
|
||||||
- Utils::String::trim(newROMDirectory));
|
|
||||||
- Settings::getInstance()->saveFile();
|
|
||||||
-#if defined(_WIN64)
|
|
||||||
- mRomDirectory =
|
|
||||||
- Utils::String::replace(FileData::getROMDirectory(), "/", "\\");
|
|
||||||
-#else
|
|
||||||
- mRomDirectory = FileData::getROMDirectory();
|
|
||||||
-#endif
|
|
||||||
- mNoGamesMessageBox->changeText(mNoGamesErrorMessage + mRomDirectory);
|
|
||||||
- mWindow->pushGui(new GuiMsgBox(HelpStyle(),
|
|
||||||
- "ROM DIRECTORY SETTING SAVED, RESTART\n"
|
|
||||||
- "THE APPLICATION TO RESCAN THE SYSTEMS",
|
|
||||||
- "OK", nullptr, "", nullptr, "", nullptr,
|
|
||||||
- nullptr, true));
|
|
||||||
- },
|
|
||||||
- false, "SAVE", "SAVE CHANGES?", "Currently configured path:",
|
|
||||||
- currentROMDirectory, "LOAD CURRENTLY CONFIGURED PATH",
|
|
||||||
- "CLEAR (LEAVE BLANK TO RESET TO DEFAULT PATH)"));
|
|
||||||
- }
|
|
||||||
- },
|
|
||||||
- "CREATE DIRECTORIES",
|
|
||||||
- [this] {
|
|
||||||
- mWindow->pushGui(new GuiMsgBox(
|
|
||||||
- HelpStyle(),
|
|
||||||
- "THIS WILL CREATE DIRECTORIES FOR ALL THE\n"
|
|
||||||
- "GAME SYSTEMS DEFINED IN es_systems.xml\n\n"
|
|
||||||
- "THIS MAY CREATE A LOT OF FOLDERS SO IT'S\n"
|
|
||||||
- "ADVICED TO REMOVE THE ONES YOU DON'T NEED",
|
|
||||||
- "PROCEED",
|
|
||||||
- [this] {
|
|
||||||
- if (!SystemData::createSystemDirectories()) {
|
|
||||||
- mWindow->pushGui(new GuiMsgBox(HelpStyle(),
|
|
||||||
- "THE SYSTEM DIRECTORIES WERE SUCCESSFULLY\n"
|
|
||||||
- "GENERATED, EXIT THE APPLICATION AND PLACE\n"
|
|
||||||
- "YOUR GAMES IN THE NEWLY CREATED FOLDERS",
|
|
||||||
- "OK", nullptr, "", nullptr, "", nullptr,
|
|
||||||
- nullptr, true));
|
|
||||||
- }
|
|
||||||
- else {
|
|
||||||
- mWindow->pushGui(new GuiMsgBox(HelpStyle(),
|
|
||||||
- "ERROR CREATING THE SYSTEM DIRECTORIES,\n"
|
|
||||||
- "PERMISSION PROBLEMS OR DISK FULL?\n\n"
|
|
||||||
- "SEE THE LOG FILE FOR MORE DETAILS",
|
|
||||||
- "OK", nullptr, "", nullptr, "", nullptr,
|
|
||||||
- nullptr, true));
|
|
||||||
- }
|
|
||||||
- },
|
|
||||||
- "CANCEL", nullptr, "", nullptr, nullptr, false));
|
|
||||||
- },
|
|
||||||
- "QUIT",
|
|
||||||
+ HelpStyle(), mNoGamesErrorMessage + mRomDirectory, "QUIT",
|
|
||||||
[] {
|
|
||||||
@@ -289,3 +201,3 @@
|
|
||||||
},
|
|
||||||
- nullptr, true, false,
|
|
||||||
+ "", nullptr, "", nullptr, nullptr, true, true,
|
|
||||||
(mRenderer->getIsVerticalOrientation() ?
|
|
|
@ -1,9 +0,0 @@
|
||||||
diff -au1r emulationstation-de/es-core/src/Window.cpp emulationstation-de/es-core/src/Window.cpp
|
|
||||||
--- emulationstation-de/es-core/src/Window.cpp 2023-08-29 14:14:17.208301836 +0200
|
|
||||||
+++ emulationstation-de/es-core/src/Window.cpp 2023-08-29 14:12:37.307334069 +0200
|
|
||||||
|
|
||||||
@@ -181,3 +181,3 @@
|
|
||||||
progressBarRect.barPosY += borderThickness;
|
|
||||||
- progressBarRect.color = 0x79010FFF;
|
|
||||||
+ progressBarRect.color = 0xC858E6FF;
|
|
||||||
mProgressBarRectangles.emplace_back(progressBarRect);
|
|
|
@ -1,31 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
mkdir /tmp
|
|
||||||
|
|
||||||
branch="00a226062fff37209d98e0ab048ac89af50ecacc"
|
|
||||||
git clone "https://gitlab.com/es-de/emulationstation-de.git" /tmp/emulationstation-de
|
|
||||||
|
|
||||||
pushd .
|
|
||||||
cd /tmp/emulationstation-de
|
|
||||||
git checkout $branch
|
|
||||||
popd
|
|
||||||
|
|
||||||
mkdir patches-tmp
|
|
||||||
|
|
||||||
cp /tmp/emulationstation-de/es-app/src/guis/GuiMenu.cpp ./patches-tmp
|
|
||||||
cp /tmp/emulationstation-de/es-app/src/guis/GuiMenu.h ./patches-tmp
|
|
||||||
cp /tmp/emulationstation-de/es-app/src/views/ViewController.cpp ./patches-tmp
|
|
||||||
cp /tmp/emulationstation-de/es-core/src/Window.cpp ./patches-tmp
|
|
||||||
cp /tmp/emulationstation-de/es-app/src/guis/GuiThemeDownloader.cpp ./patches-tmp
|
|
||||||
|
|
||||||
read -p "Please edit the files in \"patches-tmp\" and press enter to continue."
|
|
||||||
|
|
||||||
diff -au1r /tmp/emulationstation-de/es-app/src/guis/GuiMenu.cpp ./patches-tmp/GuiMenu.cpp > GuiMenu.cpp.patch
|
|
||||||
diff -au1r /tmp/emulationstation-de/es-app/src/guis/GuiMenu.h ./patches-tmp/GuiMenu.h > GuiMenu.h.patch
|
|
||||||
diff -au1r /tmp/emulationstation-de/es-app/src/views/ViewController.cpp ./patches-tmp/ViewController.cpp > ViewController.cpp.patch
|
|
||||||
diff -au1r /tmp/emulationstation-de/es-core/src/Window.cpp ./patches-tmp/Window.cpp > Window.cpp.patch
|
|
||||||
diff -au1r /tmp/emulationstation-de/es-app/src/guis/GuiThemeDownloader.cpp ./patches-tmp/GuiThemeDownloader.cpp > GuiThemeDownloader.cpp.patch
|
|
||||||
|
|
||||||
rm -rf patches-tmp
|
|
||||||
|
|
||||||
echo "Done, now please remeber to edit the headers of the patch files with the correct paths."
|
|
|
@ -1348,7 +1348,7 @@ configurator_usb_import_dialog() {
|
||||||
"${external_devices[@]}")
|
"${external_devices[@]}")
|
||||||
|
|
||||||
if [[ ! -z "$choice" ]]; then
|
if [[ ! -z "$choice" ]]; then
|
||||||
emulationstation --home "$choice" --create-system-dirs
|
es-de --home "$choice" --create-system-dirs
|
||||||
rm -rf "$choice/ES-DE" # Cleanup unnecessary folder
|
rm -rf "$choice/ES-DE" # Cleanup unnecessary folder
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue