mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
add persistent storage & completed campaign support
This commit is contained in:
@ -683,6 +683,9 @@ void CServerHandler::startCampaignScenario(std::shared_ptr<CampaignState> cs)
|
||||
auto & epilogue = ourCampaign->scenario(*ourCampaign->lastScenario()).epilog;
|
||||
auto finisher = [=]()
|
||||
{
|
||||
Settings entry = persistent.write["campaign"][ourCampaign->campaignSet][ourCampaign->getFilename()]["completed"];
|
||||
entry->Bool() = true;
|
||||
|
||||
if(!ourCampaign->isCampaignFinished())
|
||||
{
|
||||
GH.windows().pushWindow(CMM);
|
||||
|
Reference in New Issue
Block a user