save Cache to My Documents. The Application Data dir is a pain to get to.
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user