Skip to content

Commit

Permalink
Rename Develop to Tranquillity.sln. Repo has halso been renamed as well.
Browse files Browse the repository at this point in the history
Remove hack changes for System.Drawing.  We're going to replace that on a branch.
  • Loading branch information
mdickson committed Oct 17, 2024
1 parent 580ffb5 commit 1f976e5
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 77 deletions.
26 changes: 1 addition & 25 deletions Source/OpenSim.Server.RegionServer/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ public static void Main(string[] args)
// 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();

Expand Down Expand Up @@ -103,30 +101,8 @@ public static void Main(string[] args)
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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,6 @@
<ProjectReference Include="..\OpenSim.Services.UserAccountService\OpenSim.Services.UserAccountService.csproj" />
</ItemGroup>

<!-- This is a hack. System.Drawing needs to be retired. -->
<ItemGroup>
<None Include="$(SolutionDir)\bin\System.Drawing.Common.dll.win">
<TargetPath>%(FileName)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="$(SolutionDir)\bin\System.Drawing.Common.dll.linux">
<TargetPath>%(FileName)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<None Include="Data\**\*">
<TargetPath>%(RecursiveDir)%(FileName)%(Extension)</TargetPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,6 @@
<ProjectReference Include="..\OpenSim.Services.LLLoginService\OpenSim.Services.LLLoginService.csproj" />
</ItemGroup>

<!-- This is a hack. System.Drawing needs to be retired. -->
<ItemGroup>
<None Include="$(SolutionDir)\bin\System.Drawing.Common.dll.win">
<TargetPath>%(FileName)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="$(SolutionDir)\bin\System.Drawing.Common.dll.linux">
<TargetPath>%(FileName)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<None Include="Data\**\*">
<TargetPath>%(RecursiveDir)%(FileName)%(Extension)</TargetPath>
Expand All @@ -61,7 +47,7 @@
<ItemGroup>
<PackageReference Include="log4net" Version="3.0.1" />
<PackageReference Include="Mono.Addins" Version="1.4.1" />
<PackageReference Include="Mono.Addins.Setup" Version="1.4.1" />
<PackageReference Include="Mono.Addins.Setup" Version="1.4.1" />
<PackageReference Include="Mono.Addins.CecilReflector" Version="1.4.1" />
</ItemGroup>
</Project>
23 changes: 0 additions & 23 deletions Source/OpenSim.Server.RobustServer/ServerMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,29 +142,6 @@ public static int Main(string[] args)
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)
Expand Down
File renamed without changes.

0 comments on commit 1f976e5

Please sign in to comment.