If the save is present, back to the title

Hi all,
I use this script for skip the title:
Code:
#==============================================================================
# Skip Title Screen                                           JV Master Script
#------------------------------------------------------------------------------
# Skip Title Screen, going to first game map.
#==============================================================================

#==============================================================================
# Scene Title
#==============================================================================
class Scene_Title < Scene_Base
  def start
    SceneManager.clear
    Graphics.freeze
    DataManager.setup_new_game
    $game_map.autoplay
    SceneManager.goto(Scene_Map)
  end
 
  def terminate
    SceneManager.snapshot_for_background
    Graphics.fadeout(Graphics.frame_rate)
  end
end
#==============================================================================
It is possible in some way, if there is a save, start the game from title?
The operation has to be this:
- The game starts without the title, with an intro on the map.
- When the player makes the first save and close the game, when it re-opens, the title appears to start a new game or load your last save.
This script I wrote should help you.
Code:
class Scene_Title < Scene_Base
  def start
    if DataManager.save_file_exists?
      super
      SceneManager.clear
      Graphics.freeze
      create_background
      create_foreground
      create_command_window
      play_title_music
    else
      SceneManager.clear
      Graphics.freeze
      DataManager.setup_new_game
      $game_map.autoplay
      SceneManager.goto(Scene_Map)
    end
  end
 
  def terminate
    if DataManager.save_file_exists?
      super
      SceneManager.snapshot_for_background
      dispose_background
      dispose_foreground
    else
      SceneManager.snapshot_for_background
      Graphics.fadeout(Graphics.frame_rate)
    end
  end
end
class Scene_Title < Scene_Base def start if DataManager.save_file_exists? super SceneManager.clear Graphics.freeze create_background create_foreground create_command_window play_title_music else SceneManager.clear Graphics.freeze DataManager.setup_new_game $game_map.autoplay SceneManager.goto(Scene_Map) end end def terminate if DataManager.save_file_exists? super SceneManager.snapshot_for_background dispose_background dispose_foreground else SceneManager.snapshot_for_background Graphics.fadeout(Graphics.frame_rate) end end end
Thank you @vFoggy 😀
Work perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/if-the-save-is-present-back-to-the-title.75854/