Added support for loading Ubot Graph data

Fixes #123
This commit is contained in:
jeefo 2020-03-12 14:32:23 +03:00
commit 1f49026198
3 changed files with 5 additions and 3 deletions

View file

@ -1636,7 +1636,7 @@ template <typename U> bool BotGraph::loadStorage (const String &ext, const Strin
file.read (&hdr, sizeof (StorageHeader));
// check the magic
if (hdr.magic != kStorageMagic) {
if (hdr.magic != kStorageMagic && hdr.magic != kStorageMagicUB) {
if (tryReload ()) {
return true;
}