Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Highquality_Click(object sender, EventArgs e)// High Quality
- {
- try
- {
- var MyIni = new IniFile(Path() + @"\ini\GameSetup.ini");
- if (MyIni.SectionExist("ScreenMode") && MyIni.SectionExist("GameMode"))
- {
- MyIni.Write("ScreenModeRecord", "4", "ScreenMode");
- MyIni.Write("ScrWidth", "1280", "ScreenMode");
- MyIni.Write("ScrHeight", "1024", "ScreenMode");
- MyIni.Write("HighTimes", "2", "GameMode");
- MyIni.Write("GameModeRecord", "0", "GameMode");
- MyIni.Write("NormalTimes", "3", "GameMode");
- if (MyIni.KeyExists("LowTimes", "GameMode"))
- {
- // MyIni.Write("LowTimes", "1", "GameMode");
- MyIni.DeleteKey("LowTimes", "GameMode");
- }
- else
- {
- MyIni.DeleteKey("LowTimes", "GameMode");
- }
- // lblStatus.Text = "Playing Game in HighQulaity";
- highqulaity = true;
- if (highqulaity == true)
- {
- cmdPlay.Click += new EventHandler(cmdPlay_Click);
- }
- else
- {
- MessageBox.Show("Error Please Reinstall the game patch and try .");
- }
- }
- else
- {
- highqulaity = false;
- MessageBox.Show("Error Please Reinstall the game patch and try .");
- return;
- }
- }
- catch
- {
- highqulaity = false;
- MessageBox.Show("Error");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement