(XMB) Check if path contains '.lpl' first

This commit is contained in:
twinaphex 2016-01-08 09:33:53 +01:00
parent 0314b1f811
commit 70a57fa80e
1 changed files with 3 additions and 0 deletions

View File

@ -1067,6 +1067,9 @@ static void xmb_context_reset_horizontal_list(xmb_handle_t *xmb, const char *the
if (!path) if (!path)
continue; continue;
if (!strstr(path, ".lpl"))
continue;
strlcpy(sysname, path, sizeof(sysname)); strlcpy(sysname, path, sizeof(sysname));
path_remove_extension(sysname); path_remove_extension(sysname);