From d1fdab4cde72ff9d79ae41e18ea2f22d64e26e78 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sat, 18 Oct 2025 13:43:10 +0900 Subject: [PATCH] Add Android support for SystemService.OpenPlayingManual The heavy lifting will be done on the Java side. Here we just send a message. --- src/hll/SystemService.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hll/SystemService.c b/src/hll/SystemService.c index 7f3888b..834b2d1 100644 --- a/src/hll/SystemService.c +++ b/src/hll/SystemService.c @@ -325,7 +325,10 @@ static void SystemService_OpenPlayingManual(void) { if (!SystemService_IsExistPlayingManual()) { return; } - +#ifdef __ANDROID__ + const int COMMAND_OPEN_PLAYING_MANUAL = 0x8000; + SDL_AndroidSendMessage(COMMAND_OPEN_PLAYING_MANUAL, 0); +#else char *filename = get_manual_filename(); char *real_path = realpath_utf8(filename); @@ -352,6 +355,7 @@ static void SystemService_OpenPlayingManual(void) { free(url); free(path_component); +#endif } //static bool SystemService_IsExistSystemMessage(void);