mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 19:29:18 +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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(flags & MainDOL)
|
||||||
|
{
|
||||||
|
if(!(memcmp(filename, "boot.dol", 8) == 0 || memcmp(filename, "boot.elf", 8) == 0))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if(filter)
|
if(filter)
|
||||||
{
|
{
|
||||||
char * fileext = strrchr(filename, '.');
|
char * fileext = strrchr(filename, '.');
|
||||||
|
@ -81,7 +81,8 @@ class DirList
|
|||||||
{
|
{
|
||||||
Files = 0x01,
|
Files = 0x01,
|
||||||
Dirs = 0x02,
|
Dirs = 0x02,
|
||||||
CheckSubfolders = 0x08
|
CheckSubfolders = 0x04,
|
||||||
|
MainDOL = 0x08
|
||||||
};
|
};
|
||||||
protected:
|
protected:
|
||||||
//!Add a list entrie
|
//!Add a list entrie
|
||||||
|
@ -44,7 +44,7 @@ extern int connection;
|
|||||||
HomebrewBrowser::HomebrewBrowser()
|
HomebrewBrowser::HomebrewBrowser()
|
||||||
: FlyingButtonsMenu(tr( "Homebrew Launcher" ))
|
: 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())
|
if (IsNetworkInit())
|
||||||
ResumeNetworkWait();
|
ResumeNetworkWait();
|
||||||
|
Loading…
Reference in New Issue
Block a user