* Get the path to the current campaign */
| 57 | * Get the path to the current campaign |
| 58 | */ |
| 59 | std::string cCampaign::GetPath( const bool pTrailingSeperator ) const { |
| 60 | std::string path; |
| 61 | |
| 62 | if (mUseCustomPath) |
| 63 | path = mPath; |
| 64 | else |
| 65 | path = g_ResourceMan->GetCampaignData(mName); |
| 66 | |
| 67 | if(pTrailingSeperator && path.size()) |
| 68 | path += gPathSeperator; |
| 69 | |
| 70 | return path; |
| 71 | } |
| 72 | |
| 73 | bool cCampaign::LoadCustomMapFromPath(const std::string& pPath) { |
| 74 | Clear(); |
nothing calls this directly
no test coverage detected