diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-04-17 18:13:40 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:37:28 +0300 |
commit | 465184b9d8317d4829ed4060fb0b1d4698ada053 (patch) | |
tree | 94aa802cffc0e5be5d94b20cf74bfe4de3a2c52b /platform/platform.hpp | |
parent | 7964b599dd0728adc682bd79de147ca5272b728a (diff) |
[android] implemented UniqueClientId
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r-- | platform/platform.hpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp index 7cb1be9269..ae49facd59 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -35,17 +35,10 @@ protected: /// Internal function to use files from writable dir /// if they override the same file in the resources dir - string ReadPathForFile(string const & file) const - { - string fullPath = m_writableDir + file; - if (!IsFileExistsByFullPath(fullPath)) - { - fullPath = m_resourcesDir + file; - if (!IsFileExistsByFullPath(fullPath)) - MYTHROW(FileAbsentException, ("File doesn't exist", fullPath)); - } - return fullPath; - } + string ReadPathForFile(string const & file) const; + + /// Hash some unique string into uniform format. + static string HashUniqueID(string const & s); public: Platform(); |