codewario / PocketLibraryImages

This tool will prepare an image library for use with cartridges (and openFPGA cores if Analogue ever supports them) on Analogue OS
MIT License
104 stars 1 forks source link

Games with `&` (and possible other special characters that are illegal in paths) don't get an image generated for them #9

Closed codewario closed 11 months ago

codewario commented 11 months ago

It was reported via Reddit that games with special characters (like &) don't have images for them. This lines up with my own missing game images (they all have & in the name), although I had not made that connection until now. libretro-thumbnails does replace illegal path characters with an _ so that would make sense that comparing the game title to the image filename would not work in these cases.

Confirm that this is the case, and if so, make sure to replace any characters in titles read from the DAT with an underscore.

codewario commented 11 months ago

This appears to be fixed by replacing illegal path characters in the DAT game name with underscores when comparing to the filenames present in the image archive. Tested against the GBA library and games

I should be able to cut a new release with updated image packs within the next week or so.