mame-scripts
A set of scripts to automate tasks such as download and installation of mame files
Install mame
Requirements
- Powershell >=5.1
- 7-Zip Command Line Version (download on 7-zip.org)
- Lua (download on Lua Binaries)
Usage
getmame.bat <mameversion>
Features
- Download mame from given url
- Extract mame archived file to output directory
- Generate mame executable shortcut file
- Generate mame.ini and write entries taken from paths.lua
- Generate ui.ini and write entries taken from paths.lua
- Copy default.cfg (if exists) from script directory to mame dir
Editable variables
set url=<url_of_mame_releseas>
set outdir=<root_destination_path_of_mame>
set curdir=<path_dir_of_this_script>
set zipcmd=<zip_command_executable>
set luadir=<lua installation path>
set luaexe=<lua executable filename>
example:
set url=https://github.com/mamedev/mame/releases/download
set outdir=D:\software
set curdir=D:\Software\mame-scripts-main
set zipcmd=7zr.exe
set luadir=D:\Software\lua
set luaexe=lua54.exe
Notes
In case mame archived file is already present in output directory, download step is skipped
Download roms
Requirements
- Powershell >=5.1
Usage
getroms.bat <romname>
Features
Download romname from url
Editable variables
set url=https://www.mamedev.org/roms/%1
set fileext=.zip
set outdir=D:\Emulators\mame\roms
Download data (snap, cabinets, panels)
Requirements
- Powershell >=5.1
Usage
getdata.bat <romname>
Features
Download romname data from url
Editable variables
set cabinets_url=https://archive.org/download/mame-support/Support/Cabinets/cabinets.zip/
set cpanel_url=https://archive.org/download/mame-support/Support/CPanel/cpanel.zip/
set snap_url=https://archive.org/download/mame-support/Support/Snaps/snap.zip/
set fileext=.png
set cabinets_dir=D:\Emulators\mame\cabinets
set cpanels_dir=D:\Emulators\mame\cpanels
set snap_dir=D:\Emulators\mame\snap