pkgsrc-wip/swami/patches/patch-ac
Ben Collver b2fba5f502 Sampled Waveforms and And Musical Instruments - is an advanced
instrument editor for MIDI music composition and a sampler frontend.
Currently SoundFont(R) files can be browsed, edited and saved.  Swami
uses FluidSynth for software synthesis, so almost any sound card can be
used.
2004-08-02 15:00:41 +00:00

24 lines
864 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2004/08/02 15:00:41 bencollver Exp $
--- src/libswami/SwamiConfig.c.orig Thu Mar 13 13:22:37 2003
+++ src/libswami/SwamiConfig.c
@@ -790,8 +790,7 @@ swami_config_save (gboolean changed_only
int i;
#ifndef MINGW32
struct stat st;
- dirstr = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S, ".swami",
- G_DIR_SEPARATOR_S, NULL);
+ dirstr = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S, ".swami", NULL);
if (stat (dirstr, &st) == -1) /* check if config directory exists */
{ /* nope: make the directory */
@@ -803,6 +802,9 @@ swami_config_save (gboolean changed_only
return;
}
}
+
+ dirstr = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S, ".swami",
+ G_DIR_SEPARATOR_S, NULL);
#else
/* FIXME: Should use application directory */
dirstr = g_strconcat (".", G_DIR_SEPARATOR_S, NULL);