MCPcopy Create free account
hub / github.com/KasperskyLab/hrtng / load

Function load

src/deinline.cpp:1213–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211 qfindclose(&blk);
1212 }
1213 void load()
1214 {
1215 qstring basePath = getBasePath();
1216 loadInlines(basePath.c_str(), this, true);
1217 size_t loaded = size();
1218 if(loaded)
1219 Log(llNotice, "%d inlines are loaded from %s\n", (int)size(), basePath.c_str());
1220 char dir[QMAXPATH];
1221 if(qdirname(dir, QMAXPATH, get_path(PATH_TYPE_IDB))) {
1222 loadInlines(dir, this, false);
1223 if(size() > loaded)
1224 Log(llNotice, "%d inlines are loaded from %s\n", (int)size() - loaded, dir);
1225 }
1226 }
1227};
1228
1229static sInlinesLib inlinesLib;

Callers

nothing calls this directly

Calls 4

getBasePathFunction · 0.85
loadInlinesFunction · 0.85
sizeFunction · 0.85
LogFunction · 0.85

Tested by

no test coverage detected