{
const std::string tacDir[] = {__TAC_DIR};
removeNiUnderDirs(tacDir, 1);
-
- auto convert = [](const std::string& path, std::string name) {
- if (strstr(path.c_str(), TAC_APP_LIST_DB) != NULL ||
- strstr(path.c_str(), TAC_APP_LIST_RESTORE_DB) != NULL ||
- strstr(path.c_str(), TAC_SHA_256_INFO) != NULL)
- return;
- if(createNiDll(path, false) != NI_ERROR_NONE) {
- fprintf(stderr, "Failed to create NI file [%s]\n", path.c_str());
- return;
- }
- };
- scanFilesInDir(tacDir[0], convert, -1);
+ createNiUnderTAC(tacDir, 1);
return TAC_ERROR_NONE;
}