diff options
author | Alexander Tkachev | 2016-05-30 20:28:09 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | cc4512e50b5489ec57adc05b3c2277c132bed767 (patch) | |
tree | 10484758cf862dab94377e95fc4a9a8f8685b094 /common | |
parent | aa987e5c52899bfafff4f1f84479a67761569109 (diff) | |
download | scummvm-rg350-cc4512e50b5489ec57adc05b3c2277c132bed767.tar.gz scummvm-rg350-cc4512e50b5489ec57adc05b3c2277c132bed767.tar.bz2 scummvm-rg350-cc4512e50b5489ec57adc05b3c2277c132bed767.zip |
COMMON: Add SaveFileManager::openRawFile()
It's needed for the cloud saves upload/sync feature.
Diffstat (limited to 'common')
-rw-r--r-- | common/savefile.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/savefile.h b/common/savefile.h index 9fca07f9d5..d9c5512b7e 100644 --- a/common/savefile.h +++ b/common/savefile.h @@ -137,6 +137,15 @@ public: virtual InSaveFile *openForLoading(const String &name) = 0; /** + * Open the file with the specified name in the given directory for loading. + * In contrast to openForLoading(), it returns raw file instead of unpacked. + * + * @param name The name of the savefile. + * @return Pointer to an InSaveFile, or NULL if an error occurred. + */ + virtual InSaveFile *openRawFile(const String &name) = 0; + + /** * Removes the given savefile from the system. * * @param name The name of the savefile to be removed. |