mirror of
https://github.com/n00mkrad/flowframes
synced 2024-11-16 19:10:31 +01:00
49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
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;
|
|
|
|
public static Queue<InterpSettings> batchQueue = new Queue<InterpSettings>();
|
|
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Paths.Init();
|
|
Config.Init();
|
|
|
|
if (Config.GetBool("delLogsOnStartup"))
|
|
IOUtils.DeleteContentsOfDir(Paths.GetLogPath()); // Clear out older logs not from this session
|
|
|
|
string oldExePath = IOUtils.GetExe() + ".old";
|
|
IOUtils.TryDeleteIfExists(oldExePath);
|
|
|
|
PkgInstaller.Init();
|
|
Networks.Init();
|
|
NvApi.Init();
|
|
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
mainForm = new Form1();
|
|
Application.Run(mainForm);
|
|
|
|
}
|
|
}
|
|
}
|