diff options
author | Torbjörn Andersson | 2013-06-28 19:32:59 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2013-06-28 19:32:59 +0200 |
commit | 7c18021c52985aabc4574c633ba6569bbddd648b (patch) | |
tree | e093f783b5b79c396782635060c2d73de1406beb /engines/neverhood/neverhood.h | |
parent | 0658a88737a205b5edacb662a3161e2acd8b7d51 (diff) | |
download | scummvm-rg350-7c18021c52985aabc4574c633ba6569bbddd648b.tar.gz scummvm-rg350-7c18021c52985aabc4574c633ba6569bbddd648b.tar.bz2 scummvm-rg350-7c18021c52985aabc4574c633ba6569bbddd648b.zip |
NEVERHOOD: Handle invalid save_slot more gracefully on startup
If the specificed savegame doesn't exist, start the game from the
beginning. Before, it would just hang. The error handling is still
quite primitive, though.
Diffstat (limited to 'engines/neverhood/neverhood.h')
-rw-r--r-- | engines/neverhood/neverhood.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/neverhood/neverhood.h b/engines/neverhood/neverhood.h index 39bc9cef2c..773e80df7d 100644 --- a/engines/neverhood/neverhood.h +++ b/engines/neverhood/neverhood.h @@ -122,8 +122,8 @@ public: Common::Error loadGameState(int slot); Common::Error saveGameState(int slot, const Common::String &description); Common::Error removeGameState(int slot); - void savegame(const char *filename, const char *description); - void loadgame(const char *filename); + bool savegame(const char *filename, const char *description); + bool loadgame(const char *filename); const char *getSavegameFilename(int num); static Common::String getSavegameFilename(const Common::String &target, int num); static kReadSaveHeaderError readSaveHeader(Common::SeekableReadStream *in, bool loadThumbnail, SaveHeader &header); |