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..ceaf8b83 100644 --- a/libpcsxcore/psxcounters.h +++ b/libpcsxcore/psxcounters.h @@ -29,7 +29,15 @@ extern "C" { #include "psxmem.h" #include "plugins.h" -extern u32 psxNextCounter, psxNextsCounter; +extern unsigned int 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 +46,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 }