mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-22 16:39:27 +01:00
Material editor 2099
This commit is contained in:
parent
f64fdd2b26
commit
b8d09ab660
15 changed files with 1221 additions and 651 deletions
|
|
@ -27,8 +27,16 @@ public partial class ModEditWindow
|
|||
public ShpkTab(FileDialogService fileDialog, byte[] bytes)
|
||||
{
|
||||
FileDialog = fileDialog;
|
||||
Shpk = new ShpkFile(bytes, true);
|
||||
Header = $"Shader Package for DirectX {(int)Shpk.DirectXVersion}";
|
||||
try
|
||||
{
|
||||
Shpk = new ShpkFile(bytes, true);
|
||||
}
|
||||
catch (NotImplementedException)
|
||||
{
|
||||
Shpk = new ShpkFile(bytes, false);
|
||||
}
|
||||
|
||||
Header = $"Shader Package for DirectX {(int)Shpk.DirectXVersion}";
|
||||
Extension = Shpk.DirectXVersion switch
|
||||
{
|
||||
ShpkFile.DxVersion.DirectX9 => ".cso",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue