Browse Source

Update StartUp in initial batch

ONE PATCH! This commit brings us to half of the patching goal: on launch
of the client, we only show ONE "Updating..." message before we enter the
game proper. Go us!
Adam Johnson 11 years ago
parent
commit
34c88190c1
  1. 1
      Sources/Plasma/FeatureLib/pfPatcher/plManifests.cpp
  2. 1
      Sources/Plasma/FeatureLib/pfPatcher/plManifests.h
  3. 13
      Sources/Plasma/PubUtilLib/plNetClient/plNetCliAgeJoiner.cpp

1
Sources/Plasma/FeatureLib/pfPatcher/plManifests.cpp

@ -84,6 +84,7 @@ std::vector<plString> plManifest::EssentialGameManifests()
mfs.push_back("GlobalClothing");
mfs.push_back("GlobalMarkers");
mfs.push_back("GUI");
mfs.push_back("StartUp");
return mfs;
}

1
Sources/Plasma/FeatureLib/pfPatcher/plManifests.h

@ -67,7 +67,6 @@ namespace plManifest
/** Get a vector containing all manifests the game requires to initialize. */
std::vector<plString> EssentialGameManifests();
}
#endif // _plManifests_inc_

13
Sources/Plasma/PubUtilLib/plNetClient/plNetCliAgeJoiner.cpp

@ -224,13 +224,18 @@ void plNCAgeJoiner::Start () {
// if we're linking to startup then set the OfflineAge flag
// so we by-pass the game server
if (StrLen(age.ageDatasetName) == 0 || StrCmpI(age.ageDatasetName, "StartUp") == 0)
if (StrLen(age.ageDatasetName) == 0 || StrCmpI(age.ageDatasetName, "StartUp") == 0) {
nc->SetFlagsBit(plNetClientApp::kLinkingToOfflineAge);
else
// no need to update if we're not using a GameSrv
plgDispatch::MsgSend(new plResPatcherMsg());
} else {
nc->SetFlagsBit(plNetClientApp::kLinkingToOfflineAge, false);
plAgeLoader* al = plAgeLoader::GetInstance();
al->UpdateAge(age.ageDatasetName);
// we only need to update the age if we're using a GameSrv
plAgeLoader* al = plAgeLoader::GetInstance();
al->UpdateAge(age.ageDatasetName);
}
}
//============================================================================

Loading…
Cancel
Save