Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: placebo_yue on June 22, 2021, 08:49:35 AM

Title: Multi-emulator setting?
Post by: placebo_yue on June 22, 2021, 08:49:35 AM
I asked this on the themes subforum but i probably should've asked here.
Is there a way (AKA did someone come up with a plugin) to have more than one .exe in a single emulator? meaning, swapping between snes9x and bsnes inside the same AM "emulator".
I'd like to have the option to go back and forth between the two, i already have the savestates and such set up and working. All i need is for a way to avoid having to create duplicate emulators inside AM just for this thing.

sorry for spamming this across two subforums i'm excited about the idea
Title: Re: Multi-emulator setting?
Post by: hermine.potter on June 23, 2021, 07:49:52 AM
Something similar:

You can add another .exe in same display as told as here (http://forum.attractmode.org/index.php?topic=4014.msg28057#msg28057):
-set snes9x as usual in display executable and command arguments
-set a button in controls for : "Edit Game"
-press this button in display gamelist
-in this Edit Menu, set executable and command arguments for this specifc game for BSNES
-if not longer necessary : remove it from Edit Menu

OR

Switch between configurations. Problem is, that attract must be closed.
-create two cfg-files each system:
C:\attract\emulators\TwoSystems\BSNES.cfg
C:\attract\emulators\TwoSystems\SNES9X.cfg

-create two batch-files each system:
C:\attract\emulators\TwoSystems\CHANGE_BSNES.bat
Code: [Select]
@echo off
taskkill /F /IM "attract.exe"
copy /Y "C:\attract\emulators\TwoSystems\BSNES.cfg" "C:\attract\emulators\SNES.cfg"
cd "C:\attract"
start "" "attract.exe"
C:\attract\emulators\TwoSystems\CHANGE_SNES9X.bat
Code: [Select]
@echo off
taskkill /F /IM "attract.exe"
copy /Y "C:\attract\emulators\TwoSystems\SNES9X.cfg" "C:\attract\emulators\SNES.cfg"
cd "C:\attract"
start "" "attract.exe"

start AM > press TAB key > Plug-Ins > UtilityMenu
Enabled : Yes
Control : u
Item 1 Menu Text : BSNES
Item 1 Command : "C:\attract\emulators\TwoSystems\CHANGE_BSNES.bat"
Item 1 Menu Text : SNES9X
Item 1 Command : "C:\attract\emulators\TwoSystems\CHANGE_SNES9X.bat"

if you press U button in display gamelist, a menu pop up:
if you choose BSNES, the batch-file CHANGE_BSNES starts.
it kills AM window > replace SNES.cfg with the BSNES.cfg > start attract.exe
if you choose SNES9X, the batch-file CHANGE_SNES9X starts.
it kills AM window > replace SNES.cfg with the SNES9X.cfg > start attract.exe