Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-03-05 19:14:29 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:38:23 +0300
commitc30ae8eab34ab5de5e7684400f5e9032fa8f3736 (patch)
tree90fb41dd723229f9f761ac5f17f0e28013060845 /platform/platform_win.cpp
parent3a3028d0599fd329dc0068f3487ae63a49380a4b (diff)
different file index pathes
Diffstat (limited to 'platform/platform_win.cpp')
-rw-r--r--platform/platform_win.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/platform_win.cpp b/platform/platform_win.cpp
index 271a5f1a07..ddddc4ebfa 100644
--- a/platform/platform_win.cpp
+++ b/platform/platform_win.cpp
@@ -4,6 +4,7 @@
#include "../base/logging.hpp"
#include "../coding/file_writer.hpp"
+#include "../coding/file_name_utils.hpp"
#include "../std/windows.hpp"
#include "../std/bind.hpp"
@@ -86,6 +87,12 @@ Platform::Platform()
LOG(LDEBUG, ("Settings Directory:", m_settingsDir));
}
+string Platform::WritablePathForFileIndexes(string const & country_name) const
+{
+ string dir = WritableDir() + country_name + my::GetNativeSeparator();
+ return dir;
+}
+
bool Platform::IsFileExistsByFullPath(string const & filePath)
{
return ::GetFileAttributesA(filePath.c_str()) != INVALID_FILE_ATTRIBUTES;