mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
Notify user about missing protected mods
This commit is contained in:
parent
fa8627a22b
commit
dc78883451
@ -380,6 +380,11 @@ struct ModInfo {
|
|||||||
.Hash = entry["hash"],
|
.Hash = entry["hash"],
|
||||||
.HashAlgorithm = entry["hash_algorithm"],
|
.HashAlgorithm = entry["hash_algorithm"],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (entry.contains("protected")) {
|
||||||
|
modInfo.Protected = entry["protected"];
|
||||||
|
}
|
||||||
|
|
||||||
modInfos.push_back(modInfo);
|
modInfos.push_back(modInfo);
|
||||||
success = true;
|
success = true;
|
||||||
}
|
}
|
||||||
@ -393,6 +398,7 @@ struct ModInfo {
|
|||||||
size_t FileSize;
|
size_t FileSize;
|
||||||
std::string Hash;
|
std::string Hash;
|
||||||
std::string HashAlgorithm;
|
std::string HashAlgorithm;
|
||||||
|
bool Protected = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
nlohmann::json modUsage = {};
|
nlohmann::json modUsage = {};
|
||||||
@ -544,6 +550,16 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vector<Mo
|
|||||||
WaitForConfirm();
|
WaitForConfirm();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ModInfoIter->Protected && false) {
|
||||||
|
std::string message = "Mod '" + ModInfoIter->FileName + "' is protected and therefore must be placed in the Resources/Caching folder manually here: " + fs::absolute(CachingDirectory).string();
|
||||||
|
|
||||||
|
error(message);
|
||||||
|
UUl(message);
|
||||||
|
Terminate = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CheckForDir();
|
CheckForDir();
|
||||||
std::string FName = ModInfoIter->FileName;
|
std::string FName = ModInfoIter->FileName;
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user