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:
authorAlex Zolotarev <deathbaba@gmail.com>2012-01-06 23:13:29 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:31:23 +0300
commit3932615f2a7e4539b06b8426028067ca92974776 (patch)
tree9da613dd8811122b84b14ba0f7195b30ca558053 /platform/platform_win.cpp
parent99a00dda73a793ef506fcf16ef80f3dab20282ff (diff)
Added Platform::TmpPathForFile() and Platform::SettingsPathForFile()
Closed #492 - Save viewport on Android when external memory is ejected
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 62934716b2..4edfe71d71 100644
--- a/platform/platform_win.cpp
+++ b/platform/platform_win.cpp
@@ -73,8 +73,15 @@ Platform::Platform()
}
FileWriter::DeleteFileX(m_resourcesDir + "mapswithmetmptestfile");
+ m_settingsDir = m_writableDir;
+ char pathBuf[MAX_PATH] = {0};
+ GetTempPathA(MAX_PATH, pathBuf);
+ m_tmpDir = pathBuf;
+
LOG(LDEBUG, ("Resources Directory:", m_resourcesDir));
LOG(LDEBUG, ("Writable Directory:", m_writableDir));
+ LOG(LDEBUG, ("Tmp Directory:", m_tmpDir));
+ LOG(LDEBUG, ("Settings Directory:", m_settingsDir));
}
Platform::~Platform()