Fixed ".bmp.bmp" bug in saving dotcode bitmaps

That was easy. Also added *.bmp filter when saving dotcodes.
This commit is contained in:
AkagitsuneYuki
2024-02-05 22:35:40 -05:00
parent 55056ca839
commit 8022227230
+2 -1
View File
@@ -70,6 +70,7 @@ namespace AC_e_Reader_Card_Creator
SaveFileDialog saveRAWFile = new SaveFileDialog
{
Filter = "Bitmap Images (*.bmp)|*.bmp",
Title = "Save Dot Code (.bmp)",
FileName = "dotcode"
};
@@ -79,7 +80,7 @@ namespace AC_e_Reader_Card_Creator
ProcessStartInfo raw_to_bmp = new ProcessStartInfo
{
FileName = Common.RAW2BMP,
Arguments = Common.RAW2BMP_ARGS(saveRAWFile.FileName, DPI),
Arguments = Common.RAW2BMP_ARGS(saveRAWFile.FileName.Replace(".bmp", ""), DPI),
UseShellExecute = false,
RedirectStandardOutput = true,
CreateNoWindow = true