From 31fc6c33e6eac440d355e11e24ed259ad8c3aef0 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Fri, 25 Jun 2021 11:46:13 +0200
Subject: [PATCH] (Windows) Updated es_find_rules.xml to work better with
 portable installations.

---
 resources/systems/windows/es_find_rules.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/resources/systems/windows/es_find_rules.xml b/resources/systems/windows/es_find_rules.xml
index b3f6dc384..657d47602 100644
--- a/resources/systems/windows/es_find_rules.xml
+++ b/resources/systems/windows/es_find_rules.xml
@@ -15,6 +15,7 @@
       <entry>C:\Program Files (x86)\RetroArch-Win64\retroarch.exe</entry>
       <entry>C:\Program Files (x86)\RetroArch\retroarch.exe</entry>
       <!-- Portable installation -->
+      <entry>%ESPATH%\..\RetroArch-Win64\retroarch.exe</entry>
       <entry>%ESPATH%\..\RetroArch\retroarch.exe</entry>
     </rule>
   </emulator>
@@ -25,6 +26,8 @@
     </rule>
     <rule type="staticpath">
       <entry>~\AppData\Local\yuzu\yuzu-windows-msvc\yuzu.exe</entry>
+      <!-- Portable installation -->
+      <entry>%ESPATH%\..\yuzu\yuzu-windows-msvc\yuzu.exe</entry>
     </rule>
   </emulator>
   <core name="RETROARCH">