Delete libchildprocess_ai when updating apk
This commit is contained in:
parent
674cfff070
commit
1e3313068f
@ -517,11 +517,18 @@ void AssetsAndroid::removeData()
|
|||||||
|
|
||||||
if (!data_path.empty())
|
if (!data_path.empty())
|
||||||
{
|
{
|
||||||
const std::string child_path = data_path + "/files/libchildprocess.so";
|
const std::vector<std::string> child_paths =
|
||||||
|
|
||||||
if (m_file_manager->fileExists(child_path))
|
|
||||||
{
|
{
|
||||||
Log::info("AssetsAndroid", "Deleting old libchildprocess: %s",
|
data_path + "/files/libchildprocess.so",
|
||||||
|
data_path + "/files/libchildprocess_ai.so"
|
||||||
|
};
|
||||||
|
|
||||||
|
for (auto child_path : child_paths)
|
||||||
|
{
|
||||||
|
if (!m_file_manager->fileExists(child_path))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
Log::info("AssetsAndroid", "Deleting old childprocess: %s",
|
||||||
child_path.c_str());
|
child_path.c_str());
|
||||||
m_file_manager->removeFile(child_path);
|
m_file_manager->removeFile(child_path);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user