-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathra_bezels.sh
27 lines (24 loc) · 1018 Bytes
/
ra_bezels.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
NONE='\033[00m'
RED='\033[01;31m'
GREEN='\033[01;32m'
YELLOW='\033[01;33m'
PURPLE='\033[01;35m'
CYAN='\033[01;36m'
WHITE='\033[01;37m'
BOLD='\033[1m'
UNDERLINE='\033[4m'
BLINK='\x1b[5m'
#Handheld model
handheldModel=$(cat ~/dragoonDoriseTools/.device)
if [[ $handheldModel != "RP2+" ]]; then
if (whiptail --title "Retroarch Bezels" --yesno "Do you want to use Bezels for classic games? Those will hide the black bars on the screen with graphics of each appropiate system." 8 78); then
find ~/storage/shared/RetroArch/config/ -type f -name "*.cfg" -exec sed -i -e 's/input_overlay_enable = "false"/input_overlay_enable = "true"/g' {} \;
else
find ~/storage/shared/RetroArch/config/ -type f -name "*.cfg" -exec sed -i -e 's/input_overlay_enable = "true"/input_overlay_enable = "false"/g' {} \;
fi
fi
if [[ $handheldModel == "RP2+" ]]; then
find ~/storage/shared/RetroArch/config/ -type f -name "*.cfg" -exec sed -i -e 's/input_overlay_enable = "true"/input_overlay_enable = "false"/g' {} \;
fi
clear