From 6f73f7381d8367708434b9eb6d00b045eb6a15f8 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Tue, 6 Feb 2024 17:18:38 +0100
Subject: [PATCH] (Android) Added Play! standalone as an alternative emulator
 for the ps2 system

---
 resources/systems/android/es_find_rules.xml | 6 ++++++
 resources/systems/android/es_systems.xml    | 1 +
 2 files changed, 7 insertions(+)

diff --git a/resources/systems/android/es_find_rules.xml b/resources/systems/android/es_find_rules.xml
index cdf26c279..543a93794 100644
--- a/resources/systems/android/es_find_rules.xml
+++ b/resources/systems/android/es_find_rules.xml
@@ -148,6 +148,12 @@
             <entry>com.PceEmu/com.imagine.BaseActivity</entry>
         </rule>
     </emulator>
+    <emulator name="PLAY!">
+        <!-- Sony PlayStation 2 emulator Play! -->
+        <rule type="androidpackage">
+            <entry>com.virtualapplications.play/.MainActivity</entry>
+        </rule>
+    </emulator>
     <emulator name="PPSSPP">
         <!-- Sony PlayStation Portable emulator PPSSPP -->
         <rule type="androidpackage">
diff --git a/resources/systems/android/es_systems.xml b/resources/systems/android/es_systems.xml
index 42b61455c..382cbf8c6 100644
--- a/resources/systems/android/es_systems.xml
+++ b/resources/systems/android/es_systems.xml
@@ -1314,6 +1314,7 @@
         <path>%ROMPATH%/ps2</path>
         <extension>.bin .BIN .chd .CHD .ciso .CISO .cso .CSO .dump .DUMP .elf .ELF .gz .GZ .m3u .M3U .mdf .MDF .img .IMG .iso .ISO .isz .ISZ .ngr .NRG</extension>
         <command label="AetherSX2 (Standalone)">%EMULATOR_AETHERSX2% %ACTION%=android.intent.action.MAIN %EXTRA_bootPath%=%ROMSAF%</command>
+        <command label="Play! (Standalone)">%EMULATOR_PLAY!% %ACTION%=android.intent.action.VIEW %DATA%=%ROMPROVIDER%</command>
         <platform>ps2</platform>
         <theme>ps2</theme>
     </system>