return TAC_ERROR_NONE;
}
-tac_error_e createTACPackage(const std::string& pkgId)
+tac_error_e createTACPackage(const std::string& pkgId, DWORD flags)
{
std::string pkgRoot;
if (getRootPath(pkgId, pkgRoot) < 0) {
std::string originPath = bf::read_symlink(symPath).string();
std::string originNiPath = originPath.substr(0, originPath.rfind(".dll")) + ".ni.dll";
if (!bf::exists(originNiPath)) {
- if(createNiDll(originPath, false) != NI_ERROR_NONE) {
+ if(createNiDll(originPath, flags) != NI_ERROR_NONE) {
fprintf(stderr, "Failed to create NI file [%s]\n", originPath.c_str());
return TAC_ERROR_UNKNOWN;
}
return TAC_ERROR_NONE;
}
-tac_error_e regenerateTAC()
+tac_error_e regenerateTAC(DWORD flags)
{
const std::string tacDir[] = {__TAC_DIR};
removeNiUnderDirs(tacDir, 1);
- createNiUnderTAC(tacDir, 1);
+ createNiUnderTAC(tacDir, 1, flags);
return TAC_ERROR_NONE;
}