2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2007-01-14 21:29:12 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "common/savefile.h"
|
2009-10-15 13:37:25 +00:00
|
|
|
#include "common/config-manager.h"
|
2011-04-24 08:34:27 +00:00
|
|
|
#include "common/textconsole.h"
|
2011-06-13 21:19:18 +00:00
|
|
|
#include "common/translation.h"
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2007-07-07 19:42:06 +00:00
|
|
|
#include "gui/dialog.h"
|
2009-10-15 13:37:25 +00:00
|
|
|
#include "gui/saveload.h"
|
2007-02-11 21:17:37 +00:00
|
|
|
#include "gui/widget.h"
|
2010-11-16 10:11:57 +00:00
|
|
|
#include "gui/widgets/list.h"
|
2007-02-11 21:17:37 +00:00
|
|
|
#include "gui/message.h"
|
|
|
|
|
2007-04-09 10:03:15 +00:00
|
|
|
#include "parallaction/parallaction.h"
|
2008-08-31 06:14:45 +00:00
|
|
|
#include "parallaction/saveload.h"
|
2007-10-21 19:27:15 +00:00
|
|
|
#include "parallaction/sound.h"
|
2007-05-13 14:38:05 +00:00
|
|
|
|
2007-12-10 20:34:02 +00:00
|
|
|
/* Nippon Safes savefiles are called 'nippon.000' to 'nippon.099'.
|
2007-02-11 21:17:37 +00:00
|
|
|
*
|
2007-12-10 20:34:02 +00:00
|
|
|
* A special savefile named 'nippon.999' holds information on whether the user completed one or more parts of the game.
|
2007-02-11 21:17:37 +00:00
|
|
|
*/
|
|
|
|
|
2008-01-06 20:42:28 +00:00
|
|
|
#define NUM_SAVESLOTS 100
|
|
|
|
#define SPECIAL_SAVESLOT 999
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2007-01-14 21:29:12 +00:00
|
|
|
namespace Parallaction {
|
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
Common::String SaveLoad::genSaveFileName(uint slot) {
|
|
|
|
assert(slot < NUM_SAVESLOTS || slot == SPECIAL_SAVESLOT);
|
|
|
|
|
|
|
|
char s[20];
|
2011-11-03 00:48:14 +00:00
|
|
|
sprintf(s, "%s.%.3u", _saveFilePrefix.c_str(), slot);
|
2008-08-31 06:14:45 +00:00
|
|
|
|
|
|
|
return Common::String(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
Common::InSaveFile *SaveLoad::getInSaveFile(uint slot) {
|
2008-01-06 20:42:28 +00:00
|
|
|
Common::String name = genSaveFileName(slot);
|
2009-05-29 14:38:22 +00:00
|
|
|
return _saveFileMan->openForLoading(name);
|
2007-12-10 20:29:51 +00:00
|
|
|
}
|
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
Common::OutSaveFile *SaveLoad::getOutSaveFile(uint slot) {
|
2008-01-06 20:42:28 +00:00
|
|
|
Common::String name = genSaveFileName(slot);
|
2009-05-29 14:38:22 +00:00
|
|
|
return _saveFileMan->openForSaving(name);
|
2007-12-10 20:29:51 +00:00
|
|
|
}
|
2007-07-07 19:42:06 +00:00
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
void SaveLoad_ns::doLoadGame(uint16 slot) {
|
|
|
|
_vm->cleanupGame();
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-01-06 20:42:28 +00:00
|
|
|
Common::InSaveFile *f = getInSaveFile(slot);
|
2007-01-14 21:29:12 +00:00
|
|
|
if (!f) return;
|
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
Common::String s, character, location;
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
// scrap the line with the savefile name
|
|
|
|
f->readLine();
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
character = f->readLine();
|
|
|
|
location = f->readLine();
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
|
|
|
_vm->_location._startPosition.x = atoi(s.c_str());
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
|
|
|
_vm->_location._startPosition.y = atoi(s.c_str());
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
2009-04-06 17:21:23 +00:00
|
|
|
_vm->_score = atoi(s.c_str());
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
2012-09-27 20:41:51 +00:00
|
|
|
g_globalFlags = atoi(s.c_str());
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
|
|
|
_vm->_numLocations = atoi(s.c_str());
|
2007-01-14 21:29:12 +00:00
|
|
|
|
|
|
|
uint16 _si;
|
2008-08-31 06:14:45 +00:00
|
|
|
for (_si = 0; _si < _vm->_numLocations; _si++) {
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
|
|
|
strcpy(_vm->_locationNames[_si], s.c_str());
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
|
|
|
_vm->_localFlags[_si] = atoi(s.c_str());
|
2007-01-14 21:29:12 +00:00
|
|
|
}
|
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
_vm->cleanInventory(false);
|
2007-09-23 20:17:50 +00:00
|
|
|
ItemName name;
|
|
|
|
uint32 value;
|
|
|
|
|
2007-01-14 21:29:12 +00:00
|
|
|
for (_si = 0; _si < 30; _si++) {
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
|
|
|
value = atoi(s.c_str());
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
s = f->readLine();
|
|
|
|
name = atoi(s.c_str());
|
2007-09-23 20:17:50 +00:00
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
_vm->addInventoryItem(name, value);
|
2007-01-14 21:29:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
delete f;
|
|
|
|
|
2007-03-18 08:29:45 +00:00
|
|
|
// force reload of character to solve inventory
|
|
|
|
// bugs, but it's a good maneuver anyway
|
2008-08-31 06:14:45 +00:00
|
|
|
strcpy(_vm->_characterName1, "null");
|
2007-03-18 08:29:45 +00:00
|
|
|
|
2007-11-14 22:24:26 +00:00
|
|
|
char tmp[PATH_LEN];
|
2008-12-03 12:23:50 +00:00
|
|
|
sprintf(tmp, "%s.%s" , location.c_str(), character.c_str());
|
2008-08-31 06:14:45 +00:00
|
|
|
_vm->scheduleLocationSwitch(tmp);
|
2007-01-14 21:29:12 +00:00
|
|
|
}
|
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
void SaveLoad_ns::doSaveGame(uint16 slot, const char* name) {
|
2007-12-10 20:29:51 +00:00
|
|
|
Common::OutSaveFile *f = getOutSaveFile(slot);
|
2007-02-11 21:17:37 +00:00
|
|
|
if (f == 0) {
|
2011-06-13 21:19:18 +00:00
|
|
|
Common::String buf = Common::String::format(_("Can't save game in slot %i\n\n"), slot);
|
2007-02-17 15:37:49 +00:00
|
|
|
GUI::MessageDialog dialog(buf);
|
|
|
|
dialog.runModal();
|
|
|
|
return;
|
2007-02-11 21:17:37 +00:00
|
|
|
}
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2007-12-10 20:29:51 +00:00
|
|
|
char s[200];
|
|
|
|
memset(s, 0, sizeof(s));
|
2007-01-14 21:29:12 +00:00
|
|
|
|
2007-02-17 15:37:49 +00:00
|
|
|
if (!name || name[0] == '\0') {
|
|
|
|
sprintf(s, "default_%i", slot);
|
|
|
|
} else {
|
2007-12-10 20:29:51 +00:00
|
|
|
strncpy(s, name, 199);
|
2007-02-17 15:37:49 +00:00
|
|
|
}
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2007-02-17 15:37:49 +00:00
|
|
|
f->writeString(s);
|
|
|
|
f->writeString("\n");
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
sprintf(s, "%s\n", _vm->_char.getFullName());
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
|
|
|
|
2012-09-27 20:41:51 +00:00
|
|
|
sprintf(s, "%s\n", g_saveData1);
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
2008-08-31 06:14:45 +00:00
|
|
|
sprintf(s, "%d\n", _vm->_char._ani->getX());
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
2008-08-31 06:14:45 +00:00
|
|
|
sprintf(s, "%d\n", _vm->_char._ani->getY());
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
2009-04-06 17:21:23 +00:00
|
|
|
sprintf(s, "%d\n", _vm->_score);
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
2012-09-27 20:41:51 +00:00
|
|
|
sprintf(s, "%u\n", g_globalFlags);
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
sprintf(s, "%d\n", _vm->_numLocations);
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
2008-08-31 06:14:45 +00:00
|
|
|
for (uint16 _si = 0; _si < _vm->_numLocations; _si++) {
|
|
|
|
sprintf(s, "%s\n%u\n", _vm->_locationNames[_si], _vm->_localFlags[_si]);
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
|
|
|
}
|
|
|
|
|
2007-09-23 20:17:50 +00:00
|
|
|
const InventoryItem *item;
|
2007-01-14 21:29:12 +00:00
|
|
|
for (uint16 _si = 0; _si < 30; _si++) {
|
2008-08-31 06:14:45 +00:00
|
|
|
item = _vm->getInventoryItem(_si);
|
2007-09-23 20:17:50 +00:00
|
|
|
sprintf(s, "%u\n%d\n", item->_id, item->_index);
|
2007-01-14 21:29:12 +00:00
|
|
|
f->writeString(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
delete f;
|
|
|
|
}
|
|
|
|
|
2009-10-15 13:37:25 +00:00
|
|
|
int SaveLoad::selectSaveFile(Common::String &selectedName, bool saveMode, const Common::String &caption, const Common::String &button) {
|
2012-06-10 02:14:17 +00:00
|
|
|
GUI::SaveLoadChooser slc(caption, button, saveMode);
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2009-04-29 05:30:58 +00:00
|
|
|
selectedName.clear();
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2012-06-10 02:49:42 +00:00
|
|
|
int idx = slc.runModalWithCurrentTarget();
|
2009-10-15 13:37:25 +00:00
|
|
|
if (idx >= 0) {
|
2009-04-29 05:30:58 +00:00
|
|
|
selectedName = slc.getResultString();
|
2007-02-17 15:37:49 +00:00
|
|
|
}
|
2007-02-13 21:07:33 +00:00
|
|
|
|
2009-10-15 13:37:25 +00:00
|
|
|
return idx;
|
2007-02-11 21:17:37 +00:00
|
|
|
}
|
|
|
|
|
2009-04-29 05:30:58 +00:00
|
|
|
bool SaveLoad::loadGame() {
|
|
|
|
Common::String null;
|
2009-10-15 13:37:25 +00:00
|
|
|
int _di = selectSaveFile(null, false, "Load file", "Load");
|
2007-02-11 21:17:37 +00:00
|
|
|
if (_di == -1) {
|
2007-11-01 14:47:33 +00:00
|
|
|
return false;
|
2007-02-11 21:17:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
doLoadGame(_di);
|
|
|
|
|
2011-06-13 21:19:18 +00:00
|
|
|
GUI::TimedMessageDialog dialog(_("Loading game..."), 1500);
|
2007-02-17 15:37:49 +00:00
|
|
|
dialog.runModal();
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2007-11-01 14:47:33 +00:00
|
|
|
return true;
|
2007-02-11 21:17:37 +00:00
|
|
|
}
|
|
|
|
|
2009-04-29 05:30:58 +00:00
|
|
|
bool SaveLoad::saveGame() {
|
|
|
|
Common::String saveName;
|
2009-10-15 13:37:25 +00:00
|
|
|
int slot = selectSaveFile(saveName, true, "Save file", "Save");
|
2007-02-11 21:17:37 +00:00
|
|
|
if (slot == -1) {
|
2007-11-01 14:47:33 +00:00
|
|
|
return false;
|
2007-02-11 21:17:37 +00:00
|
|
|
}
|
|
|
|
|
2009-04-29 05:30:58 +00:00
|
|
|
doSaveGame(slot, saveName.c_str());
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2011-06-13 21:19:18 +00:00
|
|
|
GUI::TimedMessageDialog dialog(_("Saving game..."), 1500);
|
2007-02-17 15:37:49 +00:00
|
|
|
dialog.runModal();
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2007-11-01 14:47:33 +00:00
|
|
|
return true;
|
2007-02-11 21:17:37 +00:00
|
|
|
}
|
|
|
|
|
2009-04-29 05:30:58 +00:00
|
|
|
bool SaveLoad_ns::saveGame() {
|
|
|
|
// NOTE: shouldn't this check be done before, so that the
|
|
|
|
// user can't even select 'save'?
|
|
|
|
if (!scumm_stricmp(_vm->_location._name, "caveau")) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return SaveLoad::saveGame();
|
|
|
|
}
|
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
void SaveLoad_ns::setPartComplete(const char *part) {
|
2008-12-03 12:23:50 +00:00
|
|
|
Common::String s;
|
2008-01-06 20:42:28 +00:00
|
|
|
bool alreadyPresent = false;
|
|
|
|
|
|
|
|
Common::InSaveFile *inFile = getInSaveFile(SPECIAL_SAVESLOT);
|
|
|
|
if (inFile) {
|
2008-12-03 12:23:50 +00:00
|
|
|
s = inFile->readLine();
|
2008-01-06 20:42:28 +00:00
|
|
|
delete inFile;
|
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
if (s.contains(part)) {
|
2008-01-06 20:42:28 +00:00
|
|
|
alreadyPresent = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!alreadyPresent) {
|
|
|
|
Common::OutSaveFile *outFile = getOutSaveFile(SPECIAL_SAVESLOT);
|
2008-12-03 12:23:50 +00:00
|
|
|
outFile->writeString(s);
|
2008-08-31 06:14:45 +00:00
|
|
|
outFile->writeString(part);
|
2008-01-06 20:42:28 +00:00
|
|
|
outFile->finalize();
|
|
|
|
delete outFile;
|
|
|
|
}
|
2007-12-10 20:29:51 +00:00
|
|
|
}
|
|
|
|
|
2008-08-31 06:14:45 +00:00
|
|
|
void SaveLoad_ns::getGamePartProgress(bool *complete, int size) {
|
2008-08-31 05:18:25 +00:00
|
|
|
assert(complete && size >= 3);
|
2007-12-10 20:29:51 +00:00
|
|
|
|
2008-01-06 20:42:28 +00:00
|
|
|
Common::InSaveFile *inFile = getInSaveFile(SPECIAL_SAVESLOT);
|
2008-12-03 12:23:50 +00:00
|
|
|
Common::String s = inFile->readLine();
|
2008-01-06 20:42:28 +00:00
|
|
|
delete inFile;
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2008-12-03 12:23:50 +00:00
|
|
|
complete[0] = s.contains("dino");
|
|
|
|
complete[1] = s.contains("donna");
|
|
|
|
complete[2] = s.contains("dough");
|
2007-12-10 20:29:51 +00:00
|
|
|
}
|
|
|
|
|
2009-07-31 12:39:31 +00:00
|
|
|
static bool askRenameOldSavefiles() {
|
2008-01-06 20:42:28 +00:00
|
|
|
GUI::MessageDialog dialog0(
|
2011-06-13 21:19:18 +00:00
|
|
|
_("ScummVM found that you have old savefiles for Nippon Safes that should be renamed.\n"
|
2008-01-06 20:42:28 +00:00
|
|
|
"The old names are no longer supported, so you will not be able to load your games if you don't convert them.\n\n"
|
2011-06-13 21:19:18 +00:00
|
|
|
"Press OK to convert them now, otherwise you will be asked next time.\n"), _("OK"), _("Cancel"));
|
2008-01-06 20:42:28 +00:00
|
|
|
|
2009-07-31 12:39:31 +00:00
|
|
|
return (dialog0.runModal() != 0);
|
|
|
|
}
|
2008-01-06 20:42:28 +00:00
|
|
|
|
2009-07-31 12:39:31 +00:00
|
|
|
void SaveLoad_ns::renameOldSavefiles() {
|
2010-03-18 15:54:40 +00:00
|
|
|
Common::StringArray oldFilenames = _saveFileMan->listSavefiles("game.*");
|
2009-07-31 12:39:31 +00:00
|
|
|
uint numOldSaves = oldFilenames.size();
|
|
|
|
|
|
|
|
bool rename = false;
|
2009-07-30 13:41:22 +00:00
|
|
|
uint success = 0, id;
|
|
|
|
Common::String oldName, newName;
|
|
|
|
for (uint i = 0; i < oldFilenames.size(); ++i) {
|
|
|
|
oldName = oldFilenames[i];
|
|
|
|
int e = sscanf(oldName.c_str(), "game.%u", &id);
|
2009-07-31 12:39:31 +00:00
|
|
|
if (e != 1) {
|
2010-01-25 01:39:44 +00:00
|
|
|
// this wasn't a savefile, so adjust numOldSaves accordingly
|
2009-07-31 12:39:31 +00:00
|
|
|
--numOldSaves;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!rename) {
|
2010-01-25 01:39:44 +00:00
|
|
|
rename = askRenameOldSavefiles();
|
2009-07-31 12:39:31 +00:00
|
|
|
}
|
|
|
|
if (!rename) {
|
|
|
|
// return immediately if the user doesn't want to rename the files
|
|
|
|
return;
|
|
|
|
}
|
2009-07-30 13:41:22 +00:00
|
|
|
|
2009-07-31 12:39:31 +00:00
|
|
|
newName = genSaveFileName(id);
|
2009-07-30 13:41:22 +00:00
|
|
|
if (_saveFileMan->renameSavefile(oldName, newName)) {
|
|
|
|
success++;
|
|
|
|
} else {
|
2011-04-18 15:39:31 +00:00
|
|
|
warning("Error %i (%s) occurred while renaming %s to %s", _saveFileMan->getError().getCode(),
|
2009-07-30 13:41:22 +00:00
|
|
|
_saveFileMan->getErrorDesc().c_str(), oldName.c_str(), newName.c_str());
|
2008-01-06 20:42:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-07-31 12:39:31 +00:00
|
|
|
if (numOldSaves == 0) {
|
|
|
|
// there were no old savefiles: nothing to notify
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2011-06-13 21:19:18 +00:00
|
|
|
Common::String msg;
|
2009-07-31 12:39:31 +00:00
|
|
|
if (success == numOldSaves) {
|
2011-06-13 21:19:18 +00:00
|
|
|
msg = _("ScummVM successfully converted all your savefiles.");
|
2008-01-06 20:42:28 +00:00
|
|
|
} else {
|
2011-06-13 21:19:18 +00:00
|
|
|
msg = _("ScummVM printed some warnings in your console window and can't guarantee all your files have been converted.\n\n"
|
2008-01-06 20:42:28 +00:00
|
|
|
"Please report to the team.");
|
|
|
|
}
|
|
|
|
|
|
|
|
GUI::MessageDialog dialog1(msg);
|
|
|
|
dialog1.runModal();
|
2007-12-10 20:29:51 +00:00
|
|
|
}
|
2007-02-11 21:17:37 +00:00
|
|
|
|
2009-04-29 05:30:58 +00:00
|
|
|
void SaveLoad_br::doLoadGame(uint16 slot) {
|
2008-08-31 06:14:45 +00:00
|
|
|
// TODO: implement loadgame
|
|
|
|
}
|
|
|
|
|
2009-04-29 05:30:58 +00:00
|
|
|
void SaveLoad_br::doSaveGame(uint16 slot, const char* name) {
|
2008-08-31 06:14:45 +00:00
|
|
|
// TODO: implement savegame
|
|
|
|
}
|
|
|
|
|
|
|
|
void SaveLoad_br::getGamePartProgress(bool *complete, int size) {
|
|
|
|
assert(complete && size >= 3);
|
|
|
|
|
|
|
|
// TODO: implement progress loading
|
|
|
|
|
|
|
|
complete[0] = true;
|
|
|
|
complete[1] = true;
|
|
|
|
complete[2] = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SaveLoad_br::setPartComplete(const char *part) {
|
|
|
|
// TODO: implement progress saving
|
|
|
|
}
|
|
|
|
|
2007-01-14 21:29:12 +00:00
|
|
|
} // namespace Parallaction
|