From 81a90d66f516333c0ab9d117b708f142745bcc12 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 5 Aug 2021 19:45:14 +1000 Subject: [PATCH] HostInterface: Disable rewind on 32-bit ARM/Android --- src/core/host_interface.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index 09c3ae52a..d2faf2bbe 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -693,6 +693,14 @@ void HostInterface::FixIncompatibleSettings(bool display_osd_messages) } #endif +#if defined(__ANDROID__) && defined(__arm__) && !defined(__aarch64__) && !defined(_M_ARM64) + if (g_settings.rewind_enable) + { + AddOSDMessage(TranslateString("OSDMessage", "Rewind is not supported on 32-bit ARM for Android.")); + g_settings.rewind_enable = false; + } +#endif + // rewinding causes issues with mmap fastmem, so just use LUT if ((g_settings.rewind_enable || g_settings.IsRunaheadEnabled()) && g_settings.IsUsingFastmem() && g_settings.cpu_fastmem_mode == CPUFastmemMode::MMap)