mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-11 20:44:21 +01:00
-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:
parent
09db10a805
commit
86f07d62b4
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user