X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fpsxcounters.c;h=db0b1ec89313ef481205e3f4ade4221e54622d89;hb=70575e81838e2c8d842dd28c3fc7fbb91b395061;hp=bebec87601d86f606f025e649b6e490c56831f00;hpb=4b7da20a2de9b8dcd266e2d69b13259cb364d451;p=pcsx_rearmed.git diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index bebec876..db0b1ec8 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -70,7 +70,9 @@ static const s32 VerboseLevel = VERBOSE_LEVEL; /******************************************************************************/ +#ifndef NEW_DYNAREC Rcnt rcnts[ CounterQuantity ]; +#endif u32 hSyncCount = 0; u32 frame_counter = 0; @@ -496,7 +498,7 @@ s32 psxRcntFreeze( void *f, s32 Mode ) u32 count; s32 i; - gzfreeze( &rcnts, sizeof(rcnts) ); + gzfreeze( &rcnts, sizeof(Rcnt) * CounterQuantity ); gzfreeze( &hSyncCount, sizeof(hSyncCount) ); gzfreeze( &spuSyncCount, sizeof(spuSyncCount) ); gzfreeze( &psxNextCounter, sizeof(psxNextCounter) );