refactoring to use assembly:classname style of configuration
parent
a16ddbee41
commit
a09cba6da3
|
@ -25,6 +25,7 @@
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
|
@ -64,7 +65,9 @@ namespace OpenSim.Region.CoreModules.World.Sound
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Enabled = config.GetString("Module", "SoundModule") == "SoundModule";
|
Enabled = config.GetString("Module", "OpenSim.Region.CoreModules.dll:SoundModule") ==
|
||||||
|
Path.GetFileName(Assembly.GetExecutingAssembly().Location)
|
||||||
|
+ ":" + MethodBase.GetCurrentMethod().DeclaringType.Name;
|
||||||
MaxDistance = config.GetFloat("MaxDistance", 100.0f);
|
MaxDistance = config.GetFloat("MaxDistance", 100.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1688,8 +1688,8 @@ Enabled = False
|
||||||
AutoBackupModuleEnabled = false
|
AutoBackupModuleEnabled = false
|
||||||
|
|
||||||
[Sounds]
|
[Sounds]
|
||||||
;; {Module} {} {Implementation of ISoundModule to use.} {SoundModule}
|
;; {Module} {} {Implementation of ISoundModule to use.} {OpenSim.Region.CoreModules.dll:SoundModule}
|
||||||
Module = SoundModule
|
Module = OpenSim.Region.CoreModules.dll:SoundModule
|
||||||
|
|
||||||
;; {MaxDistance} {} {Cut-off distance at which sounds will not be sent to users} {100.0}
|
;; {MaxDistance} {} {Cut-off distance at which sounds will not be sent to users} {100.0}
|
||||||
MaxDistance = 100.0
|
MaxDistance = 100.0
|
||||||
|
|
Loading…
Reference in New Issue