folder structure
-----------------------------------
f:\1\A
f:\1\M
f:\1\Rom\coleco
f:\1\Rom\gba
f:\1\Rom\gbc
f:\1\Rom\nes
f:\1\Rom\snes
f:\1\Rom\sms
f:\1\Rom\smd
console.bat
-----------------------------------
@echo off
rem ext: apple2e-dsk=a2dsk, msx-dsk=msxdsk, msx-rom=msxrom, c64-dsk=d64
rem gba=gba, sms=sms, megadrive=smd, snes=smc, nes=nes, gbc=gbc
set spd=1.0
set eff=scanlineH3
set game=zemmix126.msxrom
rem set game=montez.a2dsk
rem set game=dracula.msxrom
rem set game=aleste.msxdsk
rem set game=DQ12(K).gbc
rem set game=dballadv.gba rem mess too slow, recommend using vba
rem set game=castlevania-aria.gba
rem set game=BubbleBobble.gba
rem set game=bonk1.pce
rem set game=montezuma-coleco.coleco
rem set game=%1
echo.game=%game%
rem ========================================================
for /f "tokens=1,2 delims=." %%a in ("%game%") do set rom=%%a&set romext=%%b
set rompath=\1\rom\%romext%\
set media=cart
if %romext% == gbc set devname=gbcolor& set res=300x300& set eff=scanlineHV1
if %romext% == gba set devname=gba& set res=400x300
if %romext% == nes set devname=nes& set res=400x34
if %romext% == smd set devname=megadrij& set res=500x400
if %romext% == sms set devname=smsj& set res=500x400
if %romext% == smc set devname=snes& set res=512x448
if %romext% == pce set devname=pce& set res=512x424
if %romext% == coleco set devname=coleco& set res=512x424& set romext=rom
if %romext% == a2dsk set devname=apple2e& set res=560x384& set eff=scanlineV3& set rompath=\1\a\& set media=flop1& set romext=dsk
if %romext% == msxrom set devname=msx2& set res=512x512& set rompath=\1\m\& set media=cart1& set romext=rom
if %romext% == msxdsk set devname=msx2& set res=512x512& set rompath=\1\m\& set media=flop1& set romext=dsk
set stapath=.\sta\%devname%\
echo %stapath%
echo %devname%
echo %res%
rem goto end
rem %date%에서 모든 하이픈(-)을 지워 버림
set date2=%date:/=%
rem %date2%에서 요일 부분 제거
set date3=%date2:~0,8%
copy %stapath%%rom%-1.sta %stapath%1.sta
copy %stapath%%rom%-2.sta %stapath%2.sta
copy %stapath%%rom%-3.sta %stapath%3.sta
copy %stapath%%rom%-4.sta %stapath%4.sta
copy %stapath%%rom%-5.sta %stapath%5.sta
copy %stapath%%rom%-6.sta %stapath%6.sta
copy %stapath%%rom%-7.sta %stapath%7.sta
copy %stapath%%rom%-8.sta %stapath%8.sta
copy %stapath%%rom%-9.sta %stapath%9.sta
mess %devname% -nokeepaspect -w -resolution %res% -filter -nohlsl_enable -effect %eff% -%media% %rompath%%rom%.%romext% -speed %spd% %*
echo.%devname% -nokeepaspect -w -resolution %res% -filter -nohlsl_enable -effect %eff% -%media% %rompath%%rom%.%romext% -speed %spd% %*
copy %stapath%1.sta %stapath%%rom%-1.sta
copy %stapath%2.sta %stapath%%rom%-2.sta
copy %stapath%3.sta %stapath%%rom%-3.sta
copy %stapath%4.sta %stapath%%rom%-4.sta
copy %stapath%5.sta %stapath%%rom%-5.sta
copy %stapath%6.sta %stapath%%rom%-6.sta
copy %stapath%7.sta %stapath%%rom%-7.sta
copy %stapath%8.sta %stapath%%rom%-8.sta
copy %stapath%9.sta %stapath%%rom%-9.sta
copy %stapath%\1.sta %stapath%\%rom%-%date3%-1.sta
copy %stapath%\2.sta %stapath%\%rom%-%date3%-2.sta
copy %stapath%\3.sta %stapath%\%rom%-%date3%-3.sta
copy %stapath%\4.sta %stapath%\%rom%-%date3%-4.sta
copy %stapath%\5.sta %stapath%\%rom%-%date3%-5.sta
copy %stapath%\6.sta %stapath%\%rom%-%date3%-6.sta
copy %stapath%\7.sta %stapath%\%rom%-%date3%-7.sta
copy %stapath%\8.sta %stapath%\%rom%-%date3%-8.sta
copy %stapath%\9.sta %stapath%\%rom%-%date3%-9.sta
del %stapath%\1.sta
del %stapath%\2.sta
del %stapath%\3.sta
del %stapath%\4.sta
del %stapath%\5.sta
del %stapath%\6.sta
del %stapath%\7.sta
del %stapath%\8.sta
del %stapath%\9.sta
:end
'Retro Game & PC > Emulator' 카테고리의 다른 글
간략한 MESS 사용법 정리 (0) | 2015.01.08 |
---|---|
MESS apple2e keyboard joystick emulation (0) | 2014.12.19 |
old pc emulators (0) | 2014.09.23 |
고전 도스게임용 도스 시스템 에뮬레이션 - QEMU (0) | 2014.09.20 |
MESS Apple][ 에뮬레이션 이미지 비교 - Spy's Demis (0) | 2014.09.19 |