diff options
author | Nicola Mettifogo | 2008-08-31 05:18:25 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-08-31 05:18:25 +0000 |
commit | 983863bef3f72b81cd0c1211241c64670c4e3e18 (patch) | |
tree | c6f14bff41a913bdf4efe2c858d863bdbf4801ed /engines/parallaction/saveload.cpp | |
parent | 805a46b229658782820a5f78a862e19e2533ec18 (diff) | |
download | scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.tar.gz scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.tar.bz2 scummvm-rg350-983863bef3f72b81cd0c1211241c64670c4e3e18.zip |
Uniformed the interface of Parallaction class (and its hierarchy) with regards of gui code, which is now independent of engine version.
svn-id: r34219
Diffstat (limited to 'engines/parallaction/saveload.cpp')
-rw-r--r-- | engines/parallaction/saveload.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/parallaction/saveload.cpp b/engines/parallaction/saveload.cpp index d616230baa..7fccd38df3 100644 --- a/engines/parallaction/saveload.cpp +++ b/engines/parallaction/saveload.cpp @@ -445,14 +445,27 @@ void Parallaction_ns::setPartComplete(const Character& character) { return; } -bool Parallaction_ns::allPartsComplete() { - char buf[30]; +void Parallaction_ns::getGamePartProgress(bool *complete, int size) { + assert(complete && size >= 3); + char buf[30]; Common::InSaveFile *inFile = getInSaveFile(SPECIAL_SAVESLOT); inFile->readLine(buf, 29); delete inFile; - return strstr(buf, "dino") && strstr(buf, "donna") && strstr(buf, "dough"); + complete[0] = strstr(buf, "dino"); + complete[1] = strstr(buf, "donna"); + complete[2] = strstr(buf, "dough"); +} + +void Parallaction_br::getGamePartProgress(bool *complete, int size) { + assert(complete && size >= 3); + + // TODO: implement progress loading + + complete[0] = true; + complete[1] = true; + complete[2] = true; } void Parallaction_ns::renameOldSavefiles() { |