@@ -185,6 +185,7 @@ function choose_splashscreen() {
185
185
186
186
function randomize_splashscreen() {
187
187
options=(
188
+ 0 " Disable splashscreen randomizer"
188
189
1 " Randomize RetroPie splashscreens"
189
190
2 " Randomize own splashscreens (from $datadir /splashscreens)"
190
191
3 " Randomize all splashscreens"
@@ -196,13 +197,17 @@ function randomize_splashscreen() {
196
197
chown $user :$user " $configdir /all/$md_id .cfg"
197
198
198
199
case " $choice " in
200
+ 0)
201
+ iniSet " RANDOMIZE" " disabled"
202
+ printMsgs " dialog" " Splashscreen randomizer disabled."
203
+ ;;
199
204
1)
200
205
iniSet " RANDOMIZE" " retropie"
201
- printMsgs " dialog" " Splashscreen randomizer enabled in directory $path "
206
+ printMsgs " dialog" " Splashscreen randomizer enabled in directory $rootdir /supplementary/ $md_id "
202
207
;;
203
208
2)
204
209
iniSet " RANDOMIZE" " custom"
205
- printMsgs " dialog" " Splashscreen randomizer enabled in directory $path "
210
+ printMsgs " dialog" " Splashscreen randomizer enabled in directory $datadir /splashscreens "
206
211
;;
207
212
3)
208
213
iniSet " RANDOMIZE" " all"
@@ -272,22 +277,15 @@ function gui_splashscreen() {
272
277
local cmd=(dialog --backtitle " $__backtitle " --menu " Choose an option." 22 86 16)
273
278
while true ; do
274
279
local enabled=0
275
- local random=0
276
280
[[ -n " $( find " /etc/systemd/system/" * " .wants" -type l -name " asplashscreen.service" ) " ]] && enabled=1
277
281
local options=(1 " Choose splashscreen" )
278
282
if [[ " $enabled " -eq 1 ]]; then
279
- options+=(2 " Disable splashscreen on boot (Enabled)" )
283
+ options+=(2 " Show splashscreen on boot (currently: Enabled)" )
280
284
iniConfig " =" ' "' " $configdir /all/$md_id .cfg"
281
285
iniGet " RANDOMIZE"
282
- random=1
283
- [[ " $ini_value " == " disabled" ]] && random=0
284
- if [[ " $random " -eq 1 ]]; then
285
- options+=(3 " Disable splashscreen randomizer (Enabled)" )
286
- else
287
- options+=(3 " Enable splashscreen randomizer (Disabled)" )
288
- fi
286
+ options+=(3 " Randomizer options (currently: ${ini_value^} )" )
289
287
else
290
- options+=(2 " Enable splashscreen on boot (Disabled)" )
288
+ options+=(2 " Show splashscreen on boot (currently: Disabled)" )
291
289
fi
292
290
options+=(
293
291
4 " Use default splashscreen"
@@ -323,15 +321,12 @@ function gui_splashscreen() {
323
321
fi
324
322
;;
325
323
3)
326
- if [[ " $random " -eq 1 ]]; then
327
- iniSet " RANDOMIZE" " disabled"
328
- printMsgs " dialog" " Splashscreen randomizer disabled."
329
- else
330
- randomize_splashscreen
331
- fi
324
+ randomize_splashscreen
332
325
;;
333
326
4)
327
+ iniSet " RANDOMIZE" " disabled"
334
328
default_splashscreen
329
+ enable_splashscreen
335
330
printMsgs " dialog" " Splashscreen set to RetroPie default."
336
331
;;
337
332
5)
0 commit comments