diff options
author | athrxx | 2011-12-13 22:04:06 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-12-26 16:18:17 +0100 |
commit | c0e782fd0b2ba9de69563e8bcb4fb43e2f311b35 (patch) | |
tree | 3770bf7404fc31e427c4684a32fba1e1292adc07 /engines/kyra/gui.cpp | |
parent | 53e1bf21ecced447192f75067f0232c08d24d647 (diff) | |
download | scummvm-rg350-c0e782fd0b2ba9de69563e8bcb4fb43e2f311b35.tar.gz scummvm-rg350-c0e782fd0b2ba9de69563e8bcb4fb43e2f311b35.tar.bz2 scummvm-rg350-c0e782fd0b2ba9de69563e8bcb4fb43e2f311b35.zip |
KYRA: (EOB) - Start implementing EOB1 party transfer (not working yet)
(ScummVM specific solution which allows the selection of save files of all configured EOB1 targets)
Diffstat (limited to 'engines/kyra/gui.cpp')
-rw-r--r-- | engines/kyra/gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp index e2195cad17..cc32a9785a 100644 --- a/engines/kyra/gui.cpp +++ b/engines/kyra/gui.cpp @@ -46,8 +46,8 @@ GUI::~GUI() { } } -void GUI::updateSaveFileList(bool excludeQuickSaves) { - Common::String pattern = _vm->_targetName + ".???"; +void GUI::updateSaveFileList(Common::String targetName, bool excludeQuickSaves) { + Common::String pattern = targetName + ".???"; Common::StringArray saveFileList = _vm->_saveFileMan->listSavefiles(pattern); _saveSlots.clear(); @@ -93,8 +93,8 @@ int GUI::getNextSavegameSlot() { return 0; } -void GUI::updateSaveSlotsList() { - if (!_saveSlotsListUpdateNeeded) +void GUI::updateSaveSlotsList(Common::String targetName, bool force) { + if (!_saveSlotsListUpdateNeeded && !force) return; _saveSlotsListUpdateNeeded = false; @@ -105,7 +105,7 @@ void GUI::updateSaveSlotsList() { delete[] _savegameList; } - updateSaveFileList(true); + updateSaveFileList(targetName, true); int numSaves = _savegameListSize = _saveSlots.size(); bool allowEmptySlots = (_vm->game() == GI_EOB1 || _vm->game() == GI_EOB2); @@ -120,7 +120,7 @@ void GUI::updateSaveSlotsList() { memset(_savegameList, 0, _savegameListSize * sizeof(char*)); for (int i = 0; i < numSaves; i++) { - in = _vm->openSaveForReading(_vm->getSavegameFilename(_saveSlots[i]), header); + in = _vm->openSaveForReading(_vm->getSavegameFilename(targetName, _saveSlots[i]).c_str(), header, targetName == _vm->_targetName); char **listEntry = &_savegameList[allowEmptySlots? _saveSlots[i] : i]; if (in) { *listEntry = new char[header.description.size() + 1]; |