theypsilon / _arcade-organizer

A script for organizing _Arcade for MiSTer
GNU General Public License v3.0
38 stars 6 forks source link

_arcade-organizer Twitter Buy Me a Coffee at ko-fi.com'

A simple script to automate organizing MiSTer's _Arcade directory based on your MRA files.

These scripts do not duplicate any cores or mra files; only soft symlinks are used.

Note: These sylinks only work on MiSTer. If you mount your SD card outside of MiSTer, these symlinks will not work.

This script looks at what MRA files you have, and the information in them, to organize MiSTer's \_Arcade directory.

If the XLM tags for Year, Manufacturer, and Category are included in the MRA file, this script will create an \_Organized Directory in \_Arcade and will create the following sub-directories with soft sysmlinks to organize it:

_Organized
├── _1 A-E
├── _1 F-K
├── _1 L-Q
├── _1 R-T
├── _1 U-Z
├── _2 Year
├── _3 Manufacturer
└── _4 Category

Features

You can browse by:

"Top Additional Directories" toggle:

Allows you to include the extra folders that you choose in the top level of the organized directory: Platform, Core, Year

"Chronological Sorting at the Botom" toggle:

By enabling this, every directory will include an additional chronologically sorted index at the bottom of the list.

Clean Folders sub-script:

Can be run to delete all the Arcade Organizer folders

MAD metadata support:

Instructions

Download the update_arcade-organizer.sh to the Scripts directory and run.

Alternately, run the update_all.sh script, and press Up on the keyboard to enter options, and access the arcade organizer suboptions which will look like this:

screnshot of arcade organizer options in update all menu

You can optionally toggle to activate/deactivate specific folders. Deactivating unwanted folders will boost the speed of the script.

Disclaimer:

You should back up your _Arcade directory before running this script. Use at your own risk. This script comes with no warranty.

Note if you use non-default folder paths:

This script uses:

a DEFAULT LOCATION for _Arcade at /media/fat/_Arcade

and

a DEFAULT LOCATION for \_Organized at /media/fat/_Arcade/_Organized

If your \_Arcade directory is in a different location you MUST use a /media/fat/Scripts/update_arcade-organizer.ini file

If you're not using the default locations for \_Arcade and \_Organized, you must add their locations in /media/fat/Scripts/update_arcade-organizer.ini

FAQ

Q: How can I set my own custom locations for MRA and _Organized Directories?

A: A /media/fat/Scripts/update_arcade-organizer.ini file may be used to set custom location for your MRA files (Scans recursivly) and _Organized files. Add the following line to the ini file to set a directory for MRA files: MRADIR=/top/path/to/mra/files/_Arcade Add the following line to the ini file to set a directory for Organized files: ORGDIR=/path/to/organized/files/_Organized

Q:Will this script over write files I already have?

A: NO, This script will not clober files you already have.

Q: What If I get new MRA/Core files?

A: You need to re-run the script to have them included in the Organized files.