mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 09:05:06 +01:00
-fixed problem that wiiflow didnt find scummvm
games which were on usb
This commit is contained in:
parent
565ffb0b86
commit
ac5ffef989
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user