public void setup(Dreamer passdreamer, ContentManager passContent)
        {
            dreamer = passdreamer;
            content = passContent;

            content.RootDirectory = "Content";   //Console.WriteLine("Linked Monogame content manager to content directory." + "\n");

            gDeviceMngr = new GraphicsDeviceManager(dreamer);

            checkAPISupport();

            if (firstRun = checkFirstRun())
            {
                createUserPath();
            }

            profileMngr = new ProfileMngr(); //Initalizes the profile manager.

            //Related to Options
            options = new StndOptions();              //Initalizes standard options.
            display = new Display(gDeviceMngr);       //Initalizes display  options.

            //Related to timing
            updateTiming();
        }
Exemplo n.º 2
0
        public void createProfile(string name)   //Using startup needs to be removed, needs to remember settings of last user.
        {
            string path = @"Users\" + name;      //Console.WriteLine("Creating profile folder." + "\n");

            if (!profileLib.ContainsKey(name))
            {
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }
                else
                {
                    throw new Exception("Profile directory already exists... But not in the profile registry.");
                }

                profileLib.Add(name, new Profile {
                    profileName = name, profilePath = path
                });
            }
            else
            {
                throw new Exception("Profile already exists.");
            }

            setProfile(name);

            StndOptions.createPaths();
            AR.display.saveDisplay();
        }