2026-04-15 20:34:49 +10:00
|
|
|
|
namespace StoragePlugin
|
2025-01-28 14:58:37 +01:00
|
|
|
|
{
|
2026-04-15 20:34:49 +10:00
|
|
|
|
public class LogosStorageExePath
|
2025-01-28 14:58:37 +01:00
|
|
|
|
{
|
2025-02-03 10:08:29 +01:00
|
|
|
|
private readonly string[] paths = [
|
2026-04-15 20:34:49 +10:00
|
|
|
|
Path.Combine("d:", "Dev", "logos-storage-nim", "build", "storage.exe"),
|
|
|
|
|
|
Path.Combine("c:", "Projects", "logos-storage-nim", "build", "storage.exe")
|
2025-02-03 10:08:29 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
private string selectedPath = string.Empty;
|
|
|
|
|
|
|
2026-04-15 20:34:49 +10:00
|
|
|
|
public LogosStorageExePath()
|
2025-02-03 10:08:29 +01:00
|
|
|
|
{
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|