android: check if user tries to open known mod and redirect

This commit is contained in:
Alibek Omarov
2026-03-25 00:49:44 +05:00
parent 292f393f99
commit 9f6b571d79
4 changed files with 143 additions and 73 deletions

View File

@@ -153,18 +153,6 @@ public class XashActivity extends SDLActivity {
String argv = getIntent().getStringExtra("argv");
if (argv == null) argv = "-console -log";
// stupid check but should be enough
if (argv.indexOf(" -dll ") < 0 && gamelibdir == null) {
// mobile_hacks hlsdk-portable branch allows us to have few more mods
final List<String> mobile_hacks_gamedirs = Arrays.asList(new String[]{
"aom", "bdlands", "biglolly", "bshift", "caseclosed",
"hl_urbicide", "induction", "redempt", "secret",
"sewer_beta", "tot", "vendetta" });
if (mobile_hacks_gamedirs.contains(gamedir))
argv += " -dll @hl";
}
return argv.split(" ");
}
}