Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: Giacomo1982 on December 23, 2018, 05:16:32 AM

Title: emulator setting for pc_games (portable)
Post by: Giacomo1982 on December 23, 2018, 05:16:32 AM
I'm not able to set Emulator in AM to run .bat files (pc games)

I found this setting in the forum but when I launch the game nothing happens

where I'm wrong?


# Generated by Attract-Mode v2.5.1
#
executable           cmd
args                 /c "[romfilename]"
rompath              ..\..\roms\pc_portable
romext               .bat
system               PC
artwork    boxart          ..\..\artworks\pc_portable\boxart
artwork    cartart         ..\..\artworks\pc_portable\cartart
artwork    flyer           ..\..\artworks\pc_portable\flyer
artwork    snap            ..\..\artworks\pc_portable\snap
artwork    wheel           ..\..\artworks\pc_portable\wheel
Title: Re: emulator setting for pc_games (portable)
Post by: rand0m on December 23, 2018, 10:07:40 AM
"cmd /c" works at my end. Have you tried it with absolute path in rompath?

On second thought you are calling a bat file from a bat file, so try the following:

1.
executable           cmd
args                 /c start "" "[romfilename]"

2.
executable           cmd
args                 /c call "[romfilename]"
Title: Re: emulator setting for pc_games (portable)
Post by: Giacomo1982 on December 23, 2018, 11:14:07 AM
Thanks rand0m your solutions brought me into the right way!

Emulator settings:

executable           cmd
args                 /c start "" "[romfilename]"
rompath              ..\..\roms\pc_portable\
romext               .bat
system               PC




.bat

cd %~dp0
mrboom\Mrboom.exe
exit