| Summary: | Android: loading native libs directly from apk generated by bundletool | ||
|---|---|---|---|
| Product: | SDL | Reporter: | akk0rd87 <amkad87> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amkad87, sylvain.becker |
| Version: | HG 2.1 | ||
| Hardware: | All | ||
| OS: | Android (All) | ||
| Attachments: |
Patch to fix this bug
Patch with SDL_strrchr and without check "*(library_name + 1)" Patch with SDL_strrchr and without check "*(library_name + 1)" |
||
|
Description
akk0rd87
2019-07-25 17:18:50 UTC
Created attachment 3898 [details]
Patch to fix this bug
When deploying android app bundle format uncompressed native libs may not extract from apk to filesystem. In this case we should use lib name without path.
Yes, seems OK to me. Simply: - Use SDL_strrchr in place of strrchr - unneeded check for "*(library_name + 1)"... I need to check and commit. Can do that in a few days.. Created attachment 3899 [details]
Patch with SDL_strrchr and without check "*(library_name + 1)"
Created attachment 3900 [details]
Patch with SDL_strrchr and without check "*(library_name + 1)"
Patch to fix.
Diff with prev patch version:
1. SDL_strrchr instead of strrchr;
2. Removed check "*(library_name + 1)";
3. "library_name = library_name + 1" instead of "++library_name" (may be not all C compilers support ++ operation).
Thanks! applied in https://hg.libsdl.org/SDL/rev/131ea7dcc225 |