Rewind pause not a dummy.
This commit is contained in:
@@ -101,6 +101,7 @@ NEWSYM ProcessRewind
|
||||
mov edi,[tempedi]
|
||||
mov ebp,[tempebp]
|
||||
mov edx,[tempedx]
|
||||
|
||||
.notokay
|
||||
ret
|
||||
|
||||
@@ -1485,6 +1486,7 @@ NEWSYM cpuover
|
||||
pushad
|
||||
call copyvid ;Update screen
|
||||
popad
|
||||
call ProcessRewind
|
||||
jmp .nonewgfx
|
||||
.noemupause
|
||||
|
||||
|
||||
@@ -199,6 +199,8 @@ static void memcpyrinc(unsigned char **src, void *dest, size_t len)
|
||||
extern unsigned int RewindTimer;
|
||||
extern unsigned char RewindStates;
|
||||
|
||||
extern unsigned char EMUPause, PauseRewind;
|
||||
|
||||
unsigned char *StateBackup = 0;
|
||||
unsigned char AllocatedRewindStates, LatestRewindPos, EarliestRewindPos;
|
||||
bool RewindPosPassed;
|
||||
@@ -250,8 +252,19 @@ void RestoreCVFrame()
|
||||
RewindBufferPos = StateBackup + LatestRewindPos*rewind_state_size;
|
||||
//printf("Restoring rewind in slot #%u\n", LatestRewindPos);
|
||||
|
||||
if (MovieProcessing == 1) { zmv_rewind_load(LatestRewindPos, true); }
|
||||
else if (MovieProcessing == 2) { zmv_rewind_load(LatestRewindPos, false); }
|
||||
if (MovieProcessing == 2)
|
||||
{
|
||||
zmv_rewind_load(LatestRewindPos, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (MovieProcessing == 1)
|
||||
{
|
||||
zmv_rewind_load(LatestRewindPos, true);
|
||||
}
|
||||
EMUPause = PauseRewind;
|
||||
}
|
||||
|
||||
copy_state_data(RewindBufferPos, memcpyrinc, csm_load_rewind);
|
||||
|
||||
//Clear Cache Check
|
||||
|
||||
Reference in New Issue
Block a user