mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
a9ead799e6
The intention of this PR is to allow RetroArch playlists to display the 'prohibited' characters & \ / ? : < > : * | on the screen, while searching for matching thumbnail files that replace these problematic characters with an underscore. This step of the process is bolded in the flowchart below as #2 under 'Playlist display.' I don't normally work in C -- this change is a hack job. It did look like string_replace_substring could handle being daisy-chained so I thought I'd see if this could spark a productive conversation. Playlist generation: 1) Use hash values to match ROM files to known-good databases such as No-Intro. (exists) 2) Create playlist using 'display names' from the known-good databases (exists) Playlist display: 1) Read display name from the playlist file (exists) **2) Transform characters that are not cross-platform friendly into underscores to determine thumb filename (this PR)** 3) Look for a thumbnail file that matches this filename (exists) 4) Display the thumbnail image (exists)