diff options
| author | Thomas Jarosch <tomj@simonv.com> | 2011-03-02 23:43:54 +0000 |
|---|---|---|
| committer | Thomas Jarosch <tomj@simonv.com> | 2011-03-02 23:43:54 +0000 |
| commit | f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2 (patch) | |
| tree | 1cede1c4f11f529e00bf48036778801160dc6e56 /apps/plugins/solitaire.c | |
| parent | a25153be6b0af205aa0c82dd2f3cba41221df2e5 (diff) | |
| download | rockbox-f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2.zip rockbox-f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2.tar.gz rockbox-f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2.tar.bz2 rockbox-f9f89cf5cb42a6540995bbb0c277e1f2e6b222b2.tar.xz | |
RaaA: Fix write locations of plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/solitaire.c')
| -rw-r--r-- | apps/plugins/solitaire.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 006e073..a873110 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -1293,11 +1293,15 @@ int bouncing_cards( void ) */ void get_save_filename( char *buf ) { +#ifdef APPLICATION + rb->snprintf(buf, sizeof(buf), PLUGIN_DATA_DIR "/sol.save"); +#else char *s; rb->strcpy( buf, rb->plugin_get_current_filename() ); s = rb->strrchr( buf, '/' ) + 1; *s = '\0'; rb->strcat( s, "sol.save" ); +#endif } int open_save_file( int flags ) |