diff options
| author | Eugene Sandulenko | 2007-12-28 07:37:04 +0000 |
|---|---|---|
| committer | Eugene Sandulenko | 2007-12-28 07:37:04 +0000 |
| commit | d4d072fe0484918b6caf4571b933a9b374177e5b (patch) | |
| tree | 723ec83a76c9a7bb5d0fc381a69a5c60c8b542a2 /common | |
| parent | 26913c30574c688a4761714a973bee684bfc1b7c (diff) | |
| download | scummvm-rg350-d4d072fe0484918b6caf4571b933a9b374177e5b.tar.gz scummvm-rg350-d4d072fe0484918b6caf4571b933a9b374177e5b.tar.bz2 scummvm-rg350-d4d072fe0484918b6caf4571b933a9b374177e5b.zip | |
Patch #1857121: Refactoring of the getSavePath method
svn-id: r30032
Diffstat (limited to 'common')
| -rw-r--r-- | common/savefile.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/common/savefile.h b/common/savefile.h index 58ac48ea4a..4f9288ac05 100644 --- a/common/savefile.h +++ b/common/savefile.h @@ -109,7 +109,15 @@ public: * @return A string describing the last error. */ virtual String getErrorDesc() { return _errorDesc; } - + + /** + * Returns the last ocurred error description. If none ocurred, returns 0. + * Also clears the last error state and description. + * + * @return A string describing the last error. + */ + virtual String popErrorDesc(); + /** * Open the file with name filename in the given directory for saving. * @param filename the filename @@ -145,13 +153,6 @@ public: * returns a list of strings for all present file names. */ virtual Common::StringList listSavefiles(const char *regex) = 0; - - /** - * Get the path to the save game directory. - * Should only be used for error messages, *never* to construct file paths - * from it, since that is highly unportable! - */ - virtual const char *getSavePath() const; }; } // End of namespace Common |
