documentation index ◦ reference manual ◦ function index

# renpy.scan_saved_game

Function: | renpy.scan_saved_game | (name):

This scans a single savegame, and returns information about it. If a savegame with the filename name does not exist, this function returns None. Otherwise, it returns a triple consisting of:

- The extra_info that was passed to renpy.save.
- A displayable, the screenshot used to show the game.
- The time the game was saved at, seconds since 1/1/1970 UTC.

## Example

    # Load the quick save if it's less than five minutes old.
    python hide:
        import time
        data = renpy.scan_saved_game("quicksave")
        if data and data[2] + 300 > time.time():
            renpy.load("quicksave")

documentation index ◦ reference manual ◦ function index