From 53a5d4b4282900e5fa8a888df3c0c75d837ae1db Mon Sep 17 00:00:00 2001 From: Mitch Andrews Date: Sun, 25 Jun 2023 02:27:49 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=95=20FMOD=20proper=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Engine.sharpmake.cs | 2 +- Tools/BaseProject.sharpmake.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine.sharpmake.cs b/Engine.sharpmake.cs index 624f6243..a89f26d0 100644 --- a/Engine.sharpmake.cs +++ b/Engine.sharpmake.cs @@ -159,7 +159,7 @@ public override void ConfigureWin64(Configuration conf, CommonTarget target) conf.LibraryFiles.Add("assimp-vc140-mt.lib"); conf.LibraryFiles.Add("AppCore"); - if (!string.IsNullOrEmpty(Globals.FMOD_Win64_Dir)) + if (Directory.Exists(Globals.FMOD_Win64_Dir)) { conf.IncludePaths.Add(Path.Combine(Globals.FMOD_Win64_Dir, "api/core/inc")); conf.LibraryPaths.Add(Path.Combine(Globals.FMOD_Win64_Dir, "api/core/lib/x64")); diff --git a/Tools/BaseProject.sharpmake.cs b/Tools/BaseProject.sharpmake.cs index 3cc81865..745155c6 100644 --- a/Tools/BaseProject.sharpmake.cs +++ b/Tools/BaseProject.sharpmake.cs @@ -53,7 +53,7 @@ public virtual void ConfigureAll(Project.Configuration conf, CommonTarget target conf.Defines.Add("NOMINMAX"); - if (!string.IsNullOrEmpty(Globals.FMOD_Win64_Dir) || !string.IsNullOrEmpty(Globals.FMOD_UWP_Dir)) + if (Directory.Exists(Globals.FMOD_Win64_Dir) || Directory.Exists(Globals.FMOD_UWP_Dir)) { conf.Defines.Add("FMOD_ENABLED"); conf.Defines.Add("_DISABLE_EXTENDED_ALIGNED_STORAGE");