Ejemplo n.º 1
0
        public void Save()
        {
            EffectsVolume = AudioSystem.GetGroupVolume(AudioChannelGroup.Effects);
            MusicVolume   = AudioSystem.GetGroupVolume(AudioChannelGroup.Music);

            try {
                Serialization.WriteObjectToFile(GetDataFilePath(), this, Serialization.Format.Binary);
            }
            catch (System.Exception e) {
                The.Log.Warn("AppData saving failed: {0}", e.Message);
            }
        }