summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox_pgn.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-07-15 10:49:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-07-28 18:39:41 -0400
commit55729048876a63cbb6d264e074cbd754e4125080 (patch)
tree4df092a385aaa97358874cd47089684cba58c28b /apps/plugins/chessbox/chessbox_pgn.h
parentc5ed45d8c76322700b1855bffb1c18b646f424f2 (diff)
downloadrockbox-55729048876a63cbb6d264e074cbd754e4125080.tar.gz
rockbox-55729048876a63cbb6d264e074cbd754e4125080.zip
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
Diffstat (limited to 'apps/plugins/chessbox/chessbox_pgn.h')
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.h5
1 files changed, 4 insertions, 1 deletions
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 @@
649/* structure to represent the plies */ 649/* structure to represent the plies */
650struct pgn_ply_node { 650struct pgn_ply_node {
651 unsigned short player; 651 unsigned short player;
652 char pgn_text[9]; 652 char pgn_text[11];
653 unsigned short row_from; 653 unsigned short row_from;
654 unsigned short column_from; 654 unsigned short column_from;
655 unsigned short row_to; 655 unsigned short row_to;
@@ -677,6 +677,9 @@ struct pgn_game_node {
677 struct pgn_game_node* next_node; 677 struct pgn_game_node* next_node;
678}; 678};
679 679
680/* File for saving games */
681extern const char* pgn_file;
682
680/* Return the list of games in a PGN file. 683/* Return the list of games in a PGN file.
681 * Parsing of the games themselves is postponed until 684 * Parsing of the games themselves is postponed until
682 * the user selects a game, that obviously saves processing 685 * the user selects a game, that obviously saves processing