diff --git a/optional/desktop/MAME64.lnk b/optional/desktop/MAME64.lnk new file mode 100644 index 0000000..8442c3f Binary files /dev/null and b/optional/desktop/MAME64.lnk differ diff --git a/optional/unpack-mame.cmd b/optional/unpack-mame.cmd new file mode 100644 index 0000000..8a4d35f --- /dev/null +++ b/optional/unpack-mame.cmd @@ -0,0 +1,39 @@ + +@echo off + +set T=c:\TEMP +set TOOLS=c:\tools +set ZIP=..\software\mame64.7z +set TARGET=c:\MAME + +if NOT EXIST %ZIP% ( + echo ERROR: %ZIP% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing MAME64 processes... +taskkill /F /IM hakchi.exe 2>nul + +rem create directory ... +mkdir %TARGET% 2>nul + +echo unpacking MAME64 ... +%TOOLS%\7z x -y -aoa -o%T%\mame %ZIP% + +echo moving files ... +move /Y %T%\mame\mame64.exe %TARGET% +move /Y %T%\mame\mame64.sym %TARGET% +mkdir %TARGET%\roms 2>nul +rd /S /Q %T%\mame +echo. + +echo copy desktop link ... +copy /Y desktop\MAME64.lnk "%PUBLIC%\Desktop" + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause