Rerecording: Wind back the frame counter in the status bar when a save state is loaded. Issues: The frame updates do currently not occur as often as the input updates. The input updates occur more frequently, perhaps closer to 60 times per real seconds.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2274 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2009-02-16 07:17:34 +00:00
parent 718aa585e2
commit 9afd7fb620
7 changed files with 71 additions and 4 deletions

View File

@ -91,11 +91,17 @@ s64 Timer::GetTimeDifference(void)
return(timeGetTime() - m_LastTime);
}
// Add the time difference since the last Update() to the starting time
/* Add the time difference since the last Update() to the starting time. This is used to compensate
for a paused game. */
void Timer::AddTimeDifference()
{
m_StartTime += GetTimeDifference();
}
// Wind back the starting time to a custom time
void Timer::WindBackStartingTime(u64 WindBack)
{
m_StartTime += WindBack;
}
// Get the time elapsed since the Start()
u64 Timer::GetTimeElapsed(void)