[*] W32oW64 awareness

This commit is contained in:
Reece Wilson 2023-12-01 02:21:58 +00:00
parent 274a0e1783
commit eb1ec8b763

View File

@ -194,7 +194,14 @@ namespace Aurora::IO::FS
{
gHomeDirectory = GetSpecialDir(FOLDERID_RoamingAppData);
gApplicationData = GetSpecialDir(FOLDERID_ProgramData);
gSystemLibPath = GetSpecialDir(FOLDERID_System);
if constexpr (AuBuild::IsPlatformX32())
{
gSystemLibPath = GetSpecialDir(FOLDERID_SystemX86);
}
else
{
gSystemLibPath = GetSpecialDir(FOLDERID_System);
}
gUserHomeDirectory = GetSpecialDir(FOLDERID_Profile);
gAdminWritableAppDirectory = gApplicationData;
gUserWritableAppData = gHomeDirectory;