Restore lib prefix on Android, as it's required by the package manager. Otherwise, it skips unpacking libraries without the prefix. (#721)

This commit is contained in:
a1batross 2025-08-09 20:44:03 +05:00 committed by GitHub
commit 34630a4103
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -831,6 +831,10 @@ bool Game::loadCSBinary () {
if (libSuffix.empty ())
libs.insert (0, { "mp", "cs", "cs_i386" });
else {
// on Android, it's important to have `lib` prefix, otherwise package manager won't unpack the libraries
if (plat.android)
libs.insert (0, { "libcs" });
else
libs.insert (0, { "mp", "cs" });
for (auto &lib: libs) {