MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / LoadArchive

Method LoadArchive

ogsr_engine/xrCore/LocatorAPI.cpp:309–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void CLocatorAPI::LoadArchive(archive& A, LPCSTR base_path)
310{
311 // Create base path
312 string_path fs_entry_point;
313 if (base_path && base_path[0])
314 {
315 strcpy_s(fs_entry_point, base_path);
316 }
317 else
318 {
319 strcpy_s(fs_entry_point, A.path.c_str());
320 if (strext(fs_entry_point))
321 *strext(fs_entry_point) = 0;
322 }
323 strcat_s(fs_entry_point, "\\");
324
325 // Read FileSystem
326 A.open();
327 A.index(*this, fs_entry_point);
328}
329
330void CLocatorAPI::ProcessArchive(LPCSTR _path, LPCSTR base_path)
331{

Callers

nothing calls this directly

Calls 4

strextFunction · 0.85
c_strMethod · 0.45
openMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected