| 273 | } |
| 274 | |
| 275 | tSharedBuffer cCampaign::getSprites(std::shared_ptr<cPhase> pPhase) const { |
| 276 | std::string FinalName = pPhase->mMapFilename + ".spt"; |
| 277 | std::string FinalPath = GetPathToFile(FinalName); |
| 278 | |
| 279 | // If no campaign folder exists, load from the currently loaded resource |
| 280 | if (!g_ResourceMan->FileExists(FinalPath)) |
| 281 | return g_Resource->fileGet(FinalName); |
| 282 | |
| 283 | // Otherwise load it from the campaign path |
| 284 | return g_ResourceMan->FileRead(FinalPath); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Get the mission |
nothing calls this directly
no test coverage detected