continued...HOW I USE MULTIPLE SM2 INI FILESI have a seperate ini file for each game in my SM2 root folder, for eg;
daytona.ini
srallyc.ini
stcc.ini
overrev.ini
indy500.ini
sgt24h.ini
Each ini file has the FFB settings stated in the previous post, as well as the non-FFB settings from the original emulator.ini file.
The basic idea is to rename the specific game ini file to emulator.ini just before the SM2 Emu launches.
Then once the SM2 Emu closes to rename the file back from emulator.ini to the specific game ini filename.
There are probably quite a few ways to do this, I did it as follows but please note that the way I did it is totally specific to my system/setup.
So use as a guide only.
I actually used an AutoHotKey Script as well as a Batch file I mentioned in a previous post.
Here is the script for Daytona;
Sleep 200
WinHide, HyperSpin
SetWorkingDir, C:\Emulation\SM2
FileDelete, emulator.ini ;deletes the original emulator.ini if it is still there
Sleep 1000
FileMove, C:\Emulation\SM2\daytona.ini, C:\Emulation\SM2\emulator.ini ;renames daytona.ini to emulator.ini
Sleep 2000
Run C:\Emulation\SM2\bat\daytona.bat ;runs the specific game [SEE BELOW **BATCH FILE]
Sleep 3000
Process, WaitClose, emulator_multicpu.exe
Sleep 3000
WinShow, HyperSpin
Sleep 200
WinActivate, HyperSpin
Sleep 1000
FileMove, C:\Emulation\SM2\emulator.ini, C:\Emulation\SM2\daytona.ini ;renames emulator.ini back to daytona.ini
I amended the script to work with each game by changing the word daytona to the other game specific ini filename, for eg;
srallyc
stcc
overrev
indy500
sgt24h
I converted the scripts to .exe using AutoHotKey and placed them in a SM2 root subfolder named exe.
I then run this exe through my Frontend... HyperSpin, in my case (see attachment) to run each game.
---
**BATCH FILEI created a batch file for each game and placed them in a SM2 root subfolder named bat.
This is daytona.bat;
start /min emulator_multicpu.exe daytonaThis starts Daytona but also minimizes the SM2 Emu GUI.
Obviously the romname at the end of the command line needed to be changed for each game, for eg;
Sega Rally - start /min emulator_multicpu.exe srallyc
Sega Touring Car - start /min emulator_multicpu.exe stcc
Over Rev - start /min emulator_multicpu.exe overrev
Indy 500 - start /min emulator_multicpu.exe indy500
Super GT 24H - start /min emulator_multicpu.exe sgt24h
I did try to incorporate the command to start and minimize the SM2 Emu in the script without the need for a batch file, but couldn't get it too work as I wanted.
Someone more script-literate than myself may be able to do it though