This Python script scans necessary .cfg
files in the folder it is placed in, including all subdirectories, and replaces a specified string with a user-provided replacement path. It's designed for use cases like updating overlay .cfg's paths in configuration files for RetroPie or other similar projects. Includes all MAME overlays for FB Alpha, FinalBurn Neo, MAME, MAME 2003 (0.78), MAME 2003-Plus and MAME 2010.
- Recursively processes all
.cfg
files in the directory and its subdirectories. - Replaces occurrences of a default target string (
/opt/retropie/configs/all/retroarch/overlay/ArcadeBezels/
) with a user-defined path. - Ensures only
.cfg
files are modified. - Provides clear logs of which files were updated and which files required no changes.
- Python 3.6 or newer
- Runs on Windows, Linux, and macOS.