forked from ChadsArcade/VMMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vmmwin.bat
executable file
·43 lines (36 loc) · 1.53 KB
/
vmmwin.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: vmmwin.bat ::
:: ::
:: Chad Gray, Sep 5th 2020 ::
:: ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: Helper file for VMMenu ::
:: Checks whether ROM is for Vectrex or MAME and runs ::
:: the appropriate emulator ::
:: ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@ECHO OFF
set game=%~1
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Check rom name for vectrex file extension ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
if %game:~-4% == .vec goto vectrex
if %game:~-4% == .bin goto vectrex
if %game:~-4% == .gam goto vectrex
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Mame game, run advmame ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:mame
echo Mame Game Detected...
echo Command line: advmame %1
advmame %1
goto end
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Vectrex game, run advmess ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:vectrex
echo Vectrex game detected...
echo Command line: advmess vectrex -cart %1
advmess vectrex -cart %1
:end