[+] Added ^/ mount, mapped to binary path
This commit is contained in:
parent
7759d38ed0
commit
bafe2893b8
@ -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] == '~')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user