mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-04 22:40:05 +00:00
Refuse to run if the specified build name isn't in the patch map
This commit is contained in:
parent
6537e38987
commit
3cfecd9644
@ -1107,6 +1107,13 @@ void TableData::init() {
|
||||
fstream.close();
|
||||
}
|
||||
|
||||
// ensure that there is a patch list for the current build
|
||||
if (patchmap["patchmap"].find(settings::BUILDNAME) == patchmap["patchmap"].end()) {
|
||||
std::cerr << "[FATAL] Build name " << settings::BUILDNAME << " not found in " <<
|
||||
settings::PATCHMAPJSON << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// base JSON tables
|
||||
json xdt, paths, drops, eggs, npcs, mobs, gruntwork;
|
||||
std::pair<json*, std::string> tables[7] = {
|
||||
|
Loading…
Reference in New Issue
Block a user