diff options
Diffstat (limited to 'libpcsxcore')
| -rwxr-xr-x | libpcsxcore/psxcommon.c | 11 | ||||
| -rwxr-xr-x | libpcsxcore/psxcommon.h | 5 |
2 files changed, 14 insertions, 2 deletions
diff --git a/libpcsxcore/psxcommon.c b/libpcsxcore/psxcommon.c index b7f547f0..753222d2 100755 --- a/libpcsxcore/psxcommon.c +++ b/libpcsxcore/psxcommon.c @@ -29,7 +29,10 @@ boolean NetOpened = FALSE; int Log = 0; FILE *emuLog = NULL; -u32 rewind_counter=0; // It is safe if this overflows + +// It is safe if these overflow +u32 rewind_counter=0; +u8 vblank_count_hideafter=0; int EmuInit() { return psxInit(); @@ -61,6 +64,12 @@ void EmuUpdate() { ApplyCheats(); + if (vblank_count_hideafter) { + if (!(--vblank_count_hideafter)) { + GPU_showScreenPic(NULL); + } + } + if (Config.RewindInterval > 0 && !(++rewind_counter%Config.RewindInterval)) { CreateRewindState(); } diff --git a/libpcsxcore/psxcommon.h b/libpcsxcore/psxcommon.h index 8def3612..1eaffc1d 100755 --- a/libpcsxcore/psxcommon.h +++ b/libpcsxcore/psxcommon.h @@ -166,7 +166,10 @@ typedef struct { extern PcsxConfig Config; extern boolean NetOpened; -extern u32 rewind_counter; // It is safe if this overflows + +// It is safe if these overflow +extern u32 rewind_counter; +extern u8 vblank_count_hideafter; #define gzfreeze(ptr, size) { \ if (Mode == 1) gzwrite(f, ptr, size); \ |
