[*] Added a macro preprocessor to remove Aurora branding from ~ and ! profile lookups

This commit is contained in:
Reece Wilson 2021-07-13 14:07:22 +01:00
parent 17e778eb5e
commit 42325b08b8

View File

@ -138,12 +138,19 @@ namespace Aurora::IO::FS
static void ChangeDir() static void ChangeDir()
{ {
#if !defined(AU_NO_AU_HOME_BRANDING)
gApplicationData += "/Aurora/System"; gApplicationData += "/Aurora/System";
gHomeDirectory += "/Aurora/Profile"; gHomeDirectory += "/Aurora/Profile";
#else
gApplicationData += "/.application";
gHomeDirectory += "/.config"; //most unix programs hide their private user data under here
#endif
NormalizePath(gApplicationData); NormalizePath(gApplicationData);
NormalizePath(gHomeDirectory); NormalizePath(gHomeDirectory);
// Noting we append a path splitter to prevent hair pulling over missing path delimiters
// Eg: GetHome() + "myAwesomeApp/Config" = %HOME%/Aurora/ProfilemyAwsomeApp/Config
gApplicationData += kPathSplitter; gApplicationData += kPathSplitter;
gHomeDirectory += kPathSplitter; gHomeDirectory += kPathSplitter;
} }