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"];
|
IConfig config = configSource.Configs["Sounds"];
|
||||||
|
|
||||||
if (config == null)
|
if (config == null)
|
||||||
return;
|
{
|
||||||
|
Enabled = true;
|
||||||
Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared";
|
MaxDistance = 100.0f;
|
||||||
MaxDistance = config.GetFloat("MaxDistance", 100.0f);
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared";
|
||||||
|
MaxDistance = config.GetFloat("MaxDistance", 100.0f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddRegion(Scene scene) { }
|
public void AddRegion(Scene scene) { }
|
||||||
|
|
|
@ -1687,5 +1687,13 @@ Enabled = False
|
||||||
;; default is module is disabled at the top level
|
;; default is module is disabled at the top level
|
||||||
AutoBackupModuleEnabled = false
|
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]
|
[Modules]
|
||||||
Include-modules = "addon-modules/*/config/*.ini"
|
Include-modules = "addon-modules/*/config/*.ini"
|
||||||
|
|
Loading…
Reference in New Issue