[+] Added verbose environment directory paths print

This commit is contained in:
Reece Wilson 2022-02-20 23:21:20 +00:00
parent 35237b5749
commit 4ebf813fd7

View File

@ -67,6 +67,82 @@ TEST(FS, MkDir)
ASSERT_FALSE(AuIOFS::DirExists("./test_dir"));
}
static void PrintSystemRoot()
{
AuString path;
if (AuIOFS::GetAppData(path))
{
AuLogInfo("Found /platform/user app directory, {}", path);
}
else
{
AuLogInfo("Couldn't find /platform/user");
}
if (AuIOFS::GetWritableAppdata(path))
{
AuLogInfo("Found system extension application specific storage, {}", path);
}
else
{
AuLogInfo("Couldn't find system extension application specific storage");
}
if (AuIOFS::GetRootAppdata(path))
{
AuLogInfo("Found privileged application specific storage, {}", path);
}
else
{
AuLogInfo("Couldn't find privileged application specific storage");
}
if (AuIOFS::GetPackagePath(path))
{
AuLogInfo("Found package directory, {}", path);
}
else
{
AuLogInfo("Couldn't find package directory");
}
if (AuIOFS::GetProfileDomain(path))
{
AuLogInfo("Found profile directory, {}", path);
}
else
{
AuLogInfo("Couldn't find profile directory");
}
if (AuIOFS::GetSystemDomain(path))
{
AuLogInfo("Found system share directory, {}", path);
}
else
{
AuLogInfo("Couldn't find system share directory");
}
if (AuIOFS::GetUserHome(path))
{
AuLogInfo("Found user home, {}", path);
}
else
{
AuLogInfo("Couldn't find user home directory");
}
if (AuIOFS::GetUserProgramsFolder(path))
{
AuLogInfo("Found users installable programs home, {}", path);
}
else
{
AuLogInfo("Couldn't find users installable programs home");
}
}
void RunTests()
{
Aurora::RuntimeStartInfo info;
@ -74,4 +150,6 @@ void RunTests()
info.console.forceToolKitWindow = false;
info.fio.defaultBrand = "AuSdkBrand";
Aurora::RuntimeStart(info);
PrintSystemRoot();
}