| 307 | } |
| 308 | |
| 309 | void 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 | |
| 330 | void CLocatorAPI::ProcessArchive(LPCSTR _path, LPCSTR base_path) |
| 331 | { |