WriteValue() 공개 메소드

Write Data to the INI File
public WriteValue ( string Section, string Key, object Value ) : void
Section string
Key string
Value object
리턴 void
예제 #1
0
 private void SaveSettings()
 {
     IniFile ini = new IniFile("Settings.ini");
     ini.WriteValue("Video", "Width", GameData.WINDOW_WIDTH);
     ini.WriteValue("Video", "Height", GameData.WINDOW_HEIGHT);
     ini.WriteValue("Video", "Fullscreen", graphics.IsFullScreen);
     #if WINDOWS
     ini.WriteValue("Video", "Borderless", Window.IsBorderless);
     #endif
     ini.WriteValue("Video", "VSync", graphics.SynchronizeWithVerticalRetrace);
     ini.WriteValue("Audio", "Volume", MediaPlayer.Volume);
     ini.WriteValue("Audio", "Muted", MediaPlayer.IsMuted);
 }