Author Topic: Filter out games with no wheel art  (Read 6514 times)

pghretroguy

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Filter out games with no wheel art
« on: December 21, 2016, 06:27:09 AM »
Does anyone know a filter param for MAME Libretro to filter out games with no wheel art? Thanks!!!!!

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Filter out games with no wheel art
« Reply #1 on: December 21, 2016, 11:22:50 PM »
@pghretroguy
>Linux
have a look here

for example :
folder /home/your_username/1 contains rom-files
folder /home/your_username/2 contains image-files

this shows all rom-files from folder 1, that doesn't have an existing (or not correct named) image-file in folder 2
Code: [Select]
comm -23 <(find /home/your_username/1 -type f -exec bash -c 'basename "${0%.*}"' {} \; | sort) <(find /home/your_username/2 -type f -exec bash -c 'basename "${0%.*}"' {} \; | sort)

with this information, you can search for the explicit image-file



>Windows
Code: [Select]
@echo off &setlocal
set romfolder=C:\1
set imagefolder=C:\2
for %%a in ("%romfolder%\*.*") do if not exist "%imagefolder%\%%~na.*" echo %%~na%%~xa no image found
pause
« Last Edit: December 22, 2016, 05:13:17 AM by hermine.potter »
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

pghretroguy

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Filter out games with no wheel art
« Reply #2 on: December 23, 2016, 01:30:24 PM »
Amazing. Thank you!

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Filter out games with no wheel art
« Reply #3 on: December 23, 2016, 02:40:33 PM »
I can modify my mamesoftwareparser ruby script to include this feature. I have an idea to rework the script and make it more useful for others.

pghretroguy

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Filter out games with no wheel art
« Reply #4 on: December 23, 2016, 03:21:01 PM »
comm -23 <(find /home/pi/RetroPie/roms/mame-libretro -type f -exec bash -c 'basename "${0%.*}"' {} \; | sort) <(find /home/pi/RetroPie/roms/mame-libretro/snap -type f -exec bash -c 'basename "${0%.*}"' {} \; | sort)

pghretroguy

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Filter out games with no wheel art
« Reply #5 on: December 23, 2016, 04:03:04 PM »
comm -23 <(find /home/pi/RetroPie/roms/mame-libretro -type f -exec bash -c 'basename "${0%.*}"' {} \; | sort) <(find /home/pi/RetroPie/roms/mame-libretro/snap -type f -exec bash -c 'basename "${0%.*}"' {} \; | sort)


So I run that it seems to return every value and rom set. Any ideas? Thanks!!!!