From 4b5cd87c8a4353bc70afffb1971c2132a9a12061 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 6 Jan 2010 21:45:14 +0100 Subject: [PATCH] Correct XBoard default debug file name --- args.h | 2 +- winboard/defaults.h | 1 + xboard.c | 1 + 3 files changed, 3 insertions(+), 1 deletions(-) diff --git a/args.h b/args.h index 0b021ac..e23b506 100644 --- a/args.h +++ b/args.h @@ -504,7 +504,7 @@ ArgDescriptor argDescriptors[] = { { "adjudicateLossThreshold", ArgInt, (void *) &appData.adjudicateLossThreshold, TRUE, (ArgIniType) 0 }, { "delayBeforeQuit", ArgInt, (void *) &appData.delayBeforeQuit, TRUE, (ArgIniType) 0 }, { "delayAfterQuit", ArgInt, (void *) &appData.delayAfterQuit, TRUE, (ArgIniType) 0 }, - { "nameOfDebugFile", ArgFilename, (void *) &appData.nameOfDebugFile, FALSE, (ArgIniType) "winboard.debug" }, + { "nameOfDebugFile", ArgFilename, (void *) &appData.nameOfDebugFile, FALSE, (ArgIniType) DEBUG_FILE }, { "debugfile", ArgFilename, (void *) &appData.nameOfDebugFile, FALSE, INVALID }, { "pgnEventHeader", ArgString, (void *) &appData.pgnEventHeader, TRUE, (ArgIniType) "Computer Chess Game" }, { "defaultFrcPosition", ArgInt, (void *) &appData.defaultFrcPosition, TRUE, (ArgIniType) -1 }, diff --git a/winboard/defaults.h b/winboard/defaults.h index aa7246f..9dcd68d 100644 --- a/winboard/defaults.h +++ b/winboard/defaults.h @@ -211,6 +211,7 @@ } #define SETTINGS_FILE "winboard.ini" +#define DEBUG_FILE "winboard.debug" #define ICS_LOGON "ics.ini" diff --git a/xboard.c b/xboard.c index fb54fee..4b7e033 100644 --- a/xboard.c +++ b/xboard.c @@ -1249,6 +1249,7 @@ BoardToTop() #define JAWS_ARGS #define CW_USEDEFAULT (1<<31) #define ICS_TEXT_MENU_SIZE 90 +#define DEBUG_FILE "xboard.debug" #define SetCurrentDirectory chdir #define GetCurrentDirectory(SIZE, NAME) getcwd(NAME, SIZE) #define OPTCHAR "-" -- 1.7.0.4