Part 2 of 3: Split Settings into logical units.

Syntax for command line overrides is now <section>.<setting>=<value>
eg `General.InitialMods=cnc'
This commit is contained in:
Paul Chote
2010-08-23 23:20:27 +12:00
parent 46d0ce89e9
commit 1143f496db
17 changed files with 174 additions and 128 deletions

View File

@@ -141,20 +141,20 @@ namespace OpenRA
public static float SoundVolume
{
get { return Game.Settings.SoundVolume; }
get { return Game.Settings.Sound.SoundVolume; }
set
{
Game.Settings.SoundVolume = value;
Game.Settings.Sound.SoundVolume = value;
soundEngine.SetSoundVolume(value, music, video);
}
}
public static float MusicVolume
{
get { return Game.Settings.MusicVolume; }
get { return Game.Settings.Sound.MusicVolume; }
set
{
Game.Settings.MusicVolume = value;
Game.Settings.Sound.MusicVolume = value;
if (music != null)
music.Volume = value;
}
@@ -162,10 +162,10 @@ namespace OpenRA
public static float VideoVolume
{
get { return Game.Settings.VideoVolume; }
get { return Game.Settings.Sound.VideoVolume; }
set
{
Game.Settings.VideoVolume = value;
Game.Settings.Sound.VideoVolume = value;
if (video != null)
video.Volume = value;
}