From bb6e704ab011a497ac8c735afc0fd4c52a1425ce Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Tue, 9 Jan 2018 15:01:04 +0100 Subject: Added old project --- love2dToAPK/Program.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 love2dToAPK/Program.cs (limited to 'love2dToAPK/Program.cs') diff --git a/love2dToAPK/Program.cs b/love2dToAPK/Program.cs new file mode 100644 index 0000000..7d8473f --- /dev/null +++ b/love2dToAPK/Program.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Media; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace love2dToAPK { + static class Program { + /// + /// The main entry point for the application. + /// + /// + + public static Forms.frmOutput frmOutput; + + public static string Output { + get { return _output; } + set { _output = value; log(value); } + } + private static string _output; + + + [STAThread] + static void Main() { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + + if (Properties.Settings.Default.firstStart) { + Forms.frmFirstStartup firstStartupDialog = new Forms.frmFirstStartup(); + firstStartupDialog.ShowDialog(); + } + Application.Run(new Forms.frmMain()); + } + + private static void log(string str) { + if (frmOutput != null) { + frmOutput.log(str); + } + } + + } +} -- cgit v1.2.3