In r5448 the CSharedContent and cUIDsys constructors create the Wii/shared1

and Wii/sys directories if they do not already exist. This conflicts with
DolphinApp::OnInit (run after constructors) which populates the User tree
only if there isn't already something there.

Instead, set up the two directories in the Data tree.

With this change, sys/uid.sys still won't be created until the _second_ run
after a fresh install, so these file initializations should be moved out of
constructors so that they will be run after OnInit().


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5526 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2010-05-28 14:45:07 +00:00
parent 6687f3e791
commit 270fe2a997
1 changed files with 0 additions and 5 deletions

View File

@ -51,10 +51,6 @@ CSharedContent::CSharedContent()
}
fclose(pFile);
}
else
{
File::CreateFullPath(contentMap);
}
}
CSharedContent::~CSharedContent()
@ -408,7 +404,6 @@ cUIDsys::cUIDsys()
*(u64*)&(Element.titleID) = Common::swap64(0x0000000100000002ull);
*(u32*)&(Element.UID) = Common::swap32(lastUID++);
File::CreateFullPath(uidSys);
FILE* pFile = fopen(uidSys, "wb");
if (pFile)
{