mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-23 09:11:11 +01:00
-fixed small boot error for emulators
This commit is contained in:
parent
6a5922b2a4
commit
f4fd3598d0
@ -638,8 +638,8 @@ void CMenu::_launch(dir_discHdr *hdr)
|
||||
m_gcfg2.load(sfmt("%s/gameconfig2.ini", m_settingsDir.c_str()).c_str());
|
||||
if(hdr->hdr.gc_magic == 0x4c4f4c4f)
|
||||
{
|
||||
string title(&hdr->path[std::string(hdr->path).find_last_of("/")]);
|
||||
m_cfg.setString("EMULATOR", "current_item", title);
|
||||
m_cfg.setString("EMULATOR", "current_item", &hdr->path[std::string(hdr->path).find_last_of("/")]);
|
||||
string title(&hdr->path[std::string(hdr->path).find_last_of("/")+1]);
|
||||
string wiiflow_dol(m_dol);
|
||||
if(strstr(wiiflow_dol.c_str(), "sd:/") == NULL)
|
||||
wiiflow_dol.erase(3,1);
|
||||
@ -647,6 +647,7 @@ void CMenu::_launch(dir_discHdr *hdr)
|
||||
safe_vector<std::string> arguments;
|
||||
if(strstr(path.c_str(), "sd:/") == NULL)
|
||||
path.erase(3,1);
|
||||
gprintf("Game title: %s\n", title.c_str());
|
||||
arguments.push_back(path);
|
||||
arguments.push_back(title);
|
||||
arguments.push_back(wiiflow_dol);
|
||||
|
Loading…
x
Reference in New Issue
Block a user