Skip to content

Commit

Permalink
Update system_specific_arcade_launching_images.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
meleu committed Jan 16, 2018
1 parent 4df4800 commit bf5f6d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions system_specific_arcade_launching_images.sh
Expand Up @@ -15,10 +15,14 @@ function custom_arcade_launching_images() {
local ext

# checking if it's mame or fba emulator
if grep -q "^$emulator \?=" "$config_dir/mame/emulators.cfg"; then
system="mame"
if grep -q "^$emulator \?=" "$config_dir/mame-libretro/emulators.cfg"; then
system="mame-libretro"
elif grep -q "^$emulator \?=" "$config_dir/fba/emulators.cfg"; then
system="fba"
elif grep -q "^$emulator \?=" "$config_dir/mame-advmame/emulators.cfg"; then
system="mame-advmame"
elif grep -q "^$emulator \?=" "$config_dir/mame-mame4all/emulators.cfg"; then
system="mame-mame4all"
else
return 1 # system not found
fi
Expand Down

0 comments on commit bf5f6d6

Please sign in to comment.