/[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 1896 by persson, Sun May 3 12:15:40 2009 UTC revision 1897 by persson, Sun May 10 09:31:51 2009 UTC
# Line 84  namespace { Line 84  namespace {
84    
85          ProcessHandle = INVALID_HANDLE_VALUE;          ProcessHandle = INVALID_HANDLE_VALUE;
86    
87          // look for a Fantasia jar file in %programfiles%\LinuxSampler          // assume Fantasia is in the same directory as the
88          if (const char* programfiles = getenv("PROGRAMFILES")) {          // liblinuxsampler dll
89              String lspath = String(programfiles) + "\\LinuxSampler\\";          String lspath = LinuxSampler::Sampler::GetInstallDir();
90            if (!lspath.empty()) {
91                lspath += "\\";
92              WIN32_FIND_DATA fd;              WIN32_FIND_DATA fd;
93              HANDLE hFind = FindFirstFile((lspath + "Fantasia*.jar").c_str(), &fd);              HANDLE hFind = FindFirstFile((lspath + "Fantasia*.jar").c_str(), &fd);
94              if (hFind != INVALID_HANDLE_VALUE) {              if (hFind != INVALID_HANDLE_VALUE) {

Legend:
Removed from v.1896  
changed lines
  Added in v.1897

  ViewVC Help
Powered by ViewVC