mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 13:44:15 +01:00
-added plugin dol path auto partition searching, meaning if you do
dolFile=apps/snes9xgx/boot.dol, wiiflow will check through sd:/apps/snes9xgx/boot.dol, then usb1:/apps/snes9xgx/boot.dol, etc.
This commit is contained in:
parent
86f07d62b4
commit
1fe1b06ca1
@ -846,9 +846,20 @@ void CMenu::_launch(const dir_discHdr *hdr)
|
||||
const char *loader = fmt("%s:/%s/WiiFlowLoader.dol", device, strchr(m_pluginsDir.c_str(), '/') + 1);
|
||||
|
||||
vector<string> arguments = m_plugin.CreateArgs(device, path, title, loader, launchHdr.settings[0]);
|
||||
const char *plugin_file = plugin_dol_name;
|
||||
if(strchr(plugin_file, ':') == NULL || !fsop_FileExist(plugin_file))
|
||||
const char *plugin_file = plugin_dol_name; /* try full path */
|
||||
if(strchr(plugin_file, ':') == NULL || !fsop_FileExist(plugin_file)) /* try universal plugin folder */
|
||||
{
|
||||
plugin_file = fmt("%s/%s", m_pluginsDir.c_str(), plugin_dol_name);
|
||||
if(!fsop_FileExist(plugin_file)) /* try device search */
|
||||
{
|
||||
for(u8 i = SD; i < MAXDEVICES; ++i)
|
||||
{
|
||||
plugin_file = fmt("%s:/%s", DeviceName[i], plugin_dol_name);
|
||||
if(fsop_FileExist(plugin_file))
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
_launchHomebrew(plugin_file, arguments);
|
||||
}
|
||||
else if(launchHdr.type == TYPE_HOMEBREW)
|
||||
|
Loading…
Reference in New Issue
Block a user