Skip to content

Commit

Permalink
🪕 FMOD proper check
Browse files Browse the repository at this point in the history
  • Loading branch information
wobbier committed Jun 25, 2023
1 parent 8bccf2e commit 53a5d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Engine.sharpmake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
2 changes: 1 addition & 1 deletion Tools/BaseProject.sharpmake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 53a5d4b

Please sign in to comment.