diff --git a/source/menu/menu_game.cpp b/source/menu/menu_game.cpp index 90763785..23b06c64 100644 --- a/source/menu/menu_game.cpp +++ b/source/menu/menu_game.cpp @@ -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 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);