in src/main/cpp/bootstrap/platformlauncher.cpp [171:188]
bool PlatformLauncher::initPlatformDir() {
char path[MAX_PATH] = "";
getCurrentModulePath(path, MAX_PATH);
logMsg("Module: %s", path);
char *bslash = strrchr(path, '\\');
if (!bslash) {
return false;
}
*bslash = '\0';
bslash = strrchr(path, '\\');
if (!bslash) {
return false;
}
*bslash = '\0';
clusters = platformDir = path;
logMsg("Platform dir: %s", platformDir.c_str());
return true;
}