-fixed REALLY stupid bug which didnt create the wiiflow folder

structure, it just never created the initial main folder d'oh!
This commit is contained in:
fix94.1 2012-06-18 16:11:46 +00:00
parent 15a9454336
commit 425d1d0ec9
2 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,7 @@ bool fsop_DirExist(char *path)
bool fsop_MakeFolder(char *path)
{
gprintf("Folder path to create: %s\n", path);
if(mkdir(path, S_IREAD | S_IWRITE) == 0)
return true;

View File

@ -325,6 +325,7 @@ void CMenu::init(void)
m_cf.init(m_base_font, m_base_font_size, m_vid.vid_50hz());
//Make important folders first.
fsop_MakeFolder((char *)m_dataDir.c_str()); //D'OH!
fsop_MakeFolder((char *)m_cacheDir.c_str());
fsop_MakeFolder((char *)m_settingsDir.c_str());
fsop_MakeFolder((char *)m_languagesDir.c_str());