1
General / Re: Windows .bat files wont load in Attract Mode
« on: June 09, 2023, 05:28:17 AM »
I hope this helps the OP.. this works 100% and a lot less messing around..
executable $PROGDIR\Start_Emu.bat
args "[romfilename]" stella_libretro.dll at2600
rompath $PROGDIR\roms
romext .a26;.zip
system a2600;Atari 2600
info_source listsoftware
artwork flyer $PROGDIR/extras/boxart
artwork marquee
artwork snap $PROGDIR/extras/videos
artwork wheel
for completeness.. near the start of my 'universal loader' batch (currently rewriting to a windows executable instead, but meanwhile...)
rem clear variables we are using
set game_file=
set core_name=
set emu_name=
rem check if user forgot to pass parameter
if [%1] == [] goto bad_filename
if [%2] == [] goto bad_filename
if [%3] == [] goto bad_filename
echo filename passed along was: %1 >>last_game_played.txt
set game_file=%1%
echo code name passed along was: %2 >>last_game_played.txt
set core_name=%2%
echo emulator name passed along was %3 >>last_game_played.txt
set emu_name=%3%
rem front end keeps putting / in filename!!!!! Let's fix that..
set game_file=%game_file:/=\%
**note that last line above.. AM puts / instead of windows/dos \ **
executable $PROGDIR\Start_Emu.bat
args "[romfilename]" stella_libretro.dll at2600
rompath $PROGDIR\roms
romext .a26;.zip
system a2600;Atari 2600
info_source listsoftware
artwork flyer $PROGDIR/extras/boxart
artwork marquee
artwork snap $PROGDIR/extras/videos
artwork wheel
for completeness.. near the start of my 'universal loader' batch (currently rewriting to a windows executable instead, but meanwhile...)
rem clear variables we are using
set game_file=
set core_name=
set emu_name=
rem check if user forgot to pass parameter
if [%1] == [] goto bad_filename
if [%2] == [] goto bad_filename
if [%3] == [] goto bad_filename
echo filename passed along was: %1 >>last_game_played.txt
set game_file=%1%
echo code name passed along was: %2 >>last_game_played.txt
set core_name=%2%
echo emulator name passed along was %3 >>last_game_played.txt
set emu_name=%3%
rem front end keeps putting / in filename!!!!! Let's fix that..
set game_file=%game_file:/=\%
**note that last line above.. AM puts / instead of windows/dos \ **