From 34630a4103b7815e5aa18a7f1b078e1824e5fc38 Mon Sep 17 00:00:00 2001 From: a1batross Date: Sat, 9 Aug 2025 20:44:03 +0500 Subject: [PATCH] Restore `lib` prefix on Android, as it's required by the package manager. Otherwise, it skips unpacking libraries without the prefix. (#721) --- src/engine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine.cpp b/src/engine.cpp index b538e2e..1f290dd 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -831,7 +831,11 @@ bool Game::loadCSBinary () { if (libSuffix.empty ()) libs.insert (0, { "mp", "cs", "cs_i386" }); else { - libs.insert (0, { "mp", "cs" }); + // 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) { lib += libSuffix;