mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Add deprecation helper
This commit is contained in:
parent
7eb24d7bd6
commit
11bab46b8b
1 changed files with 6 additions and 0 deletions
|
@ -249,6 +249,12 @@ public static class PluginsCore {
|
|||
await plugin.OnLoaded().ConfigureAwait(false);
|
||||
|
||||
ASF.ArchiLogger.LogGenericInfo(string.Format(CultureInfo.CurrentCulture, Strings.PluginLoaded, plugin.Name));
|
||||
|
||||
#pragma warning disable CS0618 // TODO: Pending removal
|
||||
if (plugin is IBotTradeOffer) {
|
||||
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.WarningDeprecated, $"{nameof(IBotTradeOffer)} ({plugin.Name})", nameof(IBotTradeOffer2)));
|
||||
}
|
||||
#pragma warning restore CS0618 // TODO: Pending removal
|
||||
} catch (Exception e) {
|
||||
ASF.ArchiLogger.LogGenericException(e);
|
||||
invalidPlugins.Add(plugin);
|
||||
|
|
Loading…
Reference in a new issue