diff --git a/es-configs/es_systems.xml b/es-configs/es_systems.xml
index 956a593f..3bf2a4fb 100644
--- a/es-configs/es_systems.xml
+++ b/es-configs/es_systems.xml
@@ -83,7 +83,7 @@
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/cap32_libretro.so %ROM%
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/crocods_libretro.so %ROM%
%STARTDIR%=~/.CPCemu %EMULATOR_CPCEMU% %ROM%
-
+ %STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/amstradcpc cpc6128 -flop1 %ROM%
amstradcpc
amstradcpc
@@ -216,7 +216,7 @@
%ROMPATH%/atari7800
.a78 .A78 .bin .BIN .7z .7Z .zip .ZIP
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/prosystem_libretro.so %ROM%
-
+ %STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/atari7800 a7800 -cart %ROM%
atari7800
atari7800
@@ -236,7 +236,7 @@
%ROMPATH%/atarijaguar
.abs .ABS .bin .BIN .cdi .CDI .cof .COF .cue .CUE .j64 .J64 .jag .JAG .prg .PRG .rom .ROM .7z .7Z .zip .ZIP
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/virtualjaguar_libretro.so %ROM%
-
+ %STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/atarijaguar jaguar -cart %ROM%
atarijaguar
@@ -336,7 +336,7 @@
.chd .CHD .cue .CUE .iso .ISO
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/same_cdi_libretro.so %ROM%
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/cdi2015_libretro.so %ROM%
-
+ %STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/cdimono1 cdimono1 -cdrom %ROM%
cdimono1
cdimono1
@@ -398,7 +398,7 @@
%ROMPATH%/consolearcade
.arcadedef .desktop .iso .ISO .sh .xbe .XBE .7z .7Z .zip .ZIP
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/mame_libretro.so %ROM%
-
+ %STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/consolearcade %BASENAME%
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/flycast_libretro.so %ROM%
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/kronos_libretro.so %ROM%
@@ -493,20 +493,20 @@
crvision
-
+
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/mame_libretro.so %ROM%
%STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/daphne %BASENAME%
daphne, arcade
daphne
--->
+
doom
Doom
@@ -678,18 +678,18 @@
fm7
-->
-
%STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/fmtowns fmtowns %BASENAME%
fmtowns
fmtowns
--->
+
-
+
gameandwatch
Nintendo Game and Watch
@@ -953,7 +953,7 @@
arcade
mame
-
+
mastersystem
Sega Master System
@@ -1044,7 +1044,6 @@
.7z .7Z .zip .ZIP
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/mame_libretro.so %ROM%
%STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/model2 %BASENAME%
-
arcade
@@ -1784,8 +1783,8 @@
%ROMPATH%/stv
.7z .7Z .zip .ZIP
%EMULATOR_RETROARCH% -L %CORE_RETROARCH%/kronos_libretro.so %ROM%
-
-
+ %EMULATOR_RETROARCH% -L %CORE_RETROARCH%/mame_libretro.so %ROM%
+ %STARTDIR%=~/.mame %EMULATOR_MAME% -rompath %GAMEDIR%\;%ROMPATH%/stv %BASENAME%
arcade
stv
@@ -1826,7 +1825,7 @@
supervision
supervision
-
+
switch
Nintendo Switch
diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml
index 8fa9a5cb..7dbaf301 100644
--- a/net.retrodeck.retrodeck.yml
+++ b/net.retrodeck.retrodeck.yml
@@ -1293,6 +1293,28 @@ modules:
- rd-submodules/shared-modules/gzdoom/gzdoom.json
# SOLARUS - END
+
+ # MAME - Start
+ # https://sdlmame.wallyweek.org/download/
+
+ - name: mame
+ buildsystem: simple
+ build-commands:
+ - ar xv mame*.deb
+ - tar xvf control.tar.zst
+ - tar xvf data.tar.zst
+ - rm -rf usr/share/[applications,docs,games]
+ - cp -r etc ${FLATPAK_DEST}
+ - cp -r usr ${FLATPAK_DEST}
+ - mkdir -p ${FLATPAK_DEST}/bin
+ - ln -s ${FLATPAK_DEST}/usr/games/mame ${FLATPAK_DEST}/bin/mame
+ - chmod +x ${FLATPAK_DEST}/bin/mame
+ sources:
+ - type: file
+ url: https://launchpad.net/~c.falco/+archive/mame/+files/mame_0.258+dfsg.1-0ubuntu1~ppa1~lunar1_amd64.deb
+ sha256: f464a000b286cccc78b3792909edcbdda0f4c8315532f75a108eb07752bc805f
+
+ # MAME - End
# External manifests end