From e8f134ce0161e82db0620719d8e752d3263bbf50 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Sat, 25 May 2024 13:10:12 +0200
Subject: [PATCH] Added the MojoZork RetroArch core as the default emulator for
 the zmachine system on Linux, macOS and Windows

---
 resources/systems/linux/es_systems.xml   | 1 +
 resources/systems/macos/es_systems.xml   | 1 +
 resources/systems/unix/es_systems.xml    | 1 +
 resources/systems/windows/es_systems.xml | 1 +
 4 files changed, 4 insertions(+)

diff --git a/resources/systems/linux/es_systems.xml b/resources/systems/linux/es_systems.xml
index f429942c5..7d157fa12 100644
--- a/resources/systems/linux/es_systems.xml
+++ b/resources/systems/linux/es_systems.xml
@@ -2264,6 +2264,7 @@
         <fullname>Infocom Z-machine</fullname>
         <path>%ROMPATH%/zmachine</path>
         <extension>.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .z7 .Z7 .z8 .Z8 .zlb .ZLB .zblorb .ZBLORB</extension>
+        <command label="MojoZork">%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/mojozork_libretro.so %ROM%</command>
         <command label="Gargoyle (Standalone)">%EMULATOR_GARGOYLE% %ROM%</command>
         <platform>zmachine</platform>
         <theme>zmachine</theme>
diff --git a/resources/systems/macos/es_systems.xml b/resources/systems/macos/es_systems.xml
index 94153e818..ea706f425 100644
--- a/resources/systems/macos/es_systems.xml
+++ b/resources/systems/macos/es_systems.xml
@@ -2151,6 +2151,7 @@
         <fullname>Infocom Z-machine</fullname>
         <path>%ROMPATH%/zmachine</path>
         <extension>.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .z7 .Z7 .z8 .Z8 .zlb .ZLB .zblorb .ZBLORB</extension>
+        <command label="MojoZork">%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/mojozork_libretro.dylib %ROM%</command>
         <command label="Gargoyle (Standalone)">%EMULATOR_GARGOYLE% %ROM%</command>
         <platform>zmachine</platform>
         <theme>zmachine</theme>
diff --git a/resources/systems/unix/es_systems.xml b/resources/systems/unix/es_systems.xml
index 73e9c51e8..738cf360b 100644
--- a/resources/systems/unix/es_systems.xml
+++ b/resources/systems/unix/es_systems.xml
@@ -2222,6 +2222,7 @@
         <fullname>Infocom Z-machine</fullname>
         <path>%ROMPATH%/zmachine</path>
         <extension>.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .z7 .Z7 .z8 .Z8 .zlb .ZLB .zblorb .ZBLORB</extension>
+        <command label="MojoZork">%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/mojozork_libretro.so %ROM%</command>
         <command label="Gargoyle (Standalone)">%EMULATOR_GARGOYLE% %ROM%</command>
         <platform>zmachine</platform>
         <theme>zmachine</theme>
diff --git a/resources/systems/windows/es_systems.xml b/resources/systems/windows/es_systems.xml
index 2e6367f7e..8e5024025 100644
--- a/resources/systems/windows/es_systems.xml
+++ b/resources/systems/windows/es_systems.xml
@@ -2241,6 +2241,7 @@
         <fullname>Infocom Z-machine</fullname>
         <path>%ROMPATH%\zmachine</path>
         <extension>.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .z7 .Z7 .z8 .Z8 .zlb .ZLB .zblorb .ZBLORB</extension>
+        <command label="MojoZork">%EMULATOR_RETROARCH% -L %CORE_RETROARCH%\mojozork_libretro.dll %ROM%</command>
         <command label="Gargoyle (Standalone)">%STARTDIR%=%EMUDIR% %EMULATOR_GARGOYLE% %ROM%</command>
         <platform>zmachine</platform>
         <theme>zmachine</theme>