wizzomafizzo / tapto

Launch games using physical objects
GNU General Public License v3.0
64 stars 9 forks source link

Integrate fuzzy path matching for games launch #23

Open wizzomafizzo opened 4 months ago

wizzomafizzo commented 4 months ago

In the same way that launchsync does, all partial path matches and regex

This requires an index to be created of games, which cannot be done on the fly before a launch (it takes too long) like launchsync does. Need some thought about when is ideal to create an index and recreate the cached index.

asturur commented 4 months ago

What is the features that changes here? can you describe what this enhancement achieve?

wizzomafizzo commented 4 months ago

This app lets you create a list of games which is converted to mgl shortcut files in the mister menu: https://github.com/wizzomafizzo/mrext/blob/main/docs/launchsync.md#game-sections

I wanted these games lists to be portable, which meant it wouldn't work if you put an absolute path for each game. So I came up with a format that you can put a filename partial match or regexp as an option to match the game's path, that way the game can be in any path or have any rom tags in the filename and there's still a high chance of picking it up across different misters

The method is not perfect but it would go a long way to making cards portable between systems (like if you wanted to sell them preloaded) or after a user has rearranged their files. Maybe it could even be extended and combined with other commands, like how about a card that launched a random "mario" game

sigboe commented 4 months ago

@wizzomafizzo While chatting to you about this feature before I have never thought of the amazing functionality of being able to launch a random mario game, or a random NES mario game, or a random (Mega|Rock)Man game

Just wanted to say that sounds amazing!