From 695161df763b6312a6d0a51e1c0386f2dc938917 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Thu, 4 Oct 2012 15:25:35 +0000 Subject: [PATCH] -fixed wrong cache position lol --- source/menu/menu.cpp | 10 +++++----- source/menu/menu_game.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/menu/menu.cpp b/source/menu/menu.cpp index 1073b5d2..2cfdeb22 100644 --- a/source/menu/menu.cpp +++ b/source/menu/menu.cpp @@ -2171,7 +2171,7 @@ bool CMenu::_loadChannelList(void) { string cacheDir; if(!disable_emu) - cacheDir = fmt("%s/%s_channels.db", m_cacheDir.c_str(), DeviceName[currentPartition]); + cacheDir = fmt("%s/%s_channels.db", m_listCacheDir.c_str(), DeviceName[currentPartition]); bool updateCache = m_cfg.getBool(_domainFromView(), "update_cache"); vector NullVector; m_gameList.CreateList(m_current_view, currentPartition, std::string(), @@ -2229,7 +2229,7 @@ bool CMenu::_loadGameList(void) DeviceHandle.OpenWBFS(currentPartition); string gameDir(fmt(GAMES_DIR, DeviceName[currentPartition])); - string cacheDir(fmt("%s/%s_wii.db", m_cacheDir.c_str(), DeviceName[currentPartition])); + string cacheDir(fmt("%s/%s_wii.db", m_listCacheDir.c_str(), DeviceName[currentPartition])); bool updateCache = m_cfg.getBool(_domainFromView(), "update_cache"); m_gameList.CreateList(m_current_view, currentPartition, gameDir, stringToVector(".wbfs|.iso", '|'), cacheDir, updateCache); WBFS_Close(); @@ -2244,7 +2244,7 @@ bool CMenu::_loadHomebrewList() return false; string gameDir(fmt(HOMEBREW_DIR, DeviceName[currentPartition])); - string cacheDir(fmt("%s/%s_homebrew.db", m_cacheDir.c_str(), DeviceName[currentPartition])); + string cacheDir(fmt("%s/%s_homebrew.db", m_listCacheDir.c_str(), DeviceName[currentPartition])); bool updateCache = m_cfg.getBool(_domainFromView(), "update_cache"); m_gameList.CreateList(m_current_view, currentPartition, gameDir, stringToVector(".dol|.elf", '|'), cacheDir, updateCache); @@ -2258,7 +2258,7 @@ bool CMenu::_loadDmlList() return false; string gameDir(fmt(currentPartition == SD ? DML_DIR : m_DMLgameDir.c_str(), DeviceName[currentPartition])); - string cacheDir(fmt("%s/%s_gamecube.db", m_cacheDir.c_str(), DeviceName[currentPartition])); + string cacheDir(fmt("%s/%s_gamecube.db", m_listCacheDir.c_str(), DeviceName[currentPartition])); bool updateCache = m_cfg.getBool(_domainFromView(), "update_cache"); m_gameList.CreateList(m_current_view, currentPartition, gameDir, stringToVector(".iso|root", '|'),cacheDir, updateCache); @@ -2290,7 +2290,7 @@ bool CMenu::_loadEmuList() if(m_plugin_cfg.getString(PLUGIN_DOMAIN,"romDir").find("scummvm.ini") == string::npos) { string gameDir(fmt("%s:/%s", DeviceName[currentPartition], m_plugin_cfg.getString(PLUGIN_DOMAIN,"romDir").c_str())); - string cacheDir(fmt("%s/%s_%s.db", m_cacheDir.c_str(), DeviceName[currentPartition], m_plugin_cfg.getString(PLUGIN_DOMAIN,"magic").c_str())); + string cacheDir(fmt("%s/%s_%s.db", m_listCacheDir.c_str(), DeviceName[currentPartition], m_plugin_cfg.getString(PLUGIN_DOMAIN,"magic").c_str())); vector FileTypes = stringToVector(m_plugin_cfg.getString(PLUGIN_DOMAIN,"fileTypes"), '|'); u32 CaseColor = strtoul(m_plugin_cfg.getString(PLUGIN_DOMAIN,"coverColor").c_str(), NULL, 16); u32 MagicWord = strtoul(m_plugin_cfg.getString(PLUGIN_DOMAIN,"magic").c_str(), NULL, 16); diff --git a/source/menu/menu_game.cpp b/source/menu/menu_game.cpp index 5cebf5b3..4c305f54 100644 --- a/source/menu/menu_game.cpp +++ b/source/menu/menu_game.cpp @@ -573,7 +573,7 @@ void CMenu::_game(bool launch) bool foundOnSD = false; ListGenerator SD_List; string gameDir(fmt(DML_DIR, DeviceName[SD])); - string cacheDir(fmt("%s/%s_gamecube.db", m_cacheDir.c_str(), DeviceName[SD])); + string cacheDir(fmt("%s/%s_gamecube.db", m_listCacheDir.c_str(), DeviceName[SD])); SD_List.CreateList(COVERFLOW_DML, SD, gameDir, stringToVector(".iso|root", '|'), cacheDir, false); for(vector::iterator List = SD_List.begin(); List != SD_List.end(); List++) @@ -758,7 +758,7 @@ void CMenu::directlaunch(const char *GameID) continue; DeviceHandle.OpenWBFS(currentPartition); string gameDir(fmt(GAMES_DIR, DeviceName[currentPartition])); - string cacheDir(fmt("%s/%s_wii.db", m_cacheDir.c_str(), DeviceName[currentPartition])); + string cacheDir(fmt("%s/%s_wii.db", m_listCacheDir.c_str(), DeviceName[currentPartition])); m_gameList.CreateList(COVERFLOW_USB, currentPartition, gameDir, stringToVector(".wbfs|.iso", '|'), cacheDir, false); WBFS_Close();