The MFC GUI executes emuMain twice in OnIdle. Why?
I tested it without the for statement, and there's no difference for me.
Â
for(int i = 0; i < 2; i++) {
emulator.emuMain(emulator.emuCount);Code: Select all
if(lanlink.connected&&linkid&&lc.numtransfers==0) lc.CheckConn();
Â
Code: Select all
if(rewindSaveNeeded && rewindMemory && emulator.emuWriteMemState) { rewindCount++; if(rewindCount > 8) rewindCount = 8; if(emulator.emuWriteMemState(&rewindMemory[rewindPos*REWIND_SIZE], REWIND_SIZE)) { rewindPos = ++rewindPos & 7; if(rewindCount == 8) rewindTopPos = ++rewindTopPos & 7; } }
Â
Code: Select all
rewindSaveNeeded = false; [b]}[/b]