Yeah I been messing with this the past few days trying to wrap my head around it and today I finally figured it out after some testing and searching. My second attempt gets every possible variable you could need even just the drive letter where the rom was launched.
I have many ideas now and one of them will be possibility of per game configs for any emulator. now that I got the variable hurdle out of the way time to get coding.?