Fixed compilation

This commit is contained in:
Deve 2018-08-24 03:27:13 +02:00
parent ad8b30b5d3
commit 8b2a40e914

View File

@ -608,6 +608,7 @@ std::string AssetsAndroid::getPreferredPath(const std::vector<std::string>&
*/
std::string AssetsAndroid::getDataPath()
{
#ifdef ANDROID
std::string data_path = "/data/data/" ANDROID_PACKAGE_NAME;
if (access(data_path.c_str(), R_OK) != 0)
@ -626,4 +627,7 @@ std::string AssetsAndroid::getDataPath()
}
return data_path;
#endif
return "";
}