Exemplo n.º 1
0
        static void ProcessCommandLineArguments(string[] args)
        {
            //VerifyScnRegistry();
            bool replace = true;

            foreach (string s in args)
            {
                if (FileManager.GetExtension(s) == "scn")
                {
                    GuiData.MenuStrip.PerformLoadScn(s, replace);
                    FlatRedBall.Gui.FileWindow.SetLastDirectory("scn", FileManager.GetDirectory(s));
                    FlatRedBall.Gui.FileWindow.SetLastDirectory("bmp", FileManager.GetDirectory(s));
                    FlatRedBall.Gui.FileWindow.SetLastDirectory("srgx", FileManager.GetDirectory(s));
                    replace = false;
                }
                else if (FileManager.GetExtension(s) == "scnx")
                {
                    GuiData.MenuStrip.PerformLoadScn(s, replace);
                    FlatRedBall.Gui.FileWindow.SetLastDirectory("scn", FileManager.GetDirectory(s));
                    FlatRedBall.Gui.FileWindow.SetLastDirectory("scnx", FileManager.GetDirectory(s));
                    FlatRedBall.Gui.FileWindow.SetLastDirectory("bmp", FileManager.GetDirectory(s));
                    FlatRedBall.Gui.FileWindow.SetLastDirectory("srgx", FileManager.GetDirectory(s));

                    replace = false;
                }
            }
        }