summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox_pgn.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chessbox/chessbox_pgn.c')
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c
index 39a24d6fa1..40e88e500b 100644
--- a/apps/plugins/chessbox/chessbox_pgn.c
+++ b/apps/plugins/chessbox/chessbox_pgn.c
@@ -22,9 +22,9 @@
22#include "plugin.h" 22#include "plugin.h"
23#include "chessbox_pgn.h" 23#include "chessbox_pgn.h"
24 24
25#define PGN_FILE PLUGIN_GAMES_DATA_DIR "/chessbox.pgn"
26#define LOG_FILE PLUGIN_GAMES_DATA_DIR "/chessbox.log" 25#define LOG_FILE PLUGIN_GAMES_DATA_DIR "/chessbox.log"
27int loghandler; 26int loghandler;
27const char *pgn_file = PLUGIN_GAMES_DATA_DIR "/chessbox.pgn";
28 28
29short kn_offs[8][2] = {{2,1},{2,-1},{-2,1},{-2,-1},{1,2},{1,-2},{-1,2},{-1,-2}}; 29short kn_offs[8][2] = {{2,1},{2,-1},{-2,1},{-2,-1},{1,2},{1,-2},{-1,2},{-1,-2}};
30short rk_offs[4][2] = {{1,0},{-1,0},{0,1},{0,-1}}; 30short rk_offs[4][2] = {{1,0},{-1,0},{0,1},{0,-1}};
@@ -889,7 +889,7 @@ void pgn_store_game(struct pgn_game_node* game){
889 ply_count++; 889 ply_count++;
890 } 890 }
891 891
892 fhandler = rb->open(PGN_FILE, O_WRONLY|O_CREAT|O_APPEND, 0666); 892 fhandler = rb->open(pgn_file, O_WRONLY|O_CREAT|O_APPEND, 0666);
893 893
894 894
895 /* the first 7 tags are mandatory according to the PGN specification so we 895 /* the first 7 tags are mandatory according to the PGN specification so we