mirror of
https://github.com/OpenSim-NGC/OpenSim-Sasquatch.git
synced 2024-11-21 14:29:10 -07:00
Put back the crappy dll copying for now. There are other changes that require c# 12 which is a part of dotnet 8 and the use of System.Drawing.Common in dotnet 8 is entirely unsupported now. I may just have to live with this and get the System.Drawing porting work out of the way.
This commit is contained in:
parent
39da0872ea
commit
0281196fbd
4 changed files with 42 additions and 44 deletions
|
@ -103,28 +103,27 @@ namespace OpenSim
|
|||
m_log.Info("[OPENSIM MAIN]: configured log4net using default OpenSim.exe.config");
|
||||
}
|
||||
|
||||
// NOPE
|
||||
// // temporay set the platform dependent System.Drawing.Common.dll
|
||||
// string targetdll = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
|
||||
// "System.Drawing.Common.dll");
|
||||
// string src = targetdll + (Util.IsWindows() ? ".win" : ".linux");
|
||||
// try
|
||||
// {
|
||||
// if (!File.Exists(targetdll))
|
||||
// File.Copy(src, targetdll);
|
||||
// else
|
||||
// {
|
||||
// FileInfo targetInfo = new(targetdll);
|
||||
// FileInfo srcInfo = new(src);
|
||||
// if(targetInfo.Length != srcInfo.Length)
|
||||
// File.Copy(src, targetdll, true);
|
||||
// }
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// m_log.Error("Failed to copy System.Drawing.Common.dll for current platform" + e.Message);
|
||||
// throw;
|
||||
// }
|
||||
// temporay set the platform dependent System.Drawing.Common.dll
|
||||
string targetdll = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
|
||||
"System.Drawing.Common.dll");
|
||||
string src = targetdll + (Util.IsWindows() ? ".win" : ".linux");
|
||||
try
|
||||
{
|
||||
if (!File.Exists(targetdll))
|
||||
File.Copy(src, targetdll);
|
||||
else
|
||||
{
|
||||
FileInfo targetInfo = new(targetdll);
|
||||
FileInfo srcInfo = new(src);
|
||||
if(targetInfo.Length != srcInfo.Length)
|
||||
File.Copy(src, targetdll, true);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.Error("Failed to copy System.Drawing.Common.dll for current platform" + e.Message);
|
||||
throw;
|
||||
}
|
||||
|
||||
m_log.InfoFormat(
|
||||
"[OPENSIM MAIN]: System Locale is {0}", System.Threading.Thread.CurrentThread.CurrentCulture);
|
||||
|
|
|
@ -142,28 +142,27 @@ namespace OpenSim.Server
|
|||
connList = string.Join(",", servicesList.ToArray());
|
||||
}
|
||||
|
||||
// NOPE
|
||||
// // temporay set the platform dependent System.Drawing.Common.dll
|
||||
// string targetdll = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
|
||||
// "System.Drawing.Common.dll");
|
||||
// string src = targetdll + (Util.IsWindows() ? ".win" : ".linux");
|
||||
// try
|
||||
// {
|
||||
// if (!File.Exists(targetdll))
|
||||
// File.Copy(src, targetdll);
|
||||
// else
|
||||
// {
|
||||
// FileInfo targetInfo = new(targetdll);
|
||||
// FileInfo srcInfo = new(src);
|
||||
// if (targetInfo.Length != srcInfo.Length)
|
||||
// File.Copy(src, targetdll, true);
|
||||
// }
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// m_log.Error("Failed to copy System.Drawing.Common.dll for current platform" + e.Message);
|
||||
// throw;
|
||||
// }
|
||||
// temporay set the platform dependent System.Drawing.Common.dll
|
||||
string targetdll = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
|
||||
"System.Drawing.Common.dll");
|
||||
string src = targetdll + (Util.IsWindows() ? ".win" : ".linux");
|
||||
try
|
||||
{
|
||||
if (!File.Exists(targetdll))
|
||||
File.Copy(src, targetdll);
|
||||
else
|
||||
{
|
||||
FileInfo targetInfo = new(targetdll);
|
||||
FileInfo srcInfo = new(src);
|
||||
if (targetInfo.Length != srcInfo.Length)
|
||||
File.Copy(src, targetdll, true);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.Error("Failed to copy System.Drawing.Common.dll for current platform" + e.Message);
|
||||
throw;
|
||||
}
|
||||
|
||||
|
||||
string[] conns = connList.Split(new char[] {',', ' ', '\n', '\r', '\t'});
|
||||
|
|
BIN
bin/System.Drawing.Common.dll.linux
Normal file
BIN
bin/System.Drawing.Common.dll.linux
Normal file
Binary file not shown.
BIN
bin/System.Drawing.Common.dll.win
Normal file
BIN
bin/System.Drawing.Common.dll.win
Normal file
Binary file not shown.
Loading…
Reference in a new issue