summaryrefslogtreecommitdiff
path: root/love2dToAPK/Program.cs
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-01-09 15:01:04 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-01-09 15:01:04 +0100
commitbb6e704ab011a497ac8c735afc0fd4c52a1425ce (patch)
treebed462d18c4f976f30c690b529d6de8b2a6ba2ff /love2dToAPK/Program.cs
parentd2c375c015fe3e216234a887ab75e08d40f5f5db (diff)
downloadLove2dToAPK-bb6e704ab011a497ac8c735afc0fd4c52a1425ce.tar.gz
Love2dToAPK-bb6e704ab011a497ac8c735afc0fd4c52a1425ce.zip
Added old project
Diffstat (limited to 'love2dToAPK/Program.cs')
-rw-r--r--love2dToAPK/Program.cs43
1 files changed, 43 insertions, 0 deletions
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 {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ ///
+
+ 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);
+ }
+ }
+
+ }
+}