private void LoadSettings() { //IniFile ini = new IniFile(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + @"\Settings.ini"); IniFile ini = new IniFile("Settings.ini"); //Console.WriteLine("Ini read from {0}: {1}", ini.path, ini.IniReadValue("Video", "Test")); GameData.WINDOW_WIDTH = Convert.ToInt32(ini.ReadValue("Video", "Width")); GameData.WINDOW_HEIGHT = Convert.ToInt32(ini.ReadValue("Video", "Height")); GameData.FULLSCREEN = Convert.ToBoolean(ini.ReadValue("Video", "Fullscreen")); GameData.BORDERLESS = Convert.ToBoolean(ini.ReadValue("Video", "Borderless")); GameData.VSYNC = Convert.ToBoolean(ini.ReadValue("Video", "VSync")); GameData.VOLUME = Convert.ToSingle(ini.ReadValue("Audio", "Volume")); GameData.MUTED = Convert.ToBoolean(ini.ReadValue("Audio", "Muted")); }