GSDumpGui: Little things i forgot.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4168 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
feal87@gmail.com 2010-12-29 09:36:58 +00:00
parent 5df7a65727
commit e089cee4b9
2 changed files with 12 additions and 2 deletions

View File

@ -265,7 +265,7 @@ namespace GSDumpGUI
frmMain.treeGifPacketContent.Nodes[0].Nodes.Add(nodePrim); 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"); TreeNode nodeReg = new TreeNode("reg");
for (int j = 0; j < tag.regs.Count; j++) for (int j = 0; j < tag.regs.Count; j++)

View File

@ -397,7 +397,17 @@ namespace GSDumpGUI
internal object GetGifPacketInfo(GSDump dump, int i) internal object GetGifPacketInfo(GSDump dump, int i)
{ {
if (dump.Data[i].id == GSType.Transfer) 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 else
{ {
switch (dump.Data[i].id) switch (dump.Data[i].id)