Files
flowframes/Code/Program.cs

47 lines
1.1 KiB
C#
Raw Normal View History

2020-11-23 16:51:05 +01:00
using Flowframes.Data;
using Flowframes.IO;
using Flowframes.OS;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Flowframes
{
static class Program
{
public static Form1 mainForm;
public static bool busy = false;
public static string lastInputPath;
public static bool lastInputPathIsSsd;
2020-12-17 11:32:45 +01:00
public static Queue<InterpSettings> batchQueue = new Queue<InterpSettings>();
2020-11-23 16:51:05 +01:00
[STAThread]
static void Main()
{
Config.Init();
2020-11-27 09:45:06 +01:00
if (Config.GetBool("delLogsOnStartup"))
2020-11-23 16:51:05 +01:00
IOUtils.DeleteContentsOfDir(Paths.GetLogPath()); // Clear out older logs not from this session
string oldExePath = IOUtils.GetExe() + ".old";
IOUtils.TryDeleteIfExists(oldExePath);
Networks.Init();
NvApi.Init();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
mainForm = new Form1();
Application.Run(mainForm);
}
}
}