tweaking configuration logic so that the INonSharedRegionModule will load by default

integration
SignpostMarv 2012-10-16 15:15:03 +01:00 committed by Justin Clark-Casey (justincc)
parent 2bb0419251
commit e0b5a3cd90
2 changed files with 17 additions and 4 deletions

View File

@ -58,10 +58,15 @@ namespace OpenSim.Region.CoreModules.World.Sound
IConfig config = configSource.Configs["Sounds"];
if (config == null)
return;
Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared";
MaxDistance = config.GetFloat("MaxDistance", 100.0f);
{
Enabled = true;
MaxDistance = 100.0f;
}
else
{
Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared";
MaxDistance = config.GetFloat("MaxDistance", 100.0f);
}
}
public void AddRegion(Scene scene) { }

View File

@ -1687,5 +1687,13 @@ Enabled = False
;; default is module is disabled at the top level
AutoBackupModuleEnabled = false
[Sounds]
;; {Module} {} {Implementation of ISoundModule to use.} {SoundModuleNonShared}
;; Currently only INonSharedRegionModule module is implemented.
Module = SoundModuleNonShared
;; {MaxDistance} {} {Cut-off distance at which sounds will not be sent to users} {100.0}
MaxDistance = 100.0
[Modules]
Include-modules = "addon-modules/*/config/*.ini"