]> fortfriendship.online Git - gnargle.github.io.git/commitdiff
fix up more possible paths depending what platform and ide i'm using
authorAthene Allen <atheneallen93@gmail.com>
Sun, 11 May 2025 14:56:18 +0000 (15:56 +0100)
committerAthene Allen <atheneallen93@gmail.com>
Sun, 11 May 2025 14:56:18 +0000 (15:56 +0100)
SiteTools/ParticleGen/Program.cs

index fb38b87f64371b1b2fb87276fbb2c8a8dddec8d6..cca813a5b925f30d4e3112496ec65912878765d5 100644 (file)
@@ -112,6 +112,10 @@ string FindFile(string fileName)
     {
         file = Path.Combine(Directory.GetCurrentDirectory(), $"../../../../../{fileName}");
     }
+    if (!File.Exists(file))
+    {
+        file = Path.Combine(Directory.GetCurrentDirectory(), $"../../../../{fileName}");
+    }
 
     return file;
 }
@@ -123,5 +127,9 @@ string FindDirectory(string folderName)
     {
         folder = Path.Combine(Directory.GetCurrentDirectory(), $"../../../../../{folderName}");
     }
+    if (!Directory.Exists(folder))
+    {
+        folder = Path.Combine(Directory.GetCurrentDirectory(), $"../../../../{folderName}");
+    }
     return folder;
 }
\ No newline at end of file