From bafe2893b86305c20f625ca9a12bffa236799bc1 Mon Sep 17 00:00:00 2001 From: Reece Date: Wed, 19 Jan 2022 17:18:06 +0000 Subject: [PATCH] [+] Added ^/ mount, mapped to binary path --- Source/IO/FS/FS.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/IO/FS/FS.cpp b/Source/IO/FS/FS.cpp index 2bd46c75..269411c6 100644 --- a/Source/IO/FS/FS.cpp +++ b/Source/IO/FS/FS.cpp @@ -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] == '~') {