-(hopefully) last change about addition from r183,

now everything should work fine again and a custom
folder name should be usable for gc games on usb
This commit is contained in:
fix94.1 2012-03-08 12:52:01 +00:00
parent e57c20e5d9
commit 7891c2d861

View File

@ -23,9 +23,11 @@ void CachedList<T>::Load(string path, string containing, string m_lastLanguage)
update_games = strcasestr(path.c_str(), "wbfs") != NULL && force_update[COVERFLOW_USB];
update_homebrew = strcasestr(path.c_str(), "apps") != NULL && force_update[COVERFLOW_HOMEBREW];
update_dml = strcasestr(path.c_str(), "games") != NULL && force_update[COVERFLOW_DML];
gprintf("update_games=%d update_homebrew=%d\n", update_games, update_homebrew);
const char* partition = DeviceName[DeviceHandler::Instance()->PathToDriveType(path.c_str())];
update_dml = strcasestr(path.c_str(), sfmt(strncmp(partition, "sd", 2) != 0 ? m_DMLgameDir.c_str() : "%s:/games", partition).c_str()) != NULL && force_update[COVERFLOW_DML];
gprintf("update_games=%d update_homebrew=%d update_dml=%d\n", update_games, update_homebrew, update_dml);
if(update_games || update_homebrew || update_dml)
remove(m_database.c_str());