aboutsummaryrefslogtreecommitdiff
path: root/folder_list.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-04-08 23:49:04 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-04-08 23:49:04 +0000
commit18ccc0fc2489e8242a0a6376965f33dcf946b35e (patch)
tree9b23a3f403ef95b0a3de0e845b535f2e275e369f /folder_list.c
parentb30f724f07c07b95f9d83ae30f4b861349bfe512 (diff)
wrote [strip_path] to separate path from filename, and to handle filenames without paths properly; added instance counters so that the version is only displayed on the first instantiation
svn path=/trunk/externals/hcs/; revision=4852
Diffstat (limited to 'folder_list.c')
-rw-r--r--folder_list.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/folder_list.c b/folder_list.c
index dffdb2c..0c0dede 100644
--- a/folder_list.c
+++ b/folder_list.c
@@ -34,7 +34,9 @@
#include <glob.h>
#endif
-static char *version = "$Revision: 1.8 $";
+static char *version = "$Revision: 1.9 $";
+
+t_int folder_list_instance_count;
#define DEBUG(x)
//#define DEBUG(x) x
@@ -163,8 +165,13 @@ static void *folder_list_new(t_symbol *s)
t_folder_list *x = (t_folder_list *)pd_new(folder_list_class);
- post("[folder_list] %s",version);
- post("\twritten by Hans-Christoph Steiner <hans@at.or.at>");
+ if(!folder_list_instance_count)
+ {
+ post("[folder_list] %s",version);
+ post("\twritten by Hans-Christoph Steiner <hans@at.or.at>");
+ }
+ folder_list_instance_count++;
+
/* TODO set current dir of patch as default */
#ifdef _WIN32
x->x_pattern = gensym(getenv("USERPROFILE"));