Implemented GMM loading (and, once the GMM supports it, saving) for SCUMM
svn-id: r34913
This commit is contained in:
parent
edf9f24926
commit
8f33d4a40a
11 changed files with 52 additions and 18 deletions
|
@ -75,9 +75,31 @@ struct SaveInfoSection {
|
|||
|
||||
#pragma mark -
|
||||
|
||||
void ScummEngine::requestSave(int slot, const char *name, bool temporary) {
|
||||
int ScummEngine::loadGameState(int slot) {
|
||||
requestLoad(slot);
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool ScummEngine::canLoadGameStateCurrently() {
|
||||
// FIXME: For now always allow loading
|
||||
return true;
|
||||
}
|
||||
|
||||
int ScummEngine::saveGameState(int slot, const char *desc) {
|
||||
requestSave(slot, desc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool ScummEngine::canSaveGameStateCurrently() {
|
||||
// FIXME: For now always allow saving
|
||||
return true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void ScummEngine::requestSave(int slot, const char *name) {
|
||||
_saveLoadSlot = slot;
|
||||
_saveTemporaryState = temporary;
|
||||
_saveTemporaryState = false;
|
||||
_saveLoadFlag = 1; // 1 for save
|
||||
assert(name);
|
||||
strncpy(_saveLoadName, name, sizeof(_saveLoadName));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue