- Now wiiflow looks for source_menu.ini in the current theme folder first and then the source_menu folder. so for themes that have their own source menu btns just put the images and sourc_menu.ini in the theme folder.

This commit is contained in:
fledge68 2013-06-24 22:43:52 +00:00
parent 9f9f351485
commit f2db4d8eaf

View File

@ -197,6 +197,7 @@ bool CMenu::_Source()
DIR *pdir;
struct dirent *pent;
if(!m_source.loaded())
if(!m_source.load(fmt("%s/%s", m_themeDataDir.c_str(), SOURCE_FILENAME)))
m_source.load(fmt("%s/%s", m_sourceDir.c_str(), SOURCE_FILENAME));
pdir = opendir(m_pluginsDir.c_str());
@ -656,6 +657,7 @@ void CMenu::_initSourceMenu()
m_sourceDir = m_cfg.getString("GENERAL", "dir_Source", fmt("%s/source_menu", m_dataDir.c_str()));
if(!m_source.loaded())
if(!m_source.load(fmt("%s/%s", m_themeDataDir.c_str(), SOURCE_FILENAME)))
m_source.load(fmt("%s/%s", m_sourceDir.c_str(), SOURCE_FILENAME));
int row;