Make it possible to actually find all of SM's files on Windows. I know this had
good intentions, but it was infuriating and confusing to everyone I've ever had to explain it to. %APPDATA% will work fine.
This commit is contained in:
@@ -61,16 +61,23 @@ void ArchHooks::MountInitialFilesystems( const RString &sDirOfExecutable )
|
|||||||
|
|
||||||
void ArchHooks::MountUserFilesystems( const RString &sDirOfExecutable )
|
void ArchHooks::MountUserFilesystems( const RString &sDirOfExecutable )
|
||||||
{
|
{
|
||||||
RString sCommonAppDataDir = SpecialDirs::GetCommonAppDataDir() + PRODUCT_ID;
|
/*
|
||||||
|
* Look, I know what you're thinking: "Hey, let's put all this stuff into
|
||||||
|
* their respective 'proper' places on the filesystem!" Stop. Now.
|
||||||
|
* This was done before and it was the most ungodly confusing thing to ever
|
||||||
|
* happen. Just don't do it, seriously. Keep them in one place.
|
||||||
|
* - Colby
|
||||||
|
*/
|
||||||
RString sAppDataDir = SpecialDirs::GetAppDataDir() + PRODUCT_ID;
|
RString sAppDataDir = SpecialDirs::GetAppDataDir() + PRODUCT_ID;
|
||||||
RString sLocalAppDataDir = SpecialDirs::GetLocalAppDataDir() + PRODUCT_ID;
|
//RString sCommonAppDataDir = SpecialDirs::GetCommonAppDataDir() + PRODUCT_ID;
|
||||||
RString sPicturesDir = SpecialDirs::GetPicturesDir() + PRODUCT_ID;
|
//RString sLocalAppDataDir = SpecialDirs::GetLocalAppDataDir() + PRODUCT_ID;
|
||||||
|
//RString sPicturesDir = SpecialDirs::GetPicturesDir() + PRODUCT_ID;
|
||||||
|
|
||||||
FILEMAN->Mount( "dir", sAppDataDir + "/Logs", "/Logs" );
|
FILEMAN->Mount( "dir", sAppDataDir + "/Logs", "/Logs" );
|
||||||
FILEMAN->Mount( "dir", sAppDataDir + "/Save", "/Save" );
|
FILEMAN->Mount( "dir", sAppDataDir + "/Save", "/Save" );
|
||||||
FILEMAN->Mount( "dir", sPicturesDir + " /Screenshots", "/Screenshots" );
|
FILEMAN->Mount( "dir", sAppDataDir + "/Screenshots", "/Screenshots" );
|
||||||
FILEMAN->Mount( "dir", sCommonAppDataDir, "/" );
|
FILEMAN->Mount( "dir", sAppDataDir, "/" );
|
||||||
FILEMAN->Mount( "dir", sCommonAppDataDir + "/Cache", "/Cache" );
|
FILEMAN->Mount( "dir", sAppDataDir + "/Cache", "/Cache" );
|
||||||
FILEMAN->Mount( "dir", sAppDataDir + "/Packages", "/" + SpecialFiles::USER_PACKAGES_DIR );
|
FILEMAN->Mount( "dir", sAppDataDir + "/Packages", "/" + SpecialFiles::USER_PACKAGES_DIR );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user