From 55729048876a63cbb6d264e074cbd754e4125080 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 15 Jul 2019 10:49:55 -0400 Subject: chessbox: Fixes and enhancements - Unfinished game is now saved along with current position. - All savings are automatically done on shutdown. - Implemented facility to view played games. - Fixed bug that prevented program from the very first move. Patch by Igor Poretsky Change-Id: I997b97752e4362ed953309bea985d071f9db229b --- apps/plugins/chessbox/chessbox_pgn.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/plugins/chessbox/chessbox_pgn.h') diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h index 1159d0c7d1..3c4d5357a5 100644 --- a/apps/plugins/chessbox/chessbox_pgn.h +++ b/apps/plugins/chessbox/chessbox_pgn.h @@ -649,7 +649,7 @@ /* structure to represent the plies */ struct pgn_ply_node { unsigned short player; - char pgn_text[9]; + char pgn_text[11]; unsigned short row_from; unsigned short column_from; unsigned short row_to; @@ -677,6 +677,9 @@ struct pgn_game_node { struct pgn_game_node* next_node; }; +/* File for saving games */ +extern const char* pgn_file; + /* Return the list of games in a PGN file. * Parsing of the games themselves is postponed until * the user selects a game, that obviously saves processing -- cgit v1.2.3