I'm like a dog with a bone - I cant let stuff go -
So - I coded a solution - for anyone else in my situation and wants to boot with "Favourites" on, regardless of what you had last run -
I created a simple AHK - that needs to run before PinballX - so I put it in the PinballX.bat file like so :
start /min set_favs.exe
start "" pinballx.exe
The set_favs.ahk AHK looks like this, and has to be compiled - we need to modify the PinballX ini file before PinballX runs, which is why we have to use the .bat file .
FileRead, configfile, c:\PinballX\Config\PinballX.ini
if not ErrorLevel ; Successfully loaded.
{
found:=regexmatch(configfile,"filter_favorites=False")
if ( found > 0 )
{
StringReplace, configfile, configfile, filter_favorites=False , filter_favorites=True
configfile:=RegExReplace(configfile, "filtername=(.*)" , "filtername=Favourite Tables")
configfile:=RegExReplace(configfile, "lastselected=(.*)" , "lastselected=")
FileMove, c:\PinballX\Config\PinballX.ini, c:\PinballX\Config\PinballX.bak, 1
FileAppend, %configfile%, c:\PinballX\Config\PinballX.ini
DllCall("FlushFileBuffers")
}
}
ExitApp
This all presumes your PinballX install is in c:\PinballX
And thats it - Favourites will always be set on boot, or restart, regardless.
Just watch "Favourites" spelling. I'm in the UK, so I use British spelling. I've changed it in the settings to use the correct local spelling - so if you use this, and you are in the US, make sure you change "Favourite" in the code above to "Favorite"