1
0
Fork 0
forked from len0rd/rockbox

RaaA: Fix write locations of plugins

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-03-02 23:43:54 +00:00
parent a25153be6b
commit f9f89cf5cb
25 changed files with 66 additions and 36 deletions

View file

@ -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 )