X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fpsxcounters.h;h=4b7b6b41cbd4357fbbd56e184cf9a1cbb150f00f;hb=HEAD;hp=bccb2e4d2833ecab4fb6ee781e5274c38d8532ec;hpb=ef79bbde537d6b9c745a7d86cb9df1d04c35590d;p=pcsx_rearmed.git diff --git a/libpcsxcore/psxcounters.h b/libpcsxcore/psxcounters.h index bccb2e4d..77025a61 100644 --- a/libpcsxcore/psxcounters.h +++ b/libpcsxcore/psxcounters.h @@ -31,6 +31,16 @@ extern "C" { extern u32 psxNextCounter, psxNextsCounter; +extern u32 hSyncCount, frame_counter; + +typedef struct Rcnt +{ + u16 mode, target; + u32 rate, irq, counterState, irqState; + u32 cycle, cycleStart; +} Rcnt; +extern Rcnt rcnts[]; + void psxRcntInit(); void psxRcntUpdate(); @@ -38,11 +48,15 @@ void psxRcntWcount(u32 index, u32 value); void psxRcntWmode(u32 index, u32 value); void psxRcntWtarget(u32 index, u32 value); -u32 psxRcntRcount(u32 index); +u32 psxRcntRcount0(); +u32 psxRcntRcount1(); +u32 psxRcntRcount2(); u32 psxRcntRmode(u32 index); u32 psxRcntRtarget(u32 index); -s32 psxRcntFreeze(gzFile f, s32 Mode); +s32 psxRcntFreeze(void *f, s32 Mode); + +double psxGetFps(); #ifdef __cplusplus }