diff options
author | Tedd Hansen | 2007-08-18 21:10:40 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-18 21:10:40 +0000 |
commit | f444fe4f87dd88b9c400c2b4efe9a050332c4f54 (patch) | |
tree | 06fff56f78ddc1b9ee1a6026bfe3a19e97b28005 /OpenSim/Region/ScriptEngine | |
parent | LSL Compiler now only referring required assemblies (DotNetEngine and Common)... (diff) | |
download | opensim-SC-f444fe4f87dd88b9c400c2b4efe9a050332c4f54.zip opensim-SC-f444fe4f87dd88b9c400c2b4efe9a050332c4f54.tar.gz opensim-SC-f444fe4f87dd88b9c400c2b4efe9a050332c4f54.tar.bz2 opensim-SC-f444fe4f87dd88b9c400c2b4efe9a050332c4f54.tar.xz |
Moved OpenSim.Region.ScriptEngine.Common.dll from bin\ScriptEngine\ to bin\ folder - hopefully solves compile problem on Linux.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index c29b9f4..435ee08 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | |||
@@ -59,10 +59,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
59 | //parameters.ReferencedAssemblies.Add(asm.Location); | 59 | //parameters.ReferencedAssemblies.Add(asm.Location); |
60 | } | 60 | } |
61 | 61 | ||
62 | string rootPath = Path.GetDirectoryName(this.GetType().Assembly.Location); | 62 | string rootPath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory); |
63 | string rootPathSE = Path.GetDirectoryName(this.GetType().Assembly.Location); | ||
63 | Console.WriteLine("Assembly location: " + rootPath); | 64 | Console.WriteLine("Assembly location: " + rootPath); |
64 | parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.Common.dll")); | 65 | parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.Common.dll")); |
65 | parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.DotNetEngine.dll")); | 66 | parameters.ReferencedAssemblies.Add(Path.Combine(rootPathSE, "OpenSim.Region.ScriptEngine.DotNetEngine.dll")); |
66 | 67 | ||
67 | //parameters.ReferencedAssemblies.Add("OpenSim.Region.Environment"); | 68 | //parameters.ReferencedAssemblies.Add("OpenSim.Region.Environment"); |
68 | parameters.GenerateExecutable = false; | 69 | parameters.GenerateExecutable = false; |
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index 2cbdfd3..8e0b277 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | |||
@@ -35,6 +35,7 @@ using System.Runtime.Remoting; | |||
35 | using OpenSim.Region.Environment.Scenes; | 35 | using OpenSim.Region.Environment.Scenes; |
36 | using OpenSim.Region.Environment.Scenes.Scripting; | 36 | using OpenSim.Region.Environment.Scenes.Scripting; |
37 | using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; | 37 | using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; |
38 | using OpenSim.Region.ScriptEngine.Common; | ||
38 | 39 | ||
39 | namespace OpenSim.Region.ScriptEngine.DotNetEngine | 40 | namespace OpenSim.Region.ScriptEngine.DotNetEngine |
40 | { | 41 | { |
@@ -227,14 +228,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
227 | //LSL_BaseClass mbrt = (LSL_BaseClass)FreeAppDomain.CreateInstanceAndUnwrap(FileName, "SecondLife.Script"); | 228 | //LSL_BaseClass mbrt = (LSL_BaseClass)FreeAppDomain.CreateInstanceAndUnwrap(FileName, "SecondLife.Script"); |
228 | Console.WriteLine("Base directory: " + AppDomain.CurrentDomain.BaseDirectory); | 229 | Console.WriteLine("Base directory: " + AppDomain.CurrentDomain.BaseDirectory); |
229 | 230 | ||
230 | LSL_BaseClass mbrt = (LSL_BaseClass)FreeAppDomain.CreateInstanceFromAndUnwrap(FileName, "SecondLife.Script"); | 231 | //LSL_BaseClass mbrt = (LSL_BaseClass)FreeAppDomain.CreateInstanceFromAndUnwrap(FileName, "SecondLife.Script"); |
232 | LSL_BuiltIn_Commands_Interface mbrt = (LSL_BuiltIn_Commands_Interface)FreeAppDomain.CreateInstanceFromAndUnwrap(FileName, "SecondLife.Script"); | ||
231 | Type mytype = mbrt.GetType(); | 233 | Type mytype = mbrt.GetType(); |
232 | 234 | ||
233 | Console.WriteLine("is proxy={0}", RemotingServices.IsTransparentProxy(mbrt)); | 235 | Console.WriteLine("is proxy={0}", RemotingServices.IsTransparentProxy(mbrt)); |
234 | 236 | ||
235 | 237 | ||
236 | //mbrt.Start(); | 238 | //mbrt.Start(); |
237 | return mbrt; | 239 | return (LSL_BaseClass)mbrt; |
238 | 240 | ||
239 | 241 | ||
240 | 242 | ||