From eb1ec8b763a3c3c52a297bb459f7ff2100ea1147 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Fri, 1 Dec 2023 02:21:58 +0000 Subject: [PATCH] [*] W32oW64 awareness --- Source/IO/FS/Resources.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/IO/FS/Resources.cpp b/Source/IO/FS/Resources.cpp index e3e32b34..a313beee 100644 --- a/Source/IO/FS/Resources.cpp +++ b/Source/IO/FS/Resources.cpp @@ -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;