diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2012-01-06 23:13:29 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:31:23 +0300 |
commit | 3932615f2a7e4539b06b8426028067ca92974776 (patch) | |
tree | 9da613dd8811122b84b14ba0f7195b30ca558053 /platform/platform_win.cpp | |
parent | 99a00dda73a793ef506fcf16ef80f3dab20282ff (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.cpp | 7 |
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() |