mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 12:46:53 +01:00
Don't add RetroArch cores to the homebrew browser
This commit is contained in:
parent
aca6510fdb
commit
34149ea92c
@ -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, '.');
|
||||
|
@ -81,7 +81,8 @@ class DirList
|
||||
{
|
||||
Files = 0x01,
|
||||
Dirs = 0x02,
|
||||
CheckSubfolders = 0x08
|
||||
CheckSubfolders = 0x04,
|
||||
MainDOL = 0x08
|
||||
};
|
||||
protected:
|
||||
//!Add a list entrie
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user