diff --git a/scriptmodules/supplementary/esthemes.sh b/scriptmodules/supplementary/esthemes.sh index 6480f99f3b..bd83a09475 100644 --- a/scriptmodules/supplementary/esthemes.sh +++ b/scriptmodules/supplementary/esthemes.sh @@ -61,6 +61,13 @@ function install_theme_esthemes() { mkdir -p "/etc/emulationstation/themes" gitPullOrClone "/etc/emulationstation/themes/$name" "https://github.com/$repo/es-theme-$theme.git" "$branch" + + # apply any patches for themes broken due to ES fixes + if [[ "$pixel_pos" == 1 && -f "$md_data/patch-$repo-$theme.diff" ]]; then + pushd "/etc/emulationstation/themes/$name" + applyPatch "$md_data/patch-$repo-$theme.diff" + popd + fi } function uninstall_theme_esthemes() {