From e1322d711b8305cb5e4d9a34cda566bc47b4532e Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 23 Dec 2023 21:14:59 +0100 Subject: [PATCH] (Android) Added support for running custom event scripts --- es-core/src/Scripting.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-core/src/Scripting.cpp b/es-core/src/Scripting.cpp index cf575a62f..7eff423d9 100644 --- a/es-core/src/Scripting.cpp +++ b/es-core/src/Scripting.cpp @@ -89,7 +89,11 @@ namespace Scripting .append(arg4) .append(arg4Quotation); LOG(LogDebug) << "Executing: " << script; +#if defined(__ANDROID__) + Utils::Platform::runSystemCommand("sh " + script); +#else Utils::Platform::runSystemCommand(script); +#endif } } }