1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Update shader decompiler to work with latest Ryujinx

This commit is contained in:
KillzXGaming 2022-04-20 18:11:04 -04:00
parent 071fb61418
commit a390e6667b

View File

@ -21,16 +21,6 @@ namespace FirstPlugin
public static string DecompileShader(NswShaderType shaderType, byte[] Data, ulong Address = 0)
{
string TypeArg = "v";
switch (shaderType)
{
case NswShaderType.Vertex: TypeArg = "v"; break;
case NswShaderType.Fragment: TypeArg = "f"; break;
case NswShaderType.Geometry: TypeArg = "g"; break;
}
if (!Directory.Exists("temp"))
Directory.CreateDirectory("temp");
@ -49,7 +39,7 @@ namespace FirstPlugin
ProcessStartInfo start = new ProcessStartInfo();
start.FileName = "ShaderTools/Ryujinx.ShaderTools.exe";
start.WorkingDirectory = Runtime.ExecutableDir;
start.Arguments = $"{TypeArg} {Utils.AddQuotesIfRequired("temp/shader1.bin")}";
start.Arguments = $"{Utils.AddQuotesIfRequired("temp/shader1.bin")}";
start.UseShellExecute = false;
start.RedirectStandardOutput = true;
start.CreateNoWindow = true;