mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-29 06:20:27 +00:00
Added .jpeg to be accepted
This commit is contained in:
parent
7799604b39
commit
5d4bbe5225
2 changed files with 5 additions and 4 deletions
|
@ -2698,13 +2698,14 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
png2tga.StartInfo.UseShellExecute = false;
|
||||
png2tga.StartInfo.CreateNoWindow = true;
|
||||
if(new FileInfo(inputPath).Extension.Contains("png"))
|
||||
var extension = new FileInfo(inputPath).Extension;
|
||||
if (extension.Contains("png"))
|
||||
{
|
||||
png2tga.StartInfo.FileName = Path.Combine(toolsPath, "png2tga.exe");
|
||||
}else if (new FileInfo(inputPath).Extension.Contains("jpg"))
|
||||
}else if (extension.Contains("jpg") || extension.Contains("jpeg"))
|
||||
{
|
||||
png2tga.StartInfo.FileName = Path.Combine(toolsPath, "jpg2tga.exe");
|
||||
}else if (new FileInfo(inputPath).Extension.Contains("bmp"))
|
||||
}else if (extension.Contains("bmp"))
|
||||
{
|
||||
png2tga.StartInfo.FileName = Path.Combine(toolsPath, "bmp2tga.exe");
|
||||
}
|
||||
|
|
|
@ -1594,7 +1594,7 @@ namespace UWUVCI_AIO_WPF
|
|||
else if(!INI)
|
||||
{
|
||||
|
||||
dialog.Filter = "Images (*.png; *.jpg; *.bmp; *.tga) | *.png;*.jpg;*.bmp;*.tga";
|
||||
dialog.Filter = "Images (*.png; *.jpg; *.bmp; *.tga; *jpeg) | *.png;*.jpg;*.bmp;*.tga;*jpeg";
|
||||
}
|
||||
else if(INI)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue