2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00
pulsar/Pulsar/Program.cs
2024-04-13 18:10:46 +10:00

26 lines
637 B
C#

using System.Reflection;
using Observatory;
using Pulsar;
using Pulsar.Utils;
SettingsManager.Load();
if (args.Length > 0 && File.Exists(args[0]))
{
var fileInfo = new FileInfo(args[0]);
if (fileInfo.Extension == ".eop" || fileInfo.Extension == ".zip")
File.Copy(
fileInfo.FullName,
$"{AppDomain.CurrentDomain.BaseDirectory}{Path.DirectorySeparatorChar}plugins{Path.DirectorySeparatorChar}{fileInfo.Name}");
}
var version = Assembly.GetEntryAssembly()?.GetName().Version?.ToString() ?? "0";
try
{
//TODO: Start Application
}
catch (Exception ex)
{
LoggingUtils.LogError(ex, version);
}