Need help with Yanfly's System Menu

I'm using the custom switches Yanfly provided in his System Menu script, and it works. However, the "effect" of the switch doesn't survive when you close/re-open the saved game. The switch remains on/off as you set it, but the "effect" of that switch (in the ADDED section below) doesn't carry over. 

I've never taken data from RTP and saved in a config file, so I have no experience with that. 

Can anyone lend a hand? 

Code:
  #--------------------------------------------------------------------------  # change_custom_switch  #--------------------------------------------------------------------------  def change_custom_switch(direction)    value = direction == :left ? false : true    ext = current_ext    current_case = $game_switches[YEA::SYSTEM::CUSTOM_SWITCHES[ext][0]]    $game_switches[YEA::SYSTEM::CUSTOM_SWITCHES[ext][0]] = value    Sound.play_cursor if value != current_case    draw_item(index)        #ADDED    if !$game_switches[25]      $mouse.enabled = false    end    #end ADD      end
don't suppose you could post the original script? Yanfly's dropbox account is throwing errors and I don't have my usb drive that has his scripts on it handy. I can't find any projects on this laptop that has that script in it either.

But taking a blind stab at it.. you want the mouse controls to be remembered per save file? Game_System might be a better place to put that def so it saves. That's where setting type things are stored for the game.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-yanflys-system-menu.25477/