mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Update shader decompiler to work with latest Ryujinx
This commit is contained in:
parent
071fb61418
commit
a390e6667b
1 changed files with 1 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue