]> err.no Git - mapper/commitdiff
Use define for mmc paths
authorKaj-Michael Lang <milang@tal.org>
Wed, 9 Apr 2008 09:29:34 +0000 (12:29 +0300)
committerKaj-Michael Lang <milang@tal.org>
Wed, 9 Apr 2008 09:29:34 +0000 (12:29 +0300)
src/audio-note.c

index 445b6337f2d216e69a53a896458014c891078edc..073642f1f2fc0614caa065a13634a5861d996b02 100644 (file)
@@ -42,6 +42,9 @@ static gboolean audio_note_stop(audio_note_ui *ui);
 #define GST_TIME_TO_SECS(t) \
        (gdouble) (((gdouble)(t)) / (gdouble) GST_SECOND) /* GST_SECOND should be 1e9 */
 
+#define NOTES_BASEDIR_MMC1 "/media/mmc1/MapperAudioNotes"
+#define NOTES_BASEDIR_MMC2 "/media/mmc2/MapperAudioNotes"
+
 static void
 audio_note_set_length(audio_note_ui *ui, gdouble secs)
 {
@@ -107,7 +110,7 @@ struct tm *tmp;
 
 /* XXX: Make this a configuration option */
 #ifdef WITH_DEVICE_770
-basedir="/media/mmc1/MapperAudioNotes";
+basedir=NOTES_BASEDIR_MMC1;
 if (g_mkdir_with_parents(basedir, 0775)==-1) {
        MACRO_BANNER_SHOW_INFO(_window, _("Failed to create directory for sound files!"));
        return TRUE;