fstarred / mame-scripts

A set of scripts to automate tasks such as download and install of mame files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mame-scripts

A set of scripts to automate tasks such as download and installation of mame files

Install mame

Requirements

  1. Powershell >=5.1
  2. 7-Zip Command Line Version (download on 7-zip.org)
  3. Lua (download on Lua Binaries)

Usage

getmame.bat <mameversion>

Features

  1. Download mame from given url
  2. Extract mame archived file to output directory
  3. Generate mame executable shortcut file
  4. Generate mame.ini and write entries taken from paths.lua
  5. Generate ui.ini and write entries taken from paths.lua
  6. 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

  1. 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

  1. 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

About

A set of scripts to automate tasks such as download and install of mame files


Languages

Language:Batchfile 73.5%Language:Lua 26.5%