From 8fb2f8e3118f7cb42c2d91cf2af72343583a4396 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 9 Apr 2012 15:21:24 -0300 Subject: [PATCH] [xmp] Set instrument path Signed-off-by: Claudio Matsuoka --- src/main.c | 4 ++++ src/xmp.1 | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main.c b/src/main.c index 2956813..ac16728 100644 --- a/src/main.c +++ b/src/main.c @@ -231,6 +231,10 @@ int main(int argc, char **argv) skipprev = 0; + if (options.ins_path) { + setenv("XMP_INSTRUMENT_PATH", options.ins_path, 1); + } + for (first = optind; optind < argc; optind++) { if (options.verbose > 0) { report("\nLoading %s... (%d of %d)\n", diff --git a/src/xmp.1 b/src/xmp.1 index 659bed1..02c0386 100644 --- a/src/xmp.1 +++ b/src/xmp.1 @@ -189,13 +189,6 @@ random order\&: .IP "" \f(CWxmp -R `find /mod -name "*\&.xm*" -print`\fP .PP -.SH "ENVIRONMENT" -.IP "\fBXMP_INSTRUMENT_PATH\fP" -Pathname to directory containing samples if not contained in the module\&. -.PP -.IP "\fBXMP_MED2_INSTRUMENT_PATH\fP" -Overrides samples directory for the MED2 loader\&. -.PP .SH "FILES" \f(CW/etc/xmp/xmp\&.conf\&, $HOME/\&.xmp/xmp\&.conf\&, /etc/xmp/modules\&.conf\&, $HOME/\&.xmp/modules\&.conf\fP .PP