1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using System;
- using System.Collections.Generic;
- using System.Windows.Forms;
- using System.Reflection;
- using System.Collections;
- using System.Configuration;
- using CommonAI.Zone.ZoneEditor.Plugin.EditorToScene;
- using System.IO;
- using System.Runtime.InteropServices;
- using CommonLang.Property;
- namespace CommonAIEditor
- {
- static class Program
- {
- public static bool g_SimpleGen = true;
-
-
-
- [STAThread]
- static void Main(string[] args)
- {
-
- ReflectionUtil.LoadDlls(new DirectoryInfo(Application.StartupPath));
- EditorPlugin.Init();
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
-
- bool autosave = false;
- foreach (string str in args)
- {
- if (str.Equals("auto"))
- {
- autosave = true;
- }
- else if (str.Equals("genlanguage"))
- {
- g_SimpleGen = false;
- }
- }
-
- Application.Run(new Editor(autosave));
- }
- }
- static public class Launcher
- {
- [STAThread]
- static public void Main(string[] args)
- {
-
- ReflectionUtil.LoadDlls(new DirectoryInfo(Application.StartupPath));
- EditorPlugin.Init();
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- bool autosave = false;
- foreach (string str in args)
- if (str.Equals("auto")) autosave = true;
- Application.Run(new Editor(autosave));
- }
- }
- }
|