summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-05 15:04:20 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-05 15:04:20 +0000
commit4ac9bebd427e1085ef286d3e1204f526dbc05483 (patch)
treeb4dcc6950fb466a6b008318fa58a578e2b3b59a0
parente2e7ecf350a4d085f6f58052f55ba29e8fe77718 (diff)
downloadrockbox-4ac9bebd427e1085ef286d3e1204f526dbc05483.tar.gz
rockbox-4ac9bebd427e1085ef286d3e1204f526dbc05483.zip
Goban: Change save location and file names to fit more in line with the rest of the plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22172 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/goban/goban.c2
-rw-r--r--apps/plugins/goban/goban.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/goban/goban.c b/apps/plugins/goban/goban.c
index 04b74b7f59..65a03f6953 100644
--- a/apps/plugins/goban/goban.c
+++ b/apps/plugins/goban/goban.c
@@ -243,7 +243,7 @@ plugin_start (const void *parameter)
243{ 243{
244 int btn; 244 int btn;
245 245
246 rb->mkdir ("/sgf"); 246 rb->mkdir (DEFAULT_SAVE_DIR);
247 247
248 global_setup (); 248 global_setup ();
249 249
diff --git a/apps/plugins/goban/goban.h b/apps/plugins/goban/goban.h
index 54ec968f0b..4cb8111546 100644
--- a/apps/plugins/goban/goban.h
+++ b/apps/plugins/goban/goban.h
@@ -319,10 +319,10 @@
319 319
320 320
321/* The directory we default to for saving crap */ 321/* The directory we default to for saving crap */
322#define DEFAULT_SAVE_DIR "/sgf" 322#define DEFAULT_SAVE_DIR PLUGIN_GAMES_DIR "/goban"
323 323
324/* The default file we save to */ 324/* The default file we save to */
325#define DEFAULT_SAVE (DEFAULT_SAVE_DIR "/gbn_def.sgf") 325#define DEFAULT_SAVE (DEFAULT_SAVE_DIR "/goban_d.save")
326 326
327/* The size of the buffer we store filenames in (1 reserved for '\0') */ 327/* The size of the buffer we store filenames in (1 reserved for '\0') */
328#define SAVE_FILE_LENGTH 256 328#define SAVE_FILE_LENGTH 256