-added full plugin dol path support, meaning if you use for example

dolFile=usb1:/apps/snes9xgx/boot.dol as dol file path,
wiiflow will also load it from there, if you just specify for example
dolFile=snes9xgx.dol, wiiflow will add the plugin path to it to build like
usb1:/wiiflow/plugins/snes9xgx.dol for loading (issue 183)
This commit is contained in:
fix94.1 2013-05-23 12:47:45 +00:00
parent 09db10a805
commit 86f07d62b4

View File

@ -844,8 +844,12 @@ void CMenu::_launch(const dir_discHdr *hdr)
m_cfg.setString(PLUGIN_DOMAIN, "current_item", title);
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);
vector<string> arguments = m_plugin.CreateArgs(device, path, title, loader, launchHdr.settings[0]);
_launchHomebrew(fmt("%s/%s", m_pluginsDir.c_str(), plugin_dol_name), arguments);
const char *plugin_file = plugin_dol_name;
if(strchr(plugin_file, ':') == NULL || !fsop_FileExist(plugin_file))
plugin_file = fmt("%s/%s", m_pluginsDir.c_str(), plugin_dol_name);
_launchHomebrew(plugin_file, arguments);
}
else if(launchHdr.type == TYPE_HOMEBREW)
{