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

Function LoadMission

engine/Poseidon/UI/OptionsUI.cpp:1545–1557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1543 {
1544 return (float)mh.magazines[j].count;
1545 }
1546 }
1547 return 0.0f;
1548}
1549
1550LSError SaveMission(const char* filename)
1551{
1552 // MissionHistory *mh = GetGCampaignHistory().CurrentMission();
1553
1554 ParamArchiveSave ar(CampaignVersion);
1555 PARAM_CHECK(ar.Serialize("Campaign", GetGCampaignHistory(), 1))
1556#if _ENABLE_CHEATS
1557 PARAM_CHECK(ar.Save(filename))
1558#else
1559 if (!ar.SaveBin(filename))
1560 {

Callers 1

AddMissionFunction · 0.70

Calls 3

LoadBinMethod · 0.45
LoadMethod · 0.45
SerializeMethod · 0.45

Tested by

no test coverage detected