tweaking configuration logic so that the INonSharedRegionModule will load by default
parent
2bb0419251
commit
e0b5a3cd90
|
@ -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) { }
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue