Merge branch 'master' of github.com:TShock/TShock

This commit is contained in:
high 2011-06-08 06:34:16 -04:00
commit d23db067e9

View file

@ -55,7 +55,19 @@ namespace Update
try
{
File.Delete("serverplugins/TShockAPI.dll");
DirectoryInfo di = new DirectoryInfo("serverplugins");
FileInfo[] fi = di.GetFiles();
for (int i = 0; i < fi.Length; i ++ )
{
if (fi[i].Name.ToLowerInvariant().Contains("tshockapi"))
{
fi[i].Delete();
}
}
if (System.IO.File.Exists("serverplugins/TShockAPI.dll"))
{
System.IO.File.Delete("serverplugins/TShockAPI.dll");
}
}
catch (FileNotFoundException)
{