Skip to content

PS4FileSystem

Source: Assets/UpscaleSDK/Platform/PS4/Saves/PS4FileSystem.cs

class PS4FileSystem

Represents a ps4 file system class.

Events

public event Action<int, string> OnReadError

Occurs when read error.

public event Action<int, string> OnWriteError

Occurs when write error.

public event Action<string> OnFileReadFinished

Occurs when file read finished.

public event Action<FileEntry[]> OnFilesFound

Occurs when files found.

Methods

public void Write(string fileName, string extension, string data)

Writes data to a file in the PS4 save data system.

Parameters

Name Description
data Data that will be saved

public bool Read(string fileName, string extension)

Reads data from a file in the PS4 save data system. The result will be provided via the OnFileReadFinished event.

Parameters

Name Description
fileName The file name.
extension The extension.

Returns: True if the read operation was initiated successfully, false otherwise.

public void StartFileSearch()

Starts a search for save files in the PS4 save data system. The results will be provided via the OnFilesFound event.