bool AppLauncher::findCacheDir()

in src/main/cpp/harness/applauncher.cpp [89:99]


bool AppLauncher::findCacheDir(const char *str) {
    logMsg("AppLauncher::findCacheDir");
    if (!NbLauncher::findCacheDir(str)) {    // will set userDir and possibly userHome.
        return false;
    }
    int pos = cacheDir.find(APPNAME_TOKEN);
    if (pos != string::npos) {
        cacheDir.replace(pos, strlen(APPNAME_TOKEN), appName);
    }
    return true;
}