From e089cee4b9a43f90cae8d4eef7f7de229c7384bf Mon Sep 17 00:00:00 2001 From: "feal87@gmail.com" Date: Wed, 29 Dec 2010 09:36:58 +0000 Subject: [PATCH] GSDumpGui: Little things i forgot. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4168 96395faa-99c1-11dd-bbfe-3dabce05a288 --- tools/GSDumpGUI/Core/Program.cs | 2 +- tools/GSDumpGUI/Library/GSDXWrapper.cs | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/GSDumpGUI/Core/Program.cs b/tools/GSDumpGUI/Core/Program.cs index 051c10f6b..b69d45a89 100644 --- a/tools/GSDumpGUI/Core/Program.cs +++ b/tools/GSDumpGUI/Core/Program.cs @@ -265,7 +265,7 @@ namespace GSDumpGUI frmMain.treeGifPacketContent.Nodes[0].Nodes.Add(nodePrim); - frmMain.treeGifPacketContent.Nodes[0].Nodes.Add("nreg = " + tag.nreg.ToString()); + frmMain.treeGifPacketContent.Nodes[0].Nodes.Add("nreg = " + (tag.nreg == 0 ? (16).ToString() : tag.nreg.ToString())); TreeNode nodeReg = new TreeNode("reg"); for (int j = 0; j < tag.regs.Count; j++) diff --git a/tools/GSDumpGUI/Library/GSDXWrapper.cs b/tools/GSDumpGUI/Library/GSDXWrapper.cs index 65f7c9a08..5820165dc 100644 --- a/tools/GSDumpGUI/Library/GSDXWrapper.cs +++ b/tools/GSDumpGUI/Library/GSDXWrapper.cs @@ -397,7 +397,17 @@ namespace GSDumpGUI internal object GetGifPacketInfo(GSDump dump, int i) { if (dump.Data[i].id == GSType.Transfer) - return GIFTag.ExtractGifTag(dump.Data[i].data, ((GSTransfer)dump.Data[i]).Path); + { + try + { + GIFTag val = GIFTag.ExtractGifTag(dump.Data[i].data, ((GSTransfer)dump.Data[i]).Path); + return val; + } + catch (Exception) + { + return new GIFTag(); + } + } else { switch (dump.Data[i].id)