diff options
Diffstat (limited to 'OpenSim/Grid/ScriptServer/ScriptServerMain.cs')
-rw-r--r-- | OpenSim/Grid/ScriptServer/ScriptServerMain.cs | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/OpenSim/Grid/ScriptServer/ScriptServerMain.cs b/OpenSim/Grid/ScriptServer/ScriptServerMain.cs index 8352859..37541c9 100644 --- a/OpenSim/Grid/ScriptServer/ScriptServerMain.cs +++ b/OpenSim/Grid/ScriptServer/ScriptServerMain.cs | |||
@@ -1,48 +1,48 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using System.IO; | 4 | using System.IO; |
5 | using OpenSim.Framework.Console; | 5 | using OpenSim.Framework.Console; |
6 | using OpenSim.Framework.Utilities; | 6 | using OpenSim.Framework.Utilities; |
7 | 7 | ||
8 | namespace OpenSim.Grid.ScriptServer | 8 | namespace OpenSim.Grid.ScriptServer |
9 | { | 9 | { |
10 | public class ScriptServerMain : conscmd_callback | 10 | public class ScriptServerMain : conscmd_callback |
11 | { | 11 | { |
12 | private readonly string m_logFilename = ("region-console.log"); | 12 | private readonly string m_logFilename = ("region-console.log"); |
13 | internal RegionCommManager RegionScriptDaemon; // Listen for incoming from region | 13 | internal RegionCommManager RegionScriptDaemon; // Listen for incoming from region |
14 | internal ScriptEngineManager ScriptEngines; // Loads scriptengines | 14 | internal ScriptEngineManager ScriptEngines; // Loads scriptengines |
15 | private LogBase m_log; | 15 | private LogBase m_log; |
16 | 16 | ||
17 | public ScriptServerMain() | 17 | public ScriptServerMain() |
18 | { | 18 | { |
19 | m_log = CreateLog(); | 19 | m_log = CreateLog(); |
20 | 20 | ||
21 | RegionScriptDaemon = new RegionCommManager(this, m_log); | 21 | RegionScriptDaemon = new RegionCommManager(this, m_log); |
22 | ScriptEngines = new ScriptEngineManager(this, m_log); | 22 | ScriptEngines = new ScriptEngineManager(this, m_log); |
23 | 23 | ||
24 | } | 24 | } |
25 | 25 | ||
26 | ~ScriptServerMain() | 26 | ~ScriptServerMain() |
27 | { | 27 | { |
28 | } | 28 | } |
29 | 29 | ||
30 | protected LogBase CreateLog() | 30 | protected LogBase CreateLog() |
31 | { | 31 | { |
32 | if (!Directory.Exists(Util.logDir())) | 32 | if (!Directory.Exists(Util.logDir())) |
33 | { | 33 | { |
34 | Directory.CreateDirectory(Util.logDir()); | 34 | Directory.CreateDirectory(Util.logDir()); |
35 | } | 35 | } |
36 | 36 | ||
37 | return new LogBase((Path.Combine(Util.logDir(), m_logFilename)), "Region", this, false); | 37 | return new LogBase((Path.Combine(Util.logDir(), m_logFilename)), "Region", this, false); |
38 | } | 38 | } |
39 | 39 | ||
40 | public void RunCmd(string command, string[] cmdparams) | 40 | public void RunCmd(string command, string[] cmdparams) |
41 | { | 41 | { |
42 | } | 42 | } |
43 | public void Show(string ShowWhat) | 43 | public void Show(string ShowWhat) |
44 | { | 44 | { |
45 | } | 45 | } |
46 | 46 | ||
47 | } | 47 | } |
48 | } | 48 | } |