/[svn]/linuxsampler/trunk/src/hostplugins/vst/PluginVst.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/hostplugins/vst/PluginVst.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1920 by senoner, Sun Jun 21 15:19:06 2009 UTC revision 1928 by schoenebeck, Fri Jul 3 11:14:46 2009 UTC
# Line 97  namespace { Line 97  namespace {
97              ProcessHandle = INVALID_HANDLE_VALUE;              ProcessHandle = INVALID_HANDLE_VALUE;
98          }          }
99    
100          // assume Fantasia is in the same directory as the          // assume Fantasia is in the same directory or one directory above
101          // liblinuxsampler dll          // the liblinuxsampler dll
102          String lspath = LinuxSampler::Sampler::GetInstallDir();          String lspath = LinuxSampler::Sampler::GetInstallDir();
103          if (!lspath.empty()) {          if (!lspath.empty()) {
104              lspath += "\\";              lspath += "\\";
105              WIN32_FIND_DATA fd;              WIN32_FIND_DATA fd;
106              HANDLE hFind = FindFirstFile((lspath + "Fantasia*.jar").c_str(), &fd);              HANDLE hFind = FindFirstFile((lspath + "Fantasia*.jar").c_str(), &fd);
107                if (hFind == INVALID_HANDLE_VALUE) {
108                    lspath += "..\\";
109                    hFind = FindFirstFile((lspath + "Fantasia*.jar").c_str(), &fd);
110                }
111              if (hFind != INVALID_HANDLE_VALUE) {              if (hFind != INVALID_HANDLE_VALUE) {
112                  String fantasia(fd.cFileName);                  String fantasia(fd.cFileName);
113                  FindClose(hFind);                  FindClose(hFind);

Legend:
Removed from v.1920  
changed lines
  Added in v.1928

  ViewVC Help
Powered by ViewVC