- Added auto QF MIOS install if triiforce plugin used.

- added right and left to explorer to stay consistent with other menus
This commit is contained in:
fledge68 2013-08-22 16:52:00 +00:00
parent e5336404f4
commit 082af6dd97
2 changed files with 12 additions and 2 deletions

View File

@ -104,11 +104,11 @@ void CMenu::_Explorer(void)
memset(folderPath, 0, MAX_FAT_PATH); memset(folderPath, 0, MAX_FAT_PATH);
break; break;
} }
else if(BTN_PLUS_PRESSED) else if(BTN_PLUS_PRESSED || BTN_RIGHT_PRESSED)
{ {
_refreshExplorer(1); _refreshExplorer(1);
} }
else if(BTN_MINUS_PRESSED) else if(BTN_MINUS_PRESSED || BTN_LEFT_PRESSED)
{ {
_refreshExplorer(-1); _refreshExplorer(-1);
} }

View File

@ -778,6 +778,16 @@ void CMenu::_launch(const dir_discHdr *hdr)
wcstombs(title, launchHdr.title, 63); wcstombs(title, launchHdr.title, 63);
} }
m_cfg.setString(PLUGIN_DOMAIN, "current_item", title); m_cfg.setString(PLUGIN_DOMAIN, "current_item", title);
const char *mios_wad = NULL;
if(m_cfg.getBool("PLUGIN", "444d4c62", false))
{
if(currentPartition == SD && (m_mios_ver != 2 || m_sd_dm == false))
mios_wad = fmt("%s/qfsd.wad", m_miosDir.c_str());
else if(currentPartition != SD && (m_mios_ver != 2 || m_sd_dm == true))
mios_wad = fmt("%s/qfusb.wad", m_miosDir.c_str());
if(mios_wad != NULL && fsop_FileExist(mios_wad))
_Wad(mios_wad, true);//install mios
}
const char *device = (currentPartition == 0 ? "sd" : (DeviceHandle.GetFSType(currentPartition) == PART_FS_NTFS ? "ntfs" : "usb")); const char *device = (currentPartition == 0 ? "sd" : (DeviceHandle.GetFSType(currentPartition) == PART_FS_NTFS ? "ntfs" : "usb"));
const char *loader = fmt("%s:/%s/WiiFlowLoader.dol", device, strchr(m_pluginsDir.c_str(), '/') + 1); const char *loader = fmt("%s:/%s/WiiFlowLoader.dol", device, strchr(m_pluginsDir.c_str(), '/') + 1);