When logging PRIM commands, print the prim number

This commit is contained in:
Henrik Rydgard 2013-11-08 20:36:04 +01:00
parent 4df08e49e9
commit 4daebe9b0f

View File

@ -115,9 +115,9 @@ void GeDisassembleOp(u32 pc, u32 op, u32 prev, char *buffer) {
"RECTANGLES",
};
if (gstate.vertType & GE_VTYPE_IDX_MASK)
sprintf(buffer, "DrawPrim indexed type: %s count: %i vaddr= %08x, iaddr= %08x", type < 7 ? types[type] : "INVALID", count, gstate_c.vertexAddr, gstate_c.indexAddr);
sprintf(buffer, "DrawPrim indexed type %i: %s count: %i vaddr= %08x, iaddr= %08x", type, type < 7 ? types[type] : "INVALID", count, gstate_c.vertexAddr, gstate_c.indexAddr);
else
sprintf(buffer, "DrawPrim type: %s count: %i vaddr= %08x", type < 7 ? types[type] : "INVALID", count, gstate_c.vertexAddr);
sprintf(buffer, "DrawPrim type %i: %s count: %i vaddr= %08x", type, type < 7 ? types[type] : "INVALID", count, gstate_c.vertexAddr);
}
break;