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/settings.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/settings.cpp')
-rw-r--r-- | platform/settings.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/settings.cpp b/platform/settings.cpp index 67bbf18753..d70b3273a8 100644 --- a/platform/settings.cpp +++ b/platform/settings.cpp @@ -23,7 +23,9 @@ namespace Settings try { string str; - ReaderPtr<Reader>(GetPlatform().GetReader(SETTINGS_FILE_NAME)).ReadAsString(str); + { + FileReader(GetPlatform().SettingsPathForFile(SETTINGS_FILE_NAME)).ReadAsString(str); + } istringstream stream(str); string line; while (stream.good()) @@ -53,7 +55,7 @@ namespace Settings // @TODO add mutex try { - FileWriter file(GetPlatform().WritablePathForFile(SETTINGS_FILE_NAME)); + FileWriter file(GetPlatform().SettingsPathForFile(SETTINGS_FILE_NAME)); for (ContainerT::const_iterator it = m_values.begin(); it != m_values.end(); ++it) { string line(it->first); |