Initialize cyclesleft variable so events can start at emulation time 0.0. Patch by Qbix
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3512
This commit is contained in:
parent
d7ab4e8fd5
commit
4c7f6b87f3
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ CPUBlock cpu;
|
|||
Segments Segs;
|
||||
|
||||
Bit32s CPU_Cycles = 0;
|
||||
Bit32s CPU_CycleLeft = 0;
|
||||
Bit32s CPU_CycleLeft = 3000;
|
||||
Bit32s CPU_CycleMax = 3000;
|
||||
Bit32s CPU_OldCycleMax = 3000;
|
||||
Bit32s CPU_CyclePercUsed = 100;
|
||||
|
@ -2222,7 +2222,7 @@ public:
|
|||
bool Change_Config(Section* newconfig){
|
||||
Section_prop * section=static_cast<Section_prop *>(newconfig);
|
||||
CPU_AutoDetermineMode=CPU_AUTODETERMINE_NONE;
|
||||
CPU_CycleLeft=0;//needed ?
|
||||
//CPU_CycleLeft=0;//needed ?
|
||||
CPU_Cycles=0;
|
||||
CPU_SkipCycleAutoAdjust=false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue