Update from AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
09343371d5
commit
1a302935f0
5 changed files with 5 additions and 8 deletions
|
@ -117,8 +117,7 @@ namespace ra2
|
|||
const DWORD executedCycles = CpuExecute(cyclesToExecute, bVideoUpdate);
|
||||
|
||||
g_dwCyclesThisFrame = (g_dwCyclesThisFrame + executedCycles) % dwClksPerFrame;
|
||||
GetCardMgr().GetDisk2CardMgr().UpdateDriveState(executedCycles);
|
||||
MB_PeriodicUpdate(executedCycles);
|
||||
GetCardMgr().Update(executedCycles);
|
||||
SpkrUpdate(executedCycles);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace
|
|||
|
||||
CardManager & cardManager = GetCardMgr();
|
||||
|
||||
cardManager.GetDisk2CardMgr().UpdateDriveState(uActualCyclesExecuted);
|
||||
cardManager.Update(uActualCyclesExecuted);
|
||||
|
||||
const int key = ProcessKeyboard(frame);
|
||||
|
||||
|
|
|
@ -290,8 +290,7 @@ void QApple::on_timer()
|
|||
{
|
||||
const DWORD uActualCyclesExecuted = CpuExecute(uCyclesToExecute, bVideoUpdate);
|
||||
g_dwCyclesThisFrame += uActualCyclesExecuted;
|
||||
cardManager.GetDisk2CardMgr().UpdateDriveState(uActualCyclesExecuted);
|
||||
MB_PeriodicUpdate(uActualCyclesExecuted);
|
||||
cardManager.Update(uActualCyclesExecuted);
|
||||
SpkrUpdate(uActualCyclesExecuted);
|
||||
|
||||
// in case we run more than 1 frame
|
||||
|
|
|
@ -580,8 +580,7 @@ namespace sa2
|
|||
const DWORD executedCycles = CpuExecute(thisCyclesToExecute, bVideoUpdate);
|
||||
totalCyclesExecuted += executedCycles;
|
||||
|
||||
GetCardMgr().GetDisk2CardMgr().UpdateDriveState(executedCycles);
|
||||
MB_PeriodicUpdate(executedCycles);
|
||||
GetCardMgr().Update(executedCycles);
|
||||
SpkrUpdate(executedCycles);
|
||||
|
||||
g_dwCyclesThisFrame += executedCycles;
|
||||
|
|
|
@ -140,7 +140,7 @@ void VideoBenchmark(std::function<void()> redraw, std::function<void()> refresh)
|
|||
const DWORD executedcycles = CpuExecute(cyclesPerMs, true);
|
||||
cyclesThisFrame += executedcycles;
|
||||
// every ms disk and joystick are updated
|
||||
GetCardMgr().GetDisk2CardMgr().UpdateDriveState(executedcycles);
|
||||
GetCardMgr().GetDisk2CardMgr().Update(executedcycles);
|
||||
#if 0
|
||||
JoyUpdateButtonLatch(executedcycles);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue