[android][desktop] Replaced MapsWithMe folder with OMapsData.

Signed-off-by: vng <viktor.govako@gmail.com>
This commit is contained in:
vng 2021-02-20 16:07:45 +03:00 committed by Roman Tsisyk
parent 2c8bffeb07
commit 9debf0873a
5 changed files with 7 additions and 7 deletions

View file

@ -27,9 +27,9 @@ public:
void OnExternalStorageStatusChanged(bool isAvailable);
/// get storage path without ending "/MapsWithMe/"
/// get storage path without ending "/OMapsData/"
std::string GetStoragePathPrefix() const;
/// assign storage path (should contain ending "/MapsWithMe/")
/// assign storage path (should contain ending "/OMapsData/")
void SetWritableDir(std::string const & dir);
void SetSettingsDir(std::string const & dir);

View file

@ -70,7 +70,7 @@ public final class Constants
}
public static final String MWM_DIR_POSTFIX = "/MapsWithMe/";
public static final String MWM_DIR_POSTFIX = "/OMapsData/";
public static final String CACHE_DIR = "cache";
public static final String FILES_DIR = "files";

View file

@ -85,7 +85,7 @@ bool CreateZipFromPathDeflatedAndDefaultCompression(std::string const & filePath
if (!strings::IsASCIIString(fileName))
fileName = "MapsMe.kml";
if (zip::Code::Ok != zip::OpenNewFileInZip(zip.Handle(), fileName, zipInfo, "ZIP from MapsWithMe",
if (zip::Code::Ok != zip::OpenNewFileInZip(zip.Handle(), fileName, zipInfo, "ZIP from OMaps",
Z_DEFLATED, Z_DEFAULT_COMPRESSION))
{
return false;

View file

@ -85,9 +85,9 @@ Platform::Platform()
NSString * supportDir = [dirPaths objectAtIndex:0];
m_writableDir = supportDir.UTF8String;
#ifdef BUILD_DESIGNER
m_writableDir += "/OMaps.Designer/";
m_writableDir += "/OMapsData.Designer/";
#else // BUILD_DESIGNER
m_writableDir += "/MapsWithMe/";
m_writableDir += "/OMapsData/";
#endif // BUILD_DESIGNER
::mkdir(m_writableDir.c_str(), 0755);
}

View file

@ -262,6 +262,6 @@ int main(int argc, char * argv[])
}
#endif // BUILD_DESIGNER
LOG_SHORT(LINFO, ("MapsWithMe finished with code", returnCode));
LOG_SHORT(LINFO, ("OMaps finished with code", returnCode));
return returnCode;
}