1
0
Fork 0

New format for mapper handlers to support keeping keys pressed.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2488
This commit is contained in:
Sjoerd van der Berg 2006-02-12 23:23:52 +00:00
parent 19985730a3
commit b81c210530
5 changed files with 19 additions and 13 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: debug.cpp,v 1.74 2006-02-09 11:47:48 qbix79 Exp $ */
/* $Id: debug.cpp,v 1.75 2006-02-12 23:23:52 harekiet Exp $ */
#include <string.h>
#include <list>
@ -1660,7 +1660,9 @@ Bitu DEBUG_Loop(void) {
return DEBUG_CheckKeys();
}
void DEBUG_Enable(void) {
void DEBUG_Enable(bool pressed) {
if (!pressed)
return;
static bool showhelp=false;
debugging=true;
SetCodeWinStart();
@ -1947,7 +1949,7 @@ void DEBUG_CheckExecuteBreakpoint(Bit16u seg, Bit32u off)
Bitu DEBUG_EnableDebugger(void)
{
exitLoop = true;
DEBUG_Enable();
DEBUG_Enable(true);
CPU_Cycles=CPU_CycleLeft=0;
return 0;
};