Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/hostext/PluginLoader.cpp @ 78:6bf198e06d72 vamp-plugin-sdk-v1.1
* doc updates
author | cannam |
---|---|
date | Thu, 23 Aug 2007 10:31:46 +0000 |
parents | 0f8524203677 |
children | c94c066a4897 |
comparison
equal
deleted
inserted
replaced
77:ba5f87117b67 | 78:6bf198e06d72 |
---|---|
523 | 523 |
524 vector<string> | 524 vector<string> |
525 PluginLoader::Impl::listFiles(string dir, string extension) | 525 PluginLoader::Impl::listFiles(string dir, string extension) |
526 { | 526 { |
527 vector<string> files; | 527 vector<string> files; |
528 size_t extlen = extension.length(); | |
529 | 528 |
530 #ifdef _WIN32 | 529 #ifdef _WIN32 |
531 | 530 |
532 string expression = dir + "\\*." + extension; | 531 string expression = dir + "\\*." + extension; |
533 WIN32_FIND_DATA data; | 532 WIN32_FIND_DATA data; |
541 } | 540 } |
542 | 541 |
543 FindClose(fh); | 542 FindClose(fh); |
544 | 543 |
545 #else | 544 #else |
545 | |
546 size_t extlen = extension.length(); | |
546 DIR *d = opendir(dir.c_str()); | 547 DIR *d = opendir(dir.c_str()); |
547 if (!d) return files; | 548 if (!d) return files; |
548 | 549 |
549 struct dirent *e = 0; | 550 struct dirent *e = 0; |
550 while ((e = readdir(d))) { | 551 while ((e = readdir(d))) { |