Load() public method

public Load ( string binDir, bool engineRunning, string initMapPath ) : bool
binDir string
engineRunning bool
initMapPath string
return bool
コード例 #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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Azerothian/fc3editor
 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);
 }