-fixed problem that wiiflow didnt find scummvm

games which were on usb
This commit is contained in:
fix94.1 2012-04-16 04:58:17 +00:00
parent 565ffb0b86
commit ac5ffef989
3 changed files with 5 additions and 3 deletions

View File

@ -1986,7 +1986,7 @@ bool CMenu::_loadEmuList()
Config scummvm;
safe_vector<dir_discHdr> scummvmList;
scummvm.load(fmt("%s/%s", m_pluginsDir.c_str(), "scummvm.ini"));
scummvmList = m_plugin.ParseScummvmINI(scummvm, DeviceName[currentPartition]);
scummvmList = m_plugin.ParseScummvmINI(scummvm, string(DeviceName[currentPartition]));
for(safe_vector<dir_discHdr>::iterator tmp_itr = scummvmList.begin(); tmp_itr != scummvmList.end(); tmp_itr++)
emuList.push_back(*tmp_itr);
}

View File

@ -113,11 +113,13 @@ char* Plugin::GetDolName(u32 magic)
return null;
}
safe_vector<dir_discHdr> Plugin::ParseScummvmINI(Config &ini, const char* Device)
safe_vector<dir_discHdr> Plugin::ParseScummvmINI(Config &ini, string Device)
{
gprintf("Parsing scummvm.ini\n");
safe_vector<dir_discHdr> gameHeader;
string game = ini.firstDomain().c_str();
if(Device.rfind("usb") != string::npos)
Device.erase(3, 1);
dir_discHdr tmp;
while(1)
{

View File

@ -28,7 +28,7 @@ public:
void init(string);
void Cleanup();
void EndAdd();
safe_vector<dir_discHdr> ParseScummvmINI(Config &ini, const char* Device);
safe_vector<dir_discHdr> ParseScummvmINI(Config &ini, string Device);
private:
safe_vector<u8*> BannerSound;
safe_vector<u32> BannerSoundSize;