From 2816188c83278e2ea74fae4ab1d2629d58f86963 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 18 Apr 2014 20:47:53 +0200 Subject: [PATCH] zzogl: bad function declaration --- plugins/zzogl-pg/opengl/GSmain.cpp | 2 +- plugins/zzogl-pg/opengl/GifTransfer.cpp | 6 ++++++ plugins/zzogl-pg/opengl/GifTransfer.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/zzogl-pg/opengl/GSmain.cpp b/plugins/zzogl-pg/opengl/GSmain.cpp index 9e7c80bd33..e08766e041 100644 --- a/plugins/zzogl-pg/opengl/GSmain.cpp +++ b/plugins/zzogl-pg/opengl/GSmain.cpp @@ -767,7 +767,7 @@ EXPORT_C_(void) GSReplay(char* lpszCmdLine) switch(p->param) { //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 2: GSgifTransfer3((u32*)&p->buff[0], p->real_size); break; case 3: GSgifTransfer((u32*)&p->buff[0], p->real_size); break; diff --git a/plugins/zzogl-pg/opengl/GifTransfer.cpp b/plugins/zzogl-pg/opengl/GifTransfer.cpp index f56e6de4c2..4ab914606d 100644 --- a/plugins/zzogl-pg/opengl/GifTransfer.cpp +++ b/plugins/zzogl-pg/opengl/GifTransfer.cpp @@ -244,6 +244,12 @@ template 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) { FUNCLOG diff --git a/plugins/zzogl-pg/opengl/GifTransfer.h b/plugins/zzogl-pg/opengl/GifTransfer.h index 533733ed07..f178eb7438 100644 --- a/plugins/zzogl-pg/opengl/GifTransfer.h +++ b/plugins/zzogl-pg/opengl/GifTransfer.h @@ -126,7 +126,7 @@ typedef struct extern void _GSgifPacket(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_GIFRegHandlers[];