fraganator / archive-cache-manager

A LaunchBox plugin which extracts and caches large ROM archives, letting you play games faster.
GNU Lesser General Public License v2.1
11 stars 5 forks source link

allow file name priority optionally, alongside file extension priority #9

Closed danpowpow closed 2 years ago

danpowpow commented 3 years ago

When extracting archives containing original xbox files for playback through cxbx reloaded, the extension required is .xbe, however there are often multiple files with that extension within the archive. Archive Cache Manager cannot currently know which file to pass to the emulator, and so most often passes the incorrect file, causing header errors in the emulator

would it be possible, alongside the file extension priority data entry area, to have an optional file name priority data entry area?

For example, for cxbx reloaded, where the file extension priority is '.xbe' the name priorty would be 'Default,default'

fraganator commented 3 years ago

Nice idea. I wonder if a more general regular expression match might be worth implementing. I'll have a play around and see what works.

danpowpow commented 3 years ago

Thanks for picking this up. Regex integration would be far more flexible than my suggestion. Nice idea! I look forward to seeing what you come up with. I'm happy to test any alpha/betas if required.

fraganator commented 2 years ago

Hi @danpowpow - sorry it's taken so long to get back to this. In fixing another issue (#10), I've tweaked the wildcard matching for files. Now you should be able to specify the file extension, the entire filename, or a combination of both and have them match. So for cxbx, the file extension can now be set to default.xbe. You can download a beta of the plugin here:

ArchiveCacheManager.v2.0.8.debug2.zip

danpowpow commented 2 years ago

This is fantastic news - thanks @fraganator ! I'll test the beta and report back. Don't worry at all about the timeframe - I'm grateful for you reviewing the issue :-)

fraganator commented 2 years ago

Hi @danpowpow - The latest version of the plugin has the wildcard matching included, so I'll close this issue. If you find any problems in testing please reopen it.