Mercurial > hg > svcore
comparison plugin/FeatureExtractionPluginFactory.cpp @ 83:b2067aff8cd6
* Fix crash in spectrogram layer when replacing model
* Change sample player's sample path to a single sample directory.
This makes it immune to OS path separator differences, and ensures
it can reject configure calls that try to set a nonexistent directory.
Reloading play parameters (e.g. sample program) should now work.
* some win32 fixes.
author | Chris Cannam |
---|---|
date | Wed, 26 Apr 2006 16:00:13 +0000 |
parents | bf42d8d63885 |
children | c30728d5625c |
comparison
equal
deleted
inserted
replaced
82:bf42d8d63885 | 83:b2067aff8cd6 |
---|---|
69 int f; | 69 int f; |
70 while ((f = envPath.find("$HOME")) >= 0 && f < envPath.length()) { | 70 while ((f = envPath.find("$HOME")) >= 0 && f < envPath.length()) { |
71 envPath.replace(f, 5, home); | 71 envPath.replace(f, 5, home); |
72 } | 72 } |
73 } | 73 } |
74 #ifdef Q_WS_WIN32 | |
75 char *cpfiles = getenv("ProgramFiles"); | |
76 if (!cpfiles) cpfiles = "C:\\Program Files"; | |
77 std::string pfiles(cpfiles); | |
78 int f; | |
79 while ((f = envPath.find("%ProgramFiles%")) >= 0 && f < envPath.length()) { | |
80 envPath.replace(f, 14, pfiles); | |
81 } | |
82 #endif | |
74 } | 83 } |
75 | 84 |
76 std::cerr << "VAMP path is: \"" << envPath << "\"" << std::endl; | 85 std::cerr << "VAMP path is: \"" << envPath << "\"" << std::endl; |
77 | 86 |
78 std::string::size_type index = 0, newindex = 0; | 87 std::string::size_type index = 0, newindex = 0; |