diff --git a/SysBot.Pokemon.Discord/Helpers/ReusableActions.cs b/SysBot.Pokemon.Discord/Helpers/ReusableActions.cs index de32a9df..faed03d1 100644 --- a/SysBot.Pokemon.Discord/Helpers/ReusableActions.cs +++ b/SysBot.Pokemon.Discord/Helpers/ReusableActions.cs @@ -14,7 +14,7 @@ public static class ReusableActions { public static async Task SendPKMAsync(this IMessageChannel channel, PKM pkm, string msg = "") { - var tmp = Path.Combine(Path.GetTempPath(), Util.CleanFileName(pkm.FileName)); + var tmp = Path.Combine(Path.GetTempPath(), PathUtil.CleanFileName(pkm.FileName)); await File.WriteAllBytesAsync(tmp, pkm.DecryptedPartyData); await channel.SendFileAsync(tmp, msg).ConfigureAwait(false); File.Delete(tmp); @@ -22,7 +22,7 @@ public static async Task SendPKMAsync(this IMessageChannel channel, PKM pkm, str public static async Task SendPKMAsync(this IUser user, PKM pkm, string msg = "") { - var tmp = Path.Combine(Path.GetTempPath(), Util.CleanFileName(pkm.FileName)); + var tmp = Path.Combine(Path.GetTempPath(), PathUtil.CleanFileName(pkm.FileName)); await File.WriteAllBytesAsync(tmp, pkm.DecryptedPartyData); await user.SendFileAsync(tmp, msg).ConfigureAwait(false); File.Delete(tmp); diff --git a/SysBot.Pokemon/Actions/PokeRoutineExecutor.cs b/SysBot.Pokemon/Actions/PokeRoutineExecutor.cs index 3a82c579..e4f660bd 100644 --- a/SysBot.Pokemon/Actions/PokeRoutineExecutor.cs +++ b/SysBot.Pokemon/Actions/PokeRoutineExecutor.cs @@ -59,7 +59,7 @@ public static void DumpPokemon(string folder, string subfolder, T pk) return; var dir = Path.Combine(folder, subfolder); Directory.CreateDirectory(dir); - var fn = Path.Combine(dir, Util.CleanFileName(pk.FileName)); + var fn = Path.Combine(dir, PathUtil.CleanFileName(pk.FileName)); File.WriteAllBytes(fn, pk.DecryptedPartyData); LogUtil.LogInfo($"Saved file: {fn}", "Dump"); } diff --git a/SysBot.Pokemon/deps/PKHeX.Core.AutoMod.dll b/SysBot.Pokemon/deps/PKHeX.Core.AutoMod.dll index 218fa22a..d3327716 100644 Binary files a/SysBot.Pokemon/deps/PKHeX.Core.AutoMod.dll and b/SysBot.Pokemon/deps/PKHeX.Core.AutoMod.dll differ diff --git a/SysBot.Pokemon/deps/PKHeX.Core.dll b/SysBot.Pokemon/deps/PKHeX.Core.dll index 96b34190..97851a62 100644 Binary files a/SysBot.Pokemon/deps/PKHeX.Core.dll and b/SysBot.Pokemon/deps/PKHeX.Core.dll differ