seleuco / MAME4droid-2024

MAME4droid 2024 is developed by David Valdeita (Seleuco) as a port of the latest MAME emulator by MAMEDev and contributors. It emulates arcade games and systems like ZX Spectrum, Amstrad CPC, MSX etc. This version of MAME support over 40000 different ROMs.
GNU General Public License v2.0
89 stars 14 forks source link

Only scan the directories passed via the cli_params Extra #40

Open leonstyhre opened 2 months ago

leonstyhre commented 2 months ago

As discussed in issue https://github.com/seleuco/MAME4droid-2024/issues/24 it would be great if MAME4droid would be able to scan only the directories passed via the cli_params Extra on startup.

For example here's an ES-DE Frontend configuration entry for the apple2 system:

<command label="MAME4droid 2024 (Standalone)">%EMULATOR_MAME4DROID-2024% %ACTION%=android.intent.action.VIEW %EXTRA_cli_params%="-rompath '%GAMEDIRRAW%;%ROMPATHRAW%/apple2' -gameio joy -flop1 '%ROMRAW%'" %DATA%=apple2e</command>

So this would most of the time pass one directory (but sometimes two) to MAME4droid on game launch, but today this will make the emulator scan every directory in the parent ROMs folder as that was configured as the ROMs path in MAME4droid. If you have a large game collection this will add significantly to the emulator startup time as it may scan thousands of files.

Thanks in advance!