Don't add RetroArch cores to the homebrew browser

This commit is contained in:
wiidev 2021-08-01 18:00:17 +01:00
parent aca6510fdb
commit 34149ea92c
3 changed files with 9 additions and 2 deletions

View File

@ -121,6 +121,12 @@ bool DirList::LoadPath(std::string &folderpath, const char *filter, u32 flags)
continue;
}
if(flags & MainDOL)
{
if(!(memcmp(filename, "boot.dol", 8) == 0 || memcmp(filename, "boot.elf", 8) == 0))
continue;
}
if(filter)
{
char * fileext = strrchr(filename, '.');

View File

@ -81,7 +81,8 @@ class DirList
{
Files = 0x01,
Dirs = 0x02,
CheckSubfolders = 0x08
CheckSubfolders = 0x04,
MainDOL = 0x08
};
protected:
//!Add a list entrie

View File

@ -44,7 +44,7 @@ extern int connection;
HomebrewBrowser::HomebrewBrowser()
: FlyingButtonsMenu(tr( "Homebrew Launcher" ))
{
HomebrewList = new DirList(Settings.homebrewapps_path, ".dol,.elf", DirList::Files | DirList::Dirs | DirList::CheckSubfolders);
HomebrewList = new DirList(Settings.homebrewapps_path, ".dol,.elf", DirList::Files | DirList::Dirs | DirList::CheckSubfolders | DirList::MainDOL);
if (IsNetworkInit())
ResumeNetworkWait();