mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 21:54:15 +01:00
- Fix for UpdateCache() to work properly and fix for wii_games_dir to work properly to set the wii games folder and moved it from GENERAL to GAMES in wiiflow.ini
This commit is contained in:
parent
45400dd879
commit
c1be6e78b8
@ -199,7 +199,7 @@ void CMenu::init()
|
|||||||
_netInit();
|
_netInit();
|
||||||
/* Our Wii game dir */
|
/* Our Wii game dir */
|
||||||
memset(wii_games_dir, 0, 64);
|
memset(wii_games_dir, 0, 64);
|
||||||
strncpy(wii_games_dir, m_cfg.getString("GENERAL", "wii_games_dir", GAMES_DIR).c_str(), 64);
|
strncpy(wii_games_dir, m_cfg.getString(WII_DOMAIN, "wii_games_dir", GAMES_DIR).c_str(), 64);
|
||||||
if(strncmp(wii_games_dir, "%s:/", 4) != 0)
|
if(strncmp(wii_games_dir, "%s:/", 4) != 0)
|
||||||
strcpy(wii_games_dir, GAMES_DIR);
|
strcpy(wii_games_dir, GAMES_DIR);
|
||||||
gprintf("Wii Games Directory: %s\n", wii_games_dir);
|
gprintf("Wii Games Directory: %s\n", wii_games_dir);
|
||||||
@ -2221,7 +2221,7 @@ bool CMenu::_loadGameList(void)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
DeviceHandle.OpenWBFS(currentPartition);
|
DeviceHandle.OpenWBFS(currentPartition);
|
||||||
string gameDir(fmt(GAMES_DIR, DeviceName[currentPartition]));
|
string gameDir(fmt(wii_games_dir, DeviceName[currentPartition]));
|
||||||
string cacheDir(fmt("%s/%s_wii.db", m_listCacheDir.c_str(), DeviceName[currentPartition]));
|
string cacheDir(fmt("%s/%s_wii.db", m_listCacheDir.c_str(), DeviceName[currentPartition]));
|
||||||
bool updateCache = m_cfg.getBool(WII_DOMAIN, "update_cache");
|
bool updateCache = m_cfg.getBool(WII_DOMAIN, "update_cache");
|
||||||
m_gameList.CreateList(COVERFLOW_USB, currentPartition, gameDir, stringToVector(".wbfs|.iso", '|'), cacheDir, updateCache);
|
m_gameList.CreateList(COVERFLOW_USB, currentPartition, gameDir, stringToVector(".wbfs|.iso", '|'), cacheDir, updateCache);
|
||||||
@ -2538,7 +2538,23 @@ void CMenu::UpdateCache(u32 view)
|
|||||||
UpdateCache(COVERFLOW_CHANNEL);
|
UpdateCache(COVERFLOW_CHANNEL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_cfg.setBool(_domainFromView(), "update_cache", true);
|
switch(view)
|
||||||
|
{
|
||||||
|
case COVERFLOW_CHANNEL:
|
||||||
|
m_cfg.setBool(CHANNEL_DOMAIN, "update_cache", true);
|
||||||
|
break;
|
||||||
|
case COVERFLOW_HOMEBREW:
|
||||||
|
m_cfg.setBool(HOMEBREW_DOMAIN, "update_cache", true);
|
||||||
|
break;
|
||||||
|
case COVERFLOW_DML:
|
||||||
|
m_cfg.setBool(GC_DOMAIN, "update_cache", true);
|
||||||
|
break;
|
||||||
|
case COVERFLOW_PLUGIN:
|
||||||
|
m_cfg.setBool(PLUGIN_DOMAIN, "update_cache", true);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
m_cfg.setBool(WII_DOMAIN, "update_cache", true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int CMenu::MIOSisDML()
|
int CMenu::MIOSisDML()
|
||||||
|
@ -781,7 +781,7 @@ void CMenu::directlaunch(const char *GameID)
|
|||||||
if(!DeviceHandle.IsInserted(currentPartition))
|
if(!DeviceHandle.IsInserted(currentPartition))
|
||||||
continue;
|
continue;
|
||||||
DeviceHandle.OpenWBFS(currentPartition);
|
DeviceHandle.OpenWBFS(currentPartition);
|
||||||
string gameDir(fmt(GAMES_DIR, DeviceName[currentPartition]));
|
string gameDir(fmt(wii_games_dir, DeviceName[currentPartition]));
|
||||||
string cacheDir(fmt("%s/%s_wii.db", m_listCacheDir.c_str(), DeviceName[currentPartition]));
|
string cacheDir(fmt("%s/%s_wii.db", m_listCacheDir.c_str(), DeviceName[currentPartition]));
|
||||||
m_gameList.CreateList(COVERFLOW_USB, currentPartition, gameDir,
|
m_gameList.CreateList(COVERFLOW_USB, currentPartition, gameDir,
|
||||||
stringToVector(".wbfs|.iso", '|'), cacheDir, false);
|
stringToVector(".wbfs|.iso", '|'), cacheDir, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user