libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.2k stars 1.82k forks source link

(Qt) Refresh playlist status on startup #10253

Open klepp0906 opened 4 years ago

klepp0906 commented 4 years ago

So i was working on removing some playlists, without removing said playlists.

the easiest method ive found on other platforms was to simply archive the file. Poof, its not only gone - but its easily identifiable as such and its there and still in the directory to be backed up, or unarchived to be placed back in the list.

Oddly enough, when doing so in retroarch - it still picks up the playlist in the desktop menu UI. It just shows it with a blank folder and a bunch of garbled characters.

I'd like to think this is a easy fix to make it only show playlists that are using the lpl extension. (unless theres a reason that this isnt the case, then this is moot)

klepp0906 commented 4 years ago

so as an interim/alternative solution it appears making a subfolder and simply moving them in there is adequate to hide from both.

adequate to get the job done, but for parities sake with the console/gui mode & operating under the assumption its like... a line of code. Might want to still smoosh this in. so that nothing but the proper extension displays in the desktop mode as a playlist.

RobLoach commented 4 years ago

Could you outline a step by step method in order to reproduce what you're running into? I'm having troubles understanding.

klepp0906 commented 4 years ago

yea sure.

I have created a playlist (two but thats irrelevant) that I want to hide in retroarch for the time being. A simple conversion of it to an archive format (zip, rar, 7z etc) does just that.

if i open RA, the playlist is hidden, yet its still there (as an archive) in the playlists folder so A) when i run my backup script it gets backed up, and B) i can extract it at any time to re-add it or modify it.

most of all, it keeps it easily visible due to the contrast between the lpl icon and the archive icon. (im old! :P)

Anyhow, the one place this doesnt hold up, is if you open the desktop menu as opposed to XMB/Ozone etc.

There, irrespective of being archived, the playlist shows in your list. Except for it now shows as a blank folder icon with a bunch of garbled text (presumably due to being archived and unreadable)

So what i was asking for is to make the desktop menu behave the same as the gui. Hide anything not in .lpl format completely from being displayed as a playlist.

the step by step would be simply. 1) archive an existing playlist 2) open retroarch and notice its no longer present 3) open retroarch's desktop menu and notice that it IS still present, in a broken capacity

I hope that makes more sense?