Additional info on save file

I am making an RPG-like game and I would like the save file to show the location of the player(not the actual map name, just the display name). I have seen Yanfly's plugin, but that one has way too much information. I just need a normal save file, except that it shows the display name of the map the player is in currently above the playtime counter.
Moved to: RGSS3 Script Requests

You should probably come back and finish that post, or you won't get anything.
Moved to: RGSS3 Script Requests

You should probably come back and finish that post, or you won't get anything.
oh sorry something weird happened on firefox and I thought it wouldn't post but I guess it did.
Add this above Main:

Code:
module DataManager

  class << self
    alias shaz_datamanager_make_save_header make_save_header
  end

  def self.make_save_header
    header = shaz_datamanager_make_save_header
    header[:mapname] = $game_map.display_name   
    header
  end
end

class Window_SaveFile < Window_Base
  alias shaz_window_savefile_refresh refresh

  def refresh
    shaz_window_savefile_refresh
    draw_mapname(0, contents.height - (line_height * 2), contents.width - 4, 2)
  end

  def draw_mapname(x, y, width, align)
    header = DataManager.load_header(@file_index)
    return unless header
    return unless header[:mapname]
    draw_text(x, y, width, line_height, header[:mapname], align)
  end
end

This should not require you to delete your previous saves - they just won't have a map name in the save menu, until you re-save them.
I have posted another script that allows you to automatically change all of your current saved games on your behalf. It is a temporary script and has no GUI but just an empty background. Remove it once it has finished the process and shows your the typical Title scene menu or the animated map one.

Original thread: https://forums.rpgmakerweb.com/threads/additional-info-on-save-file.156415/