MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CreateMission

Method CreateMission

engine/Poseidon/Network/NetworkServerMission.cpp:206–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 AppendMissionDirWithSubfolders(*active->dirs,
205 std::filesystem::path((const char*)dir) / GameDirs::MPMissions);
206 AppendMissionDirWithSubfolders(*active->dirs, std::filesystem::path((const char*)dir) / "mpmissions");
207 return false;
208 },
209 &ctx);
210
211 AppendMissionDirWithSubfolders(dirs, std::filesystem::path((const char*)GetMPMissionsDir()));
212
213 if (!AppConfig::Instance().IsSimulateMode())
214 {
215 const std::string userDir = GamePaths::Instance().MPMissionsDir();
216 if (!userDir.empty() && std::find(dirs.begin(), dirs.end(), userDir) == dirs.end())
217 {
218 AppendMissionDirWithSubfolders(dirs, std::filesystem::path(userDir));
219 }
220 }
221 return dirs;
222}
223

Callers

nothing calls this directly

Calls 5

CreateMPMissionBankFunction · 0.85
RemoveBankFunction · 0.85
MPCurrentPrefixFunction · 0.85
RStringClass · 0.50
GetLengthMethod · 0.45

Tested by

no test coverage detected