◆ updateSavefilesList()
Refresh the save files list (because some new files might have been added) and remember the "locked" files list. These files cannot be used for saving or loading because they are being synced by CloudManager.
Implements Common::SaveFileManager.
◆ openRawFile()
Open the file with the specified name in the given directory for loading. In contrast to openForLoading(), it returns a raw file instead of unpacked.
- Parameters
-
name | Name of the save file. |
- Returns
- Pointer to an InSaveFile, or NULL if an error occurred.
Implements Common::SaveFileManager.
◆ openForSaving()
Open the save file with the specified name
in the given directory for saving.
Saved games are compressed by default, and engines are expected to always write compressed saves.
A notable exception is when uncompressed files are needed for compatibility with games not supported by ScummVM, such as character exports from the Quest for Glory series. QfG5 is a 3D game and will not be supported by ScummVM.
- Parameters
-
name | Name of the save file. |
compress | Whether to compress the resulting save file (default) or not. |
- Returns
- Pointer to an OutSaveFile, or NULL if an error occurred.
Implements Common::SaveFileManager.
◆ openForLoading()
Open the file with the specified name
in the given directory for loading.
- Parameters
-
name | Name of the save file. |
- Returns
- Pointer to an InSaveFile, or NULL if an error occurred.
Implements Common::SaveFileManager.
◆ removeSavefile()
Remove the given save file from the system.
- Parameters
-
name | Name of the save file to be removed. |
- Returns
- True if no error occurred, false otherwise.
Implements Common::SaveFileManager.
◆ listSavefiles()
List available save files matching a given pattern.
The pattern format is based on DOS patterns, also known as "glob" in the POSIX world. Refer to the Common::matchString() function for information about the precise pattern format.
- Parameters
-
pattern | Pattern to match. Wildcards like * or ? are allowed. |
- Returns
- List of strings for all present file names.
- See also
- Common::matchString()
Implements Common::SaveFileManager.
◆ exists()
Checks if the savefile exists.
- Parameters
-
name | Name of the save file. |
- Returns
- true if the file exists. false otherwise.
Implements Common::SaveFileManager.
The documentation for this class was generated from the following file: