save Cache to My Documents. The Application Data dir is a pain to get to.

This commit is contained in:
Chris Danford
2006-03-19 20:50:09 +00:00
parent 8166dbcc2d
commit 702e5401d5
3 changed files with 1 additions and 14 deletions
@@ -51,10 +51,9 @@ void ArchHooks::MountInitialFilesystems( const RString &sDirOfExecutable )
FILEMAN->Mount( "dir", Dir, "/" );
RString sMyDocumentsDir = SpecialDirs::GetMyDocumentsDir();
RString sApplicationDataDir = SpecialDirs::GetApplicationDataDir();
// Mount everything game-writable (not counting the editor) to the user's directory.
FILEMAN->Mount( "dir", sApplicationDataDir + PRODUCT_ID + "/Cache", "/Cache" );
FILEMAN->Mount( "dir", sMyDocumentsDir + PRODUCT_ID + "/Cache", "/Cache" );
FILEMAN->Mount( "dir", sMyDocumentsDir + PRODUCT_ID + "/Save", "/Save" );
FILEMAN->Mount( "dir", sMyDocumentsDir + PRODUCT_ID + "/Screenshots", "/Screenshots" );
}
@@ -13,17 +13,6 @@ RString SpecialDirs::GetMyDocumentsDir()
return sMyDocumentsDir;
}
RString SpecialDirs::GetApplicationDataDir()
{
RString sDir;
TCHAR szDir[MAX_PATH] = "";
BOOL bResult = SHGetSpecialFolderPath( NULL, szDir, CSIDL_APPDATA, FALSE );
ASSERT( bResult );
sDir = szDir;
sDir += "/";
return sDir;
}
RString SpecialDirs::GetDesktopDir()
{
RString sDir;
@@ -4,7 +4,6 @@
namespace SpecialDirs
{
RString GetMyDocumentsDir();
RString GetApplicationDataDir();
RString GetDesktopDir();
};