[*] Added a macro preprocessor to remove Aurora branding from ~ and ! profile lookups
This commit is contained in:
parent
17e778eb5e
commit
42325b08b8
@ -138,12 +138,19 @@ namespace Aurora::IO::FS
|
||||
|
||||
static void ChangeDir()
|
||||
{
|
||||
#if !defined(AU_NO_AU_HOME_BRANDING)
|
||||
gApplicationData += "/Aurora/System";
|
||||
gHomeDirectory += "/Aurora/Profile";
|
||||
#else
|
||||
gApplicationData += "/.application";
|
||||
gHomeDirectory += "/.config"; //most unix programs hide their private user data under here
|
||||
#endif
|
||||
|
||||
NormalizePath(gApplicationData);
|
||||
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;
|
||||
gHomeDirectory += kPathSplitter;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user