mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-13 00:17:30 +00:00
Fix RGBA Snorm textures. Remove file extension from batch export folders.
This commit is contained in:
parent
89d5b621b2
commit
6931350fac
4 changed files with 6 additions and 3 deletions
|
@ -1314,6 +1314,7 @@ namespace FirstPlugin
|
|||
case TEX_FORMAT.B4G4R4A4_UNORM: return SurfaceFormat.R4_G4_B4_A4_UNORM;
|
||||
case TEX_FORMAT.R8G8B8A8_UNORM_SRGB: return SurfaceFormat.R8_G8_B8_A8_SRGB;
|
||||
case TEX_FORMAT.R8G8B8A8_UNORM: return SurfaceFormat.R8_G8_B8_A8_UNORM;
|
||||
case TEX_FORMAT.R8G8B8A8_SNORM: return SurfaceFormat.R8_G8_B8_A8_SNORM;
|
||||
case TEX_FORMAT.R8_UNORM: return SurfaceFormat.R8_UNORM;
|
||||
case TEX_FORMAT.R8G8_UNORM: return SurfaceFormat.R8_G8_UNORM;
|
||||
case TEX_FORMAT.R8G8_SNORM: return SurfaceFormat.R8_G8_SNORM;
|
||||
|
@ -1390,6 +1391,7 @@ namespace FirstPlugin
|
|||
case SurfaceFormat.R5_G6_B5_UNORM: return TEX_FORMAT.B5G6R5_UNORM;
|
||||
case SurfaceFormat.R8_G8_B8_A8_SRGB: return TEX_FORMAT.R8G8B8A8_UNORM_SRGB;
|
||||
case SurfaceFormat.R8_G8_B8_A8_UNORM: return TEX_FORMAT.R8G8B8A8_UNORM;
|
||||
case SurfaceFormat.R8_G8_B8_A8_SNORM: return TEX_FORMAT.R8G8B8A8_SNORM;
|
||||
case SurfaceFormat.R8_UNORM: return TEX_FORMAT.R8_UNORM;
|
||||
case SurfaceFormat.R8_G8_UNORM: return TEX_FORMAT.R8G8_UNORM;
|
||||
case SurfaceFormat.R8_G8_SNORM: return TEX_FORMAT.R8G8_SNORM;
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1378,9 +1378,9 @@ namespace Toolbox
|
|||
var fileFormat = STFileLoader.OpenFileFormat(file);
|
||||
SearchFileFormat(form.BatchSettings, fileFormat, extension, outputFolder);
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
failedFiles.Add(file);
|
||||
failedFiles.Add($"{file} \n Error:\n {ex} \n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1411,7 +1411,8 @@ namespace Toolbox
|
|||
{
|
||||
if (settings.SeperateTextureContainers)
|
||||
{
|
||||
outputFolder = Path.Combine(outputFolder, fileFormat.FileName);
|
||||
string name = fileFormat.FileName.Split('.').FirstOrDefault();
|
||||
outputFolder = Path.Combine(outputFolder, name);
|
||||
if (!Directory.Exists(outputFolder))
|
||||
Directory.CreateDirectory(outputFolder);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue