diff --git a/FileUtils.cs b/FileUtils.cs --- a/FileUtils.cs +++ b/FileUtils.cs @@ -21,10 +21,9 @@ namespace DesertPaintLab System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "data", dirname); - if (!System.IO.Directory.Exists(dirPath)) + if (System.IO.Directory.Exists(dirPath)) { - // not found - dirPath = null; + return dirPath; } // try "Resources" in case this is a Mac app bundle dirPath = System.IO.Path.Combine( @@ -44,10 +43,10 @@ namespace DesertPaintLab System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "Resources", "data", dirname); - if (!System.IO.Directory.Exists(dirPath)) + if (System.IO.Directory.Exists(dirPath)) { // not found - dirPath = null; + return dirPath; } dirPath = System.IO.Path.Combine( System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),