コード例 #1
0
        //OPENING TASKS
        private void Form1_Load(object sender, EventArgs e)
        {
            //initialize variables
            filePath     = Environment.GetEnvironmentVariable("LocalAppData") + "\\FortniteGame\\Saved\\Config\\WindowsClient\\GameUserSettings.ini";
            ini          = new INIFile(filePath, false);
            instance     = this;
            formSwitcher = new ScreenModeSwitcher();

            //form lookout settings
            mainLabel.Parent   = fortPicBox;
            formHead.BackColor = Color.FromArgb(240, 57, 57, 57);
            formHead.Parent    = fortPicBox;

            //form fade-in
            Opacity = 0.0;
            programStartTimer.Start();
            programStartTimer.Enabled = true;

            //load up basic information
            log(1, logBox, "FORTNITE RESOLUTION CONFIGURATOR v1.0");

            //Check if the GameUserSettings.ini file doesn't exist.
            if (!System.IO.File.Exists(filePath))
            {
                gusBox.Text = "";
                log(1, logBox, "--------------------------------------------------------------------------------------------------");
                log(logBox, "GameUserSettings.ini file doesn't exist. Run Fortnite to generate a new one.");
                log(1, gusBox, "GameUserSettings.ini file doesn't exist. Run Fortnite to generate a new one.");
                return;
            }

            //print out updated statistics about GameUserSettings.ini file
            recalcGus();

            //Printing out validation message.
            if (valid == true)
            {
                log(1, logBox, "--------------------------------------------------------------------------------------------------");
                log(logBox, "GameUserSettings.ini file was successfully read. Click folder icon to check GameUserSettings.ini folder!");
                log(1, logBox, "--------------------------------------------------------------------------------------------------");
                log(logBox, "Location: " + filePath);
            }
        }
コード例 #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     FortResConfigWindow.getInstance().changeRes(FortResConfigWindow.getInstance().widthNum, FortResConfigWindow.getInstance().heightNum, 2);
     switchToMainWindow();
 }
コード例 #3
0
 private void switchToMainWindow()
 {
     Hide();
     FortResConfigWindow.getInstance().Show();
     FortResConfigWindow.getInstance().logBox.ScrollToCaret();
 }