X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=e41119e1985ad44591780bee5c959db8676a58f1;hb=e59f2b1735fb0ef47b63a1fc560edcc58826ef58;hp=1f17046185bfb2b38b50365983015d54f308c3b6;hpb=ea750683ac62717dd7346de17b5ae072622ff92a;p=xboard.git diff --git a/xboard.c b/xboard.c index 1f17046..e41119e 100644 --- a/xboard.c +++ b/xboard.c @@ -1309,6 +1309,18 @@ XtResource clientResources[] = { { "niceEngines", "niceEngines", XtRInt, sizeof(int), XtOffset(AppDataPtr, niceEngines), XtRImmediate, (XtPointer) 0}, + { "nameOfDebugFile", "nameOfDebugFile", XtRString, + sizeof(String), XtOffset(AppDataPtr, nameOfDebugFile), + XtRImmediate, (XtPointer) "xboard.debug"}, + { "noGUI", "noGUI", XtRBoolean, + sizeof(Boolean), XtOffset(AppDataPtr, noGUI), + XtRImmediate, (XtPointer) 0}, + { "firstOptions", "firstOptions", XtRString, + sizeof(String), XtOffset(AppDataPtr, firstOptions), + XtRImmediate, (XtPointer) "" }, + { "secondOptions", "secondOptions", XtRString, + sizeof(String), XtOffset(AppDataPtr, secondOptions), + XtRImmediate, (XtPointer) "" }, // [HGM] Winboard_x UCI options { "firstIsUCI", "firstIsUCI", XtRBoolean, @@ -1347,12 +1359,6 @@ XtResource clientResources[] = { { "delayAfterQuit", "delayAfterQuit", XtRInt, sizeof(int), XtOffset(AppDataPtr, delayAfterQuit), XtRImmediate, (XtPointer) 0}, - { "nameOfDebugFile", "nameOfDebugFile", XtRString, - sizeof(String), XtOffset(AppDataPtr, nameOfDebugFile), - XtRImmediate, (XtPointer) "xboard.debug"}, - { "noGUI", "noGUI", XtRBoolean, - sizeof(Boolean), XtOffset(AppDataPtr, noGUI), - XtRImmediate, (XtPointer) 0}, }; XrmOptionDescRec shellOptions[] = { @@ -1658,6 +1664,8 @@ XrmOptionDescRec shellOptions[] = { { "-secondHasOwnBookUCI", "secondHasOwnBookUCI", XrmoptionSepArg, NULL }, { "-fNoOwnBookUCI", "firstHasOwnBookUCI", XrmoptionNoArg, "False" }, { "-sNoOwnBookUCI", "secondHasOwnBookUCI", XrmoptionNoArg, "False" }, + { "-firstXBook", "firstHasOwnBookUCI", XrmoptionNoArg, "False" }, + { "-secondXBook", "secondHasOwnBookUCI", XrmoptionNoArg, "False" }, { "-polyglotDir", "polyglotDir", XrmoptionSepArg, NULL }, { "-usePolyglotBook", "usePolyglotBook", XrmoptionSepArg, NULL }, { "-polyglotBook", "polyglotBook", XrmoptionSepArg, NULL }, @@ -1707,6 +1715,8 @@ XrmOptionDescRec shellOptions[] = { { "-delayAfterQuit", "delayAfterQuit", XrmoptionSepArg, NULL }, { "-nameOfDebugFile", "nameOfDebugFile", XrmoptionSepArg, NULL }, { "-noGUI", "noGUI", XrmoptionNoArg, "True" }, + { "-firstOptions", "firstOptions", XrmoptionSepArg, NULL }, + { "-secondOptions", "secondOptions", XrmoptionSepArg, NULL }, }; @@ -2268,7 +2278,6 @@ main(argc, argv) #ifdef ENABLE_NLS XtSetLanguageProc(NULL, NULL, NULL); bindtextdomain(PRODUCT, LOCALEDIR); - bind_textdomain_codeset(PRODUCT, "UTF-8"); textdomain(PRODUCT); #endif