FGenericSaveGameSystem

A generic save game system that just uses [IFileManager](API\Runtime\Core\HAL\IFileManager) to save/load with normal files

Windows
MacOS
Linux

Inheritance Hierarchy

ISaveGameSystem

FGenericSaveGameSystem

Syntax

class FGenericSaveGameSystem : public ISaveGameSystem

Remarks

A generic save game system that just uses IFileManager to save/load with normal files

Functions

Name Description

Protected function Virtual

FString

 

GetSaveGamePath

(
    const TCHAR* Name
)

Get the path to save game file for the given name, a platform may be able to simply override this and no other functions above

Overridden from ISaveGameSystem

Name Description

Public function Virtual

bool

 

DeleteGame

(
    bool bAttemptToUseUI,
    const TCHAR* Name,
    const int32 UserIndex
)

Delete an existing save game, blocking until complete

Public function Virtual

bool

 

DoesSaveGameExist

(
    const TCHAR* Name,
    const int32 UserIndex
)

Return true if the named savegame exists (probably not useful with NativeUI

Public function Virtual

ESaveExistsR...

 

DoesSaveGameExistWithResult

(
    const TCHAR* Name,
    const int32 UserIndex
)

Similar to DoesSaveGameExist, except returns a result code with more information.

Public function Virtual

bool

 

LoadGame

(
    bool bAttemptToUseUI,
    const TCHAR* Name,
    const int32 UserIndex,
    TArray< uint8 >& Data
)

Loads the game, blocking until complete

Public function Virtual

bool

 

PlatformHasNativeUI()

Returns true if the platform has a native UI (like many consoles)

Public function Virtual

bool

 

SaveGame

(
    bool bAttemptToUseUI,
    const TCHAR* Name,
    const int32 UserIndex,
    const TArray< uint8 >& Data
)

Saves the game, blocking until complete.

References

Module

Engine

Header

Runtime/Engine/Public/SaveGameSystem.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback