\r
/* Imports from winboard.c */\r
extern HWND hwndMain;\r
+Boolean ParseFEN(Board b, int *stm, char *FEN);\r
\r
/* File globals */\r
static char *copyTemp;\r
VOID PasteGameOrFENFromClipboard()\r
{\r
char *buf;\r
- char *tmp;\r
+// char *tmp;\r
+ Board dummyBoard; int dummy; // [HGM] paste any\r
\r
if (!PasteTextFromClipboard(&buf)) {\r
return;\r
}\r
\r
+#if 0\r
tmp = buf;\r
while( *tmp == ' ' || *tmp == '\t' || *tmp == '\r' || *tmp == '\n' ) {\r
tmp++;\r
}\r
\r
if( *tmp == '[' ) {\r
+#else\r
+ // [HGM] paste any: make still smarter, to allow pasting of games without tags, recognize FEN in stead\r
+ if(!ParseFEN(dummyBoard, &dummy, buf) ) {\r
+#endif\r
PasteGameFromString( buf );\r
}\r
else {\r