Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hiulit committed Feb 14, 2019
2 parents c60627f + 0e98e0d commit 0ab9a19
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

* Up to date

## [2.1.4] - 2019-02-14

### Fixed

* The script won't ask anymore to restart EmulationStation (if it's running) when debug mode is on.

## [2.1.3] - 2018-12-23

### Fixed
Expand Down
16 changes: 10 additions & 6 deletions retropie-limit-last-played-games.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ function reset_playcount() {
echo "> Done!"
# Games to show in 'last played' section.
log "Games that will be shown in the 'last played' section:"
echo ""
for last_played_item in "${last_played_array[@]:0:$NTH_LAST_PLAYED}"; do
local game_name
game_name="$last_played_item"
Expand Down Expand Up @@ -398,12 +399,15 @@ function main() {
text+="Check the log file in '$LOG_DIR'."
dialog_msgbox "Info" "$text" "$dialog_height"
fi
# Check if EmulationStation is running
if pidof emulationstation > /dev/null; then
dialog_yesno "Info" "In order to see the changes applied to the game lists, EmulationStation need to be restarted.\n\nWould you like to restart EmulationStation?"
local return_value="$?"
if [[ "$return_value" -eq "$DIALOG_OK" ]]; then
restart_ES

if [[ "$DEBUG_FLAG" -eq 0 ]]; then
# Check if EmulationStation is running
if pidof emulationstation > /dev/null; then
dialog_yesno "Info" "In order to see the changes applied to the game lists, EmulationStation need to be restarted.\n\nWould you like to restart EmulationStation?"
local return_value="$?"
if [[ "$return_value" -eq "$DIALOG_OK" ]]; then
restart_ES
fi
fi
fi
}
Expand Down

0 comments on commit 0ab9a19

Please sign in to comment.