First attempt at allowing Android users to open/import MWMs directly

Signed-off-by: zyphlar <zyphlar@gmail.com>
This commit is contained in:
zyphlar
2026-01-19 15:09:54 -08:00
parent e56e54f994
commit 1b4e0fa8cc
12 changed files with 602 additions and 5 deletions

View File

@@ -1666,6 +1666,9 @@ void Storage::GetNodeAttrs(CountryId const & countryId, NodeAttrs & nodeAttrs) c
nodeAttrs.m_localMwmCounter += 1;
nodeAttrs.m_localMwmSize += localFile->GetSize(MapFileType::Map);
// For leaf nodes, store the local file version
if (d.ChildrenCount() == 0)
nodeAttrs.m_localMwmVersion = localFile->GetVersion();
});
nodeAttrs.m_present = m_localFiles.find(countryId) != m_localFiles.end();