mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
Add ENABLE_MOBILE_GAMEDB_OVERLAY, defaulting ON for ARM64 Linux (UNIX AND NOT APPLE) and OFF everywhere else, and have pcsx2_copy_runtime_resources copy bin/resources-overlay/armsx2_overrides.yaml next to the executable when it is set. The overlay lives outside the GLOB'd bin/resources/ tree, so desktop GPUs never pick it up; it lands flat as resources/armsx2_overrides.yaml where the GameDatabase override loader already looks for it on every platform (and no-ops when absent, so x86/Windows/macOS builds are unaffected). The gate is architecture+OS, not frontend: ARM64 Linux ships both the Qt and the SDL frontend to handhelds (Rocknix/Batocera Qualcomm/Mali devices, Raspberry Pi), all tilers that want the same mobile GS tuning, so a frontend-based gate would miss the Qt handhelds. Packagers and the dev box can force it either way. Verified on ARM64 Linux: option defaults ON, and a built frontend gets the full 338-entry overlay in its resources/ dir.