diff options
author | Eugene Sandulenko | 2016-09-17 01:10:49 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-17 20:43:57 +0200 |
commit | 210a57c4c07733edb31733a1c81a53b01fb6eb7a (patch) | |
tree | 8ef8795594c9163cffb693dcc423337eca76b766 /engines/fullpipe/inventory.cpp | |
parent | 358f2d4845b10117192c440f74b245d0e5536a07 (diff) | |
download | scummvm-rg350-210a57c4c07733edb31733a1c81a53b01fb6eb7a.tar.gz scummvm-rg350-210a57c4c07733edb31733a1c81a53b01fb6eb7a.tar.bz2 scummvm-rg350-210a57c4c07733edb31733a1c81a53b01fb6eb7a.zip |
FULLPIPE: Implement inventory saving
Diffstat (limited to 'engines/fullpipe/inventory.cpp')
-rw-r--r-- | engines/fullpipe/inventory.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp index 10a584782b..335635c6e8 100644 --- a/engines/fullpipe/inventory.cpp +++ b/engines/fullpipe/inventory.cpp @@ -106,8 +106,14 @@ bool Inventory2::loadPartial(MfcArchive &file) { // Inventory2_SerializePartiall return true; } -bool Inventory2::writePartial(Common::WriteStream *file) { - warning("STUB: nventory2::writePartial()"); +bool Inventory2::savePartial(Common::WriteStream *saveFile) { + saveFile->writeUint32LE(_inventoryItems.size()); + + for (uint i = 0; i < _inventoryItems.size(); i++) { + saveFile->writeUint16LE(_inventoryItems[i]->itemId); + saveFile->writeUint16LE(_inventoryItems[i]->count); + } + return true; } |