@Game.ini reading:
I highly suggest using the Win32API provided for that. Here's a wrapper you can use:
http://pastebin.com/mdW8D8fi
One advantage of using this is that you can read and write to the .ini file even if you install the game in the program files folder (something like C:\Program Files (x86)\GameName\Game.ini)
IO access is restricted there. That is the main reason for the scripts putting save files in %APPDATA% instead. (It is of course also better practice to try that place first)
@Gigglemoo:
The problem is that F12 does not reset the game properly and the mechanism for restarting can potentially lead to a bunch of problems.
Enterbrain have generally tried to fix the issue from version to version, but imo it has just gotten worse.
As long as a proper reset is not done the issues continues to persist. Really, the extra loading time for loading all the classes and etc is definitely worth the price compared the entire class of race condition bugs. (Premature optimization, yup)
In XP at least we can convert it to pausing. In VX and Ace we don't have this option, though some symptom treatment has been done in Ace.
I just specifically don't want them using a "restart" button. A "shut down and begin again" button is fine.
For XP and VX you can use this which technically starts a new game instance and shuts down the current:
http://pastebin.com/KdBFd0Cn
It does not work for VX Ace. An adaption have been made though I don't remember who did it or where to find it ._.
*hugs*