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) { |