zzogl: bad function declaration

This commit is contained in:
Gregory Hainaut 2014-04-18 20:47:53 +02:00
parent 4d78b6be31
commit 2816188c83
3 changed files with 8 additions and 2 deletions

View File

@ -767,7 +767,7 @@ EXPORT_C_(void) GSReplay(char* lpszCmdLine)
switch(p->param) switch(p->param)
{ {
//case 0: GSgifTransfer1((u32*)&p->buff[0], p->addr); break; //case 0: GSgifTransfer1((u32*)&p->buff[0], p->addr); break;
case 0: _GSgifTransfer<0>((u32*)&p->buff[0], p->real_size); break; case 0: GSgifTransfer0((u32*)&p->buff[0], p->real_size); break;
case 1: GSgifTransfer2((u32*)&p->buff[0], p->real_size); break; case 1: GSgifTransfer2((u32*)&p->buff[0], p->real_size); break;
case 2: GSgifTransfer3((u32*)&p->buff[0], p->real_size); break; case 2: GSgifTransfer3((u32*)&p->buff[0], p->real_size); break;
case 3: GSgifTransfer((u32*)&p->buff[0], p->real_size); break; case 3: GSgifTransfer((u32*)&p->buff[0], p->real_size); break;

View File

@ -244,6 +244,12 @@ template<int index> void _GSgifTransfer(const u32 *pMem, u32 size)
} }
} }
// Used for replay
void GSgifTransfer0(u32 *pMem, u32 addr)
{
_GSgifTransfer<0>(pMem, addr);
}
EXPORT_C_(void) GSgifTransfer1(u32 *pMem, u32 addr) EXPORT_C_(void) GSgifTransfer1(u32 *pMem, u32 addr)
{ {
FUNCLOG FUNCLOG

View File

@ -126,7 +126,7 @@ typedef struct
extern void _GSgifPacket(pathInfo *path, const u32 *pMem); extern void _GSgifPacket(pathInfo *path, const u32 *pMem);
extern void _GSgifRegList(pathInfo *path, const u32 *pMem); extern void _GSgifRegList(pathInfo *path, const u32 *pMem);
extern void _GSgifTransfer(pathInfo *path, const u32 *pMem, u32 size); extern void GSgifTransfer0(u32* pMem, u32 addr);
extern GIFRegHandler g_GIFPackedRegHandlers[]; extern GIFRegHandler g_GIFPackedRegHandlers[];
extern GIFRegHandler g_GIFRegHandlers[]; extern GIFRegHandler g_GIFRegHandlers[];