diff --git a/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs b/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs index 8589e936..6a471cc5 100644 --- a/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs +++ b/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs @@ -136,8 +136,7 @@ namespace Toolbox.Library.IO var text = WriteJson(obj); var fbsPath = Path.Combine(FlatPath, fbsName); - if (!File.Exists(fbsPath)) - File.WriteAllBytes(fbsPath, GetSchema(fbs)); + File.WriteAllBytes(fbsPath, GetSchema(fbs)); var jsonPath = Path.Combine(FlatPath, jsonName); File.WriteAllText(jsonPath, text); diff --git a/Switch_Toolbox_Library/Imaging/BitmapExtension.cs b/Switch_Toolbox_Library/Imaging/BitmapExtension.cs index 46badcf2..eb9e8f4f 100644 --- a/Switch_Toolbox_Library/Imaging/BitmapExtension.cs +++ b/Switch_Toolbox_Library/Imaging/BitmapExtension.cs @@ -211,9 +211,7 @@ namespace Toolbox.Library Bitmap b = orig; if (orig.PixelFormat != PixelFormat.Format32bppArgb) { - Console.WriteLine($"orig.PixelFormat {orig.PixelFormat}"); - b = new Bitmap(orig.Width, orig.Height, - System.Drawing.Imaging.PixelFormat.Format32bppArgb); + b = new Bitmap(orig.Width, orig.Height, PixelFormat.Format32bppArgb); using (Graphics gr = Graphics.FromImage(b)) { @@ -222,7 +220,7 @@ namespace Toolbox.Library } BitmapData bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), - ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb); + ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb); int stride = bmData.Stride; System.IntPtr Scan0 = bmData.Scan0;