2025-01-28 14:58:37 +01:00
|
|
|
namespace CodexPlugin
|
|
|
|
|
{
|
|
|
|
|
public class CodexExePath
|
|
|
|
|
{
|
2025-02-03 10:08:29 +01:00
|
|
|
private readonly string[] paths = [
|
|
|
|
|
Path.Combine("d:", "Dev", "nim-codex", "build", "codex.exe"),
|
|
|
|
|
Path.Combine("c:", "Projects", "nim-codex", "build", "codex.exe")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
private string selectedPath = string.Empty;
|
|
|
|
|
|
|
|
|
|
public CodexExePath()
|
|
|
|
|
{
|
|
|
|
|
foreach (var p in paths)
|
|
|
|
|
{
|
|
|
|
|
if (File.Exists(p))
|
|
|
|
|
{
|
|
|
|
|
selectedPath = p;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-01-28 14:58:37 +01:00
|
|
|
|
|
|
|
|
public string Get()
|
|
|
|
|
{
|
2025-02-03 10:08:29 +01:00
|
|
|
return selectedPath;
|
2025-01-28 14:58:37 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|