From 328b21c2e0be54f3dc756a1751141a8c06bb6d5f Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 12 May 2010 08:11:37 +0000 Subject: [PATCH] Limit message to once per session. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3606 --- src/cpu/cpu.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cpu/cpu.cpp b/src/cpu/cpu.cpp index b49d0656..363b091b 100644 --- a/src/cpu/cpu.cpp +++ b/src/cpu/cpu.cpp @@ -1542,7 +1542,7 @@ Bitu CPU_SIDT_limit(void) { return cpu.idt.GetLimit(); } - +static bool printed_cycles_auto_info = false; void CPU_SET_CRX(Bitu cr,Bitu value) { switch (cr) { case 0: @@ -1563,7 +1563,10 @@ void CPU_SET_CRX(Bitu cr,Bitu value) { CPU_Cycles=0; CPU_OldCycleMax=CPU_CycleMax; GFX_SetTitle(CPU_CyclePercUsed,-1,false); - LOG_MSG("DOSBox switched to max cycles, because of the setting: cycles=auto. If the game runs too fast try a fixed cycles amount in DOSBox's options."); + if(!printed_cycles_auto_info) { + printed_cycles_auto_info = true; + LOG_MSG("DOSBox switched to max cycles, because of the setting: cycles=auto. If the game runs too fast try a fixed cycles amount in DOSBox's options."); + } } else { GFX_SetTitle(-1,-1,false); }