1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-30 11:36:00 +00:00

Fix ShaderTools

This commit is contained in:
gdkchan 2020-01-01 20:26:13 -03:00 committed by Thog
parent 92703af555
commit 23d8516763

View file

@ -18,9 +18,9 @@ namespace Ryujinx.ShaderTools
flags |= TranslationFlags.Compute; 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); Console.WriteLine(code);
} }