From 18ccc0fc2489e8242a0a6376965f33dcf946b35e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 8 Apr 2006 23:49:04 +0000 Subject: 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 --- folder_list.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'folder_list.c') 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 #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 "); + if(!folder_list_instance_count) + { + post("[folder_list] %s",version); + post("\twritten by Hans-Christoph Steiner "); + } + folder_list_instance_count++; + /* TODO set current dir of patch as default */ #ifdef _WIN32 x->x_pattern = gensym(getenv("USERPROFILE")); -- cgit v1.2.1