That'd be because I missed the return value, woops. One of the many problems with javascripts lack of enforcement. Just a few adjustments should (hopefully) fix that for you. Change the inner lines of your new loadGame function to something like this:
var success = this._oldLoadGame(savegameId); //load the game normally
if (success) {
$gameSwitches.setValue(1, true); //assuming switch 1 is "LOAD GAME", this will turn it on right after you load a game
}
return success;
It needs the return value to confirm whether or not the save file actually loaded, if it fails nothing happens! I think it's using "failed to load" to identify empty save slots, too.
var success = this._oldLoadGame(savegameId); //load the game normally
if (success) {
$gameSwitches.setValue(1, true); //assuming switch 1 is "LOAD GAME", this will turn it on right after you load a game
}
return success;
It needs the return value to confirm whether or not the save file actually loaded, if it fails nothing happens! I think it's using "failed to load" to identify empty save slots, too.
