MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GetPath

Method GetPath

Source/Campaign.cpp:59–71  ·  view source on GitHub ↗

* Get the path to the current campaign */

Source from the content-addressed store, hash-verified

57 * Get the path to the current campaign
58 */
59std::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
73bool cCampaign::LoadCustomMapFromPath(const std::string& pPath) {
74 Clear();

Callers

nothing calls this directly

Calls 2

GetCampaignDataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected