From 1f976e512090a02039c3b299383e20b853874163 Mon Sep 17 00:00:00 2001 From: Michael Dickson Date: Thu, 17 Oct 2024 00:18:17 -0400 Subject: [PATCH] Rename Develop to Tranquillity.sln. Repo has halso been renamed as well. Remove hack changes for System.Drawing. We're going to replace that on a branch. --- .../Application.cs | 26 +------------------ .../OpenSim.Server.RegionServer.csproj | 14 ---------- .../OpenSim.Server.RobustServer.csproj | 16 +----------- .../OpenSim.Server.RobustServer/ServerMain.cs | 23 ---------------- OpenSim.sln => Tranquillity.sln | 0 5 files changed, 2 insertions(+), 77 deletions(-) rename OpenSim.sln => Tranquillity.sln (100%) diff --git a/Source/OpenSim.Server.RegionServer/Application.cs b/Source/OpenSim.Server.RegionServer/Application.cs index 16ac0421e1..98a6d2a765 100644 --- a/Source/OpenSim.Server.RegionServer/Application.cs +++ b/Source/OpenSim.Server.RegionServer/Application.cs @@ -73,8 +73,6 @@ namespace OpenSim // First line, hook the appdomain to the crash reporter AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); - System.AppContext.SetSwitch("System.Drawing.EnableUnixSupport", true); - Culture.SetCurrentCulture(); Culture.SetDefaultCurrentCulture(); @@ -103,30 +101,8 @@ namespace OpenSim m_log.Info("[OPENSIM MAIN]: configured log4net using default OpenSim.Server.RegionServer.dll.config"); } - // 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); - m_log.InfoFormat( - "[OPENSIM MAIN]: System Locale is {0}", System.Threading.Thread.CurrentThread.CurrentCulture); if(!Util.IsWindows()) { string monoThreadsPerCpu = System.Environment.GetEnvironmentVariable("MONO_THREADS_PER_CPU"); diff --git a/Source/OpenSim.Server.RegionServer/OpenSim.Server.RegionServer.csproj b/Source/OpenSim.Server.RegionServer/OpenSim.Server.RegionServer.csproj index c06bedab20..b160adba89 100644 --- a/Source/OpenSim.Server.RegionServer/OpenSim.Server.RegionServer.csproj +++ b/Source/OpenSim.Server.RegionServer/OpenSim.Server.RegionServer.csproj @@ -45,20 +45,6 @@ - - - - %(FileName)%(Extension) - PreserveNewest - - - - - %(FileName)%(Extension) - PreserveNewest - - - %(RecursiveDir)%(FileName)%(Extension) diff --git a/Source/OpenSim.Server.RobustServer/OpenSim.Server.RobustServer.csproj b/Source/OpenSim.Server.RobustServer/OpenSim.Server.RobustServer.csproj index 63cf41c1c5..4c169d5f3e 100644 --- a/Source/OpenSim.Server.RobustServer/OpenSim.Server.RobustServer.csproj +++ b/Source/OpenSim.Server.RobustServer/OpenSim.Server.RobustServer.csproj @@ -37,20 +37,6 @@ - - - - %(FileName)%(Extension) - PreserveNewest - - - - - %(FileName)%(Extension) - PreserveNewest - - - %(RecursiveDir)%(FileName)%(Extension) @@ -61,7 +47,7 @@ - + diff --git a/Source/OpenSim.Server.RobustServer/ServerMain.cs b/Source/OpenSim.Server.RobustServer/ServerMain.cs index 1e5874ecec..65aab137ce 100644 --- a/Source/OpenSim.Server.RobustServer/ServerMain.cs +++ b/Source/OpenSim.Server.RobustServer/ServerMain.cs @@ -142,29 +142,6 @@ namespace OpenSim.Server connList = string.Join(",", servicesList.ToArray()); } - // 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'}); foreach (string c in conns) diff --git a/OpenSim.sln b/Tranquillity.sln similarity index 100% rename from OpenSim.sln rename to Tranquillity.sln