Fix ifdefs

This commit is contained in:
Hyper 2025-03-07 00:51:52 +00:00
parent a2099f4c4f
commit 8a5907902c

View file

@ -27,7 +27,7 @@
#include <timeapi.h> #include <timeapi.h>
#endif #endif
#if _WIN32 && UNLEASHED_RECOMP_D3D12 #if defined(_WIN32) && defined(UNLEASHED_RECOMP_D3D12)
static std::array<std::string_view, 3> g_D3D12RequiredModules = static std::array<std::string_view, 3> g_D3D12RequiredModules =
{ {
"D3D12/D3D12Core.dll", "D3D12/D3D12Core.dll",
@ -189,7 +189,7 @@ int main(int argc, char *argv[])
Config::Load(); Config::Load();
#if _WIN32 && UNLEASHED_RECOMP_D3D12 #if defined(_WIN32) && defined(UNLEASHED_RECOMP_D3D12)
for (auto& dll : g_D3D12RequiredModules) for (auto& dll : g_D3D12RequiredModules)
{ {
if (!std::filesystem::exists(g_executableRoot / dll)) if (!std::filesystem::exists(g_executableRoot / dll))