Skip to content

Android: add RetroAchievements host override receiver#19093

Open
misantronic wants to merge 1 commit into
libretro:masterfrom
misantronic:android-ra-host-override
Open

Android: add RetroAchievements host override receiver#19093
misantronic wants to merge 1 commit into
libretro:masterfrom
misantronic:android-ra-host-override

Conversation

@misantronic

@misantronic misantronic commented Jun 6, 2026

Copy link
Copy Markdown

RAOfflineProxy is an Android app that proxies RetroAchievements traffic through 127.0.0.1, enabling offline softcore achievement play through local caching and later sync.

On Android, controlling the RetroAchievements host override through a broadcast receiver is a cleaner integration point than relying on external tools to patch retroarch.cfg directly.

This makes the host override controllable by another Android app at runtime instead of requiring external file edits, which is more brittle and harder to integrate cleanly.

Summary

  • add an Android broadcast receiver for setting and clearing the RetroAchievements host override
  • persist the override across app restarts
  • apply host and hardcore changes live while RetroArch is already running
  • disable hardcore while the override is active and restore the prior hardcore preference when clearing the override
  • refresh the Achievements menu after live changes so the updated settings are reflected immediately

Testing

  • built and installed the Android aarch64 debug build on device
  • verified SET_RETROACHIEVEMENTS_HOST_OVERRIDE persists cheevos_custom_host and applies the override live while RetroArch is open
  • verified the live apply path disables hardcore while the override is active
  • verified CLEAR_RETROACHIEVEMENTS_HOST_OVERRIDE removes the stored override, reapplies the default host live, and restores the prior hardcore preference
  • verified the host-override broadcasts do not restart the RetroArch process

Related

  • same Android host-override integration already merged for ARMSX2 and released in a nightly build
  • same Android host-override integration already merged for PPSSPP and planned for the next release
  • same integration proposed for Dolphin
  • same integration proposed for melonDS

@misantronic

Copy link
Copy Markdown
Author

The msys2-build-test (MINGW64) job failed after 28 seconds while downloading MSYS2, before any compilation started. It's unrelated to the changes in this PR. Could a maintainer re-run that job?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant