From 270fe2a99747cd30cddb7a9e292babc33b7c8549 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Fri, 28 May 2010 14:45:07 +0000 Subject: [PATCH] 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 --- Source/Core/DiscIO/Src/NANDContentLoader.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Source/Core/DiscIO/Src/NANDContentLoader.cpp b/Source/Core/DiscIO/Src/NANDContentLoader.cpp index 25b48d2b3b..4b29ef594a 100644 --- a/Source/Core/DiscIO/Src/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/Src/NANDContentLoader.cpp @@ -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) {