[+] Added ^/ mount, mapped to binary path

This commit is contained in:
Reece Wilson 2022-01-19 17:18:06 +00:00
parent 7759d38ed0
commit bafe2893b8

View File

@ -16,7 +16,7 @@ namespace Aurora::IO::FS
{
static bool IsMagicCharacter(char c)
{
return (c == '.') || (c == '!') || (c == '~') || (c == '?');
return (c == '.') || (c == '!') || (c == '~') || (c == '?') || (c == '^');
}
static void ResolveAbsolutePath(bool requireMountExpand, bool requireSanitization, const AuString &path, AuString &result)
@ -39,6 +39,12 @@ namespace Aurora::IO::FS
SysAssert(Process::GetWorkingDirectory(buffer));
buffer += kPathSplitter;
}
// Binary directory
else if (path[0] == '^')
{
SysAssert(Process::GetProcPath(buffer));
buffer += kPathSplitter;
}
// Local Aurora profile
else if (path[0] == '~')
{