| 309 | } |
| 310 | |
| 311 | BundleResource |
| 312 | Bundle::GetResource(std::string const& path) const |
| 313 | { |
| 314 | if (!d) |
| 315 | { |
| 316 | throw std::invalid_argument("invalid bundle"); |
| 317 | } |
| 318 | |
| 319 | d->CheckUninstalled(); |
| 320 | return d->barchive ? d->barchive->GetResource(path) : BundleResource(); |
| 321 | } |
| 322 | |
| 323 | std::vector<BundleResource> |
| 324 | Bundle::FindResources(std::string const& path, std::string const& filePattern, bool recurse) const |