XSDL: fixed app not starting after app update

This commit is contained in:
Sergii Pylypenko
2020-02-18 23:00:07 +02:00
parent a64f771e39
commit bb387b5f07

View File

@@ -295,7 +295,8 @@ static void symlinkUsrBin(void)
sprintf( libpath, "%s/%s", getenv("LIBDIR"), libname );
sprintf( targetpath, "%s/usr/bin/%s", getenv("APPDIR"), targetname );
__android_log_print(ANDROID_LOG_INFO, "XSDL", "ln -s %s %s", libpath, targetpath);
symlink( libpath, targetpath );
remove(targetpath);
symlink(libpath, targetpath);
}
fclose(mapping);