mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
additional fixes per the PR discussion
This commit is contained in:
parent
d0f23fdddb
commit
096b316183
@ -862,16 +862,39 @@ static void xmb_update_thumbnail_path(void *data, unsigned i)
|
||||
xmb_thumbnails_ident(), sizeof(xmb->thumbnail_file_path));
|
||||
|
||||
/* Scrub characters that are not cross-platform safe from 'display name' in playlist and replace with underscore */
|
||||
tmp = string_replace_substring(entry.path, "&", "_");
|
||||
tmp = string_replace_substring(entry.path, "\\", "_");
|
||||
tmp = string_replace_substring(entry.path, "/", "_");
|
||||
tmp = string_replace_substring(entry.path, "\?", "_");
|
||||
tmp = string_replace_substring(entry.path, ":", "_");
|
||||
tmp = string_replace_substring(entry.path, ";", "_");
|
||||
tmp = string_replace_substring(entry.path, "<", "_");
|
||||
tmp = string_replace_substring(entry.path, ">", "_");
|
||||
tmp = string_replace_substring(entry.path, "*", "_");
|
||||
tmp = string_replace_substring(entry.path, "|", "_");
|
||||
char *scrub_char_pointer = 0;
|
||||
*tmp = *entry.path;
|
||||
|
||||
while ((scrub_char_pointer = strchr (tmp, '&')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, '\\')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, '/')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, '?')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, ':')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, '`')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, '<')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, '>')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, '*')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
while ((scrub_char_pointer = strchr (tmp, '_')) != NULL) {
|
||||
*scrub_char_pointer = '_';
|
||||
}
|
||||
|
||||
/* Look for thumbnail file with the scrubbed filename */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user