From 620cb84a918d7afef79e4e6bbc762c783a7e07f7 Mon Sep 17 00:00:00 2001 From: Athene Allen Date: Sun, 11 May 2025 15:56:18 +0100 Subject: [PATCH 1/1] fix up more possible paths depending what platform and ide i'm using --- SiteTools/ParticleGen/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SiteTools/ParticleGen/Program.cs b/SiteTools/ParticleGen/Program.cs index fb38b87..cca813a 100644 --- a/SiteTools/ParticleGen/Program.cs +++ b/SiteTools/ParticleGen/Program.cs @@ -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 -- 2.47.3