CLI mode (hide window)

This commit is contained in:
N00MKRAD
2024-09-28 21:33:36 +02:00
parent 76defc4c19
commit 8a3b4ebd80
7 changed files with 79 additions and 23 deletions

View File

@@ -28,10 +28,13 @@ namespace Flowframes
public static bool lastInputPathIsSsd;
public static Queue<InterpSettings> batchQueue = new Queue<InterpSettings>();
public static bool CmdMode = false;
[STAThread]
static void Main()
{
CmdMode = new FileInfo(Paths.GetExe()).Name.Contains("Cmd");
// Force culture to en-US across entire application (to avoid number parsing issues etc)
var culture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = culture;