1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add removal of obsolete plugins

This commit is contained in:
RaidMax
2021-03-22 11:46:32 -05:00
parent 434392a7e4
commit 7aa925af33
2 changed files with 16 additions and 2 deletions

View File

@ -85,5 +85,20 @@ namespace IW4MAdmin.Application.Migration
config.ManualLogPath = null;
}
}
public static void RemoveObsoletePlugins20210322()
{
var files = new[] {"StatsWeb.dll", "StatsWeb.Views.dll"};
foreach (var file in files)
{
var path = Path.Join(Utilities.OperatingDirectory, "Plugins", file);
if (File.Exists(path))
{
File.Delete(path);
}
}
}
}
}