From 9eb04160dbd7a43bc814ae660355c94cd283ad73 Mon Sep 17 00:00:00 2001 From: XargonWan <6771419+XargonWan@users.noreply.github.com> Date: Sat, 21 Oct 2023 20:02:21 +0200 Subject: [PATCH] TOOLS: added a patch helper for ES-DE --- rd-submodules/es-de/patch_helper.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 rd-submodules/es-de/patch_helper.sh diff --git a/rd-submodules/es-de/patch_helper.sh b/rd-submodules/es-de/patch_helper.sh new file mode 100755 index 00000000..e774e724 --- /dev/null +++ b/rd-submodules/es-de/patch_helper.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +mkdir /tmp + +branch="2de8282f6a5feaf86424b1175154c5fc2585f70a" +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 + +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 + +#rm -rf patches-tmp \ No newline at end of file