From 49028070492516dfc22172ff8651d4a35801bc63 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Sat, 2 Jun 2012 18:33:49 +0000 Subject: [PATCH] -disabled extended list check by default and also if it is enabled it will only be used for wii games since it can break other coverflow views from working --- source/list/cachedlist.cpp | 6 ++---- source/menu/menu.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/source/list/cachedlist.cpp b/source/list/cachedlist.cpp index 517ef6f3..8e8fe832 100644 --- a/source/list/cachedlist.cpp +++ b/source/list/cachedlist.cpp @@ -50,11 +50,10 @@ void CachedList::Load(string path, string containing, string m_lastLanguage, if(update_lang) gprintf("Languages are different!\nOld language string: %s\nNew language string: %s\n", m_lastLanguage.c_str(), m_curLanguage.c_str()); if(noDB) gprintf("A database was not found!\n"); if(mtimes || ditimes) gprintf("The WBFS folder was modified!\nCache date: %i\nFolder date: %i\n", cache.st_mtime, filestat.st_mtime); - - if(m_extcheck && !m_update) + + if(m_extcheck && !m_update && strcasestr(path.c_str(), "wbfs") != NULL) { bool m_chupdate = false; - DIR *dir = opendir(path.c_str()); struct dirent *entry; while((entry = readdir(dir)) != NULL) @@ -62,7 +61,6 @@ void CachedList::Load(string path, string containing, string m_lastLanguage, m_discinf = sfmt("%s/%s", path.c_str(), entry->d_name); if(stat(m_discinf.c_str(), &discinfo) != -1) m_chupdate = discinfo.st_mtime > cache.st_mtime; - if(m_chupdate) break; } diff --git a/source/menu/menu.cpp b/source/menu/menu.cpp index 97526fd5..2a1d6ccf 100644 --- a/source/menu/menu.cpp +++ b/source/menu/menu.cpp @@ -392,7 +392,7 @@ void CMenu::init(void) m_loc.load(fmt("%s/%s.ini", m_languagesDir.c_str(), m_curLanguage.c_str())); } - bool extcheck = m_cfg.getBool("GENERAL", "extended_list_check", true); + bool extcheck = m_cfg.getBool("GENERAL", "extended_list_check", false); m_gameList.Init(m_listCacheDir, m_settingsDir, m_loc.getString(m_curLanguage, "gametdb_code", "EN"), m_DMLgameDir, extcheck);