From 23d85167635fe5e3185098aab05d1c33b919e5ac Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 1 Jan 2020 20:26:13 -0300 Subject: [PATCH] Fix ShaderTools --- Ryujinx.ShaderTools/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.ShaderTools/Program.cs b/Ryujinx.ShaderTools/Program.cs index 445f6b46..25ac8d2a 100644 --- a/Ryujinx.ShaderTools/Program.cs +++ b/Ryujinx.ShaderTools/Program.cs @@ -18,9 +18,9 @@ namespace Ryujinx.ShaderTools flags |= TranslationFlags.Compute; } - byte[] data = File.ReadAllBytes(args[args.Length - 1]); + byte[] data = File.ReadAllBytes(args[^1]); - string code = Translator.Translate(data, null, flags).Code; + string code = Translator.Translate(data, new TranslatorCallbacks(null, null), flags).Code; Console.WriteLine(code); }