[+] Added verbose environment directory paths print
This commit is contained in:
parent
35237b5749
commit
4ebf813fd7
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user