forked from organicmaps/organicmaps
Fix processing both of WorldCoast files obsolete or not
This commit is contained in:
parent
bab7838cc5
commit
e90d97c9a9
1 changed files with 3 additions and 0 deletions
|
@ -1021,6 +1021,9 @@ void Storage::RegisterCountryFiles(TCountryId const & countryId, string const &
|
|||
|
||||
void Storage::RegisterFakeCountryFiles(platform::LocalCountryFile const & localFile)
|
||||
{
|
||||
if (localFile.GetCountryName() == (platform::migrate::NeedMigrate() ? WORLD_COASTS_FILE_NAME : WORLD_COASTS_OBSOLETE_FILE_NAME))
|
||||
return;
|
||||
|
||||
TLocalFilePtr fakeCountryLocalFile = make_shared<LocalCountryFile>(localFile);
|
||||
fakeCountryLocalFile->SyncWithDisk();
|
||||
m_localFilesForFakeCountries[fakeCountryLocalFile->GetCountryFile()] = fakeCountryLocalFile;
|
||||
|
|
Loading…
Add table
Reference in a new issue