Add config key to dump shaders in local directory (#265)

* Add config key to dump shaders in local directory

* Address feedback
This commit is contained in:
ReinUsesLisp 2018-07-15 19:37:27 -03:00 committed by gdkchan
parent 063fae50fe
commit 3e13b40b35
5 changed files with 110 additions and 0 deletions

View file

@ -118,6 +118,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
if (IsDualVp)
{
ShaderDumper.Dump(Memory, Position + 0x50, Type, "a");
ShaderDumper.Dump(Memory, PositionB + 0x50, Type, "b");
Program = Decompiler.Decompile(
Memory,
Position + 0x50,
@ -126,6 +129,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
}
else
{
ShaderDumper.Dump(Memory, Position + 0x50, Type);
Program = Decompiler.Decompile(Memory, Position + 0x50, Type);
}