Skip to content

Commit 9ff2551

Browse files
committed
Remove old compiler name handling
1 parent 235a156 commit 9ff2551

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

src/CSharpExtension.cs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,8 @@ public class CSharpExtension : Extension
4949
/// <param name="manager"></param>
5050
public CSharpExtension(ExtensionManager manager) : base(manager)
5151
{
52-
string oldCompiler = Path.Combine(Interface.Oxide.RootDirectory, "CSharpCompiler");
53-
string newCompiler = Path.Combine(Interface.Oxide.RootDirectory, "Compiler");
54-
5552
if (Environment.OSVersion.Platform == PlatformID.Unix)
5653
{
57-
Cleanup.Add(Path.Combine(Interface.Oxide.ExtensionDirectory, "Mono.Posix.dll.config"));
58-
59-
oldCompiler += ".x86";
60-
if (File.Exists(oldCompiler))
61-
{
62-
newCompiler += ".x86";
63-
if (!File.Exists(newCompiler))
64-
{
65-
File.Move(oldCompiler, newCompiler);
66-
}
67-
Cleanup.Add(oldCompiler);
68-
}
69-
70-
oldCompiler += "_x64";
71-
if (File.Exists(oldCompiler))
72-
{
73-
newCompiler += "_x64";
74-
if (!File.Exists(newCompiler))
75-
{
76-
File.Move(oldCompiler, newCompiler);
77-
}
78-
Cleanup.Add(oldCompiler);
79-
}
80-
8154
string extDir = Interface.Oxide.ExtensionDirectory;
8255
string configPath = Path.Combine(extDir, "Oxide.References.dll.config");
8356
if (!File.Exists(configPath) || (new[] { "target=\"x64", "target=\"./x64" }.Any(File.ReadAllText(configPath).Contains)))
@@ -86,19 +59,6 @@ public CSharpExtension(ExtensionManager manager) : base(manager)
8659
$"<dllmap dll=\"MonoPosixHelper\" target=\"{extDir}/x64/libMonoPosixHelper.so\" os=\"!windows,osx\" wordsize=\"64\" />\n</configuration>");
8760
}
8861
}
89-
else
90-
{
91-
oldCompiler += ".exe";
92-
if (File.Exists(oldCompiler))
93-
{
94-
newCompiler += ".exe";
95-
if (!File.Exists(newCompiler))
96-
{
97-
File.Move(oldCompiler, newCompiler);
98-
}
99-
Cleanup.Add(oldCompiler);
100-
}
101-
}
10262

10363
PluginCompiler.CheckCompilerBinary();
10464
}

0 commit comments

Comments
 (0)