Inheritance: System.MarshalByRefObject
Ejemplo n.º 1
0
        private static void Main()
        {
            bool engineRunning = false;

            while (true)
            {
                Program.BinFile = Assembly.GetEntryAssembly().Location;
                Program.BinDir  = Path.GetDirectoryName(Program.BinFile) + "\\";
                bool flag = Debugger.IsAttached && Program.HasArgument("-usereload");
                if (!flag)
                {
                    goto IL_7D;
                }
                AppDomain       appDomain       = AppDomain.CreateDomain("FC3EditorAppDomain");
                FC3EditorLoader fC3EditorLoader = (FC3EditorLoader)appDomain.CreateInstanceFromAndUnwrap(Program.BinFile, "FC3Editor.FC3EditorLoader");
                bool            flag2           = fC3EditorLoader.Load(Program.BinDir, engineRunning, null);
                AppDomain.Unload(appDomain);
                if (!flag2)
                {
                    break;
                }
                engineRunning = true;
            }
            return;

IL_7D:
            string mapArgument = Program.GetMapArgument();
            FC3EditorLoader fC3EditorLoader2 = new FC3EditorLoader();

            fC3EditorLoader2.Load(Program.BinDir, engineRunning, mapArgument);
        }
Ejemplo n.º 2
0
 private static void Main()
 {
     bool engineRunning = false;
     while (true)
     {
         Program.BinFile = Assembly.GetEntryAssembly().Location;
         Program.BinDir = Path.GetDirectoryName(Program.BinFile) + "\\";
         bool flag = Debugger.IsAttached && Program.HasArgument("-usereload");
         if (!flag)
         {
             goto IL_7D;
         }
         AppDomain appDomain = AppDomain.CreateDomain("FC3EditorAppDomain");
         FC3EditorLoader fC3EditorLoader = (FC3EditorLoader)appDomain.CreateInstanceFromAndUnwrap(Program.BinFile, "FC3Editor.FC3EditorLoader");
         bool flag2 = fC3EditorLoader.Load(Program.BinDir, engineRunning, null);
         AppDomain.Unload(appDomain);
         if (!flag2)
         {
             break;
         }
         engineRunning = true;
     }
     return;
     IL_7D:
     string mapArgument = Program.GetMapArgument();
     FC3EditorLoader fC3EditorLoader2 = new FC3EditorLoader();
     fC3EditorLoader2.Load(Program.BinDir, engineRunning, mapArgument);
 }