From 6ce23ced4841a9ff16714ec8fff95687655a8e6c Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 27 May 2007 05:18:30 +0000 Subject: Correct cursor used when entering saved game name in Elvira 2 and Waxworks. svn-id: r26957 --- engines/agos/saveload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/agos/saveload.cpp') diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index de3a0f416a..bb4bf6e294 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -247,7 +247,7 @@ void AGOSEngine::userGame(bool load) { name = buf + 192; for (;;) { - windowPutChar(window, 127); + windowPutChar(window, 128); _saveLoadEdit = true; -- cgit v1.2.3 From 7d8619350f70f6ca82970b8a12ae0d35c0dacca2 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 27 May 2007 11:32:19 +0000 Subject: Fix loading restart state in Waxworks for now. svn-id: r26966 --- engines/agos/saveload.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'engines/agos/saveload.cpp') diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index bb4bf6e294..8af398c859 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -980,6 +980,14 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) { addTimeEvent(timeout, subroutine_id); } + if (getGameType() == GType_WW) { + // TODO Load room state data + for (uint s = 0; s <= _numRoomStates; s++) { + f->readUint16BE(); + } + f->readUint16BE(); + } + item_index = 1; for (num = _itemArrayInited - 1; num; num--) { Item *item = _itemArrayPtr[item_index++], *parent_item; @@ -1120,6 +1128,14 @@ bool AGOSEngine_Elvira2::saveGame(uint slot, const char *caption) { f->writeUint16BE(te->subroutine_id); } + if (getGameType() == GType_WW) { + // TODO Save room state data + for (uint s = 0; s <= _numRoomStates; s++) { + f->writeUint16BE(0); + } + f->writeUint16BE(_currentRoom); + } + item_index = 1; for (num_item = _itemArrayInited - 1; num_item; num_item--) { Item *item = _itemArrayPtr[item_index++]; -- cgit v1.2.3 From 0c27b668076af14e5d117cdaa44679728f8f78cd Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 28 May 2007 12:42:10 +0000 Subject: Fix loading restart state in Amiga and AtariST versions of Elvira 2. svn-id: r26996 --- engines/agos/saveload.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/agos/saveload.cpp') diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index 8af398c859..1cbdcfbda3 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -1050,7 +1050,7 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) { // read the items in item store for (i = 0; i != _numItemStore; i++) { - if (getGameType() == GType_ELVIRA2) { + if (getGameType() == GType_ELVIRA2 && getPlatform() == Common::kPlatformPC) { _itemStore[i] = derefItem(readItemID(f)); } else { _itemStore[i] = derefItem(f->readUint16BE()); @@ -1189,7 +1189,7 @@ bool AGOSEngine_Elvira2::saveGame(uint slot, const char *caption) { // write the items in item store for (i = 0; i != _numItemStore; i++) { - if (getGameType() == GType_ELVIRA2) { + if (getGameType() == GType_ELVIRA2 && getPlatform() == Common::kPlatformPC) { writeItemID(f, itemPtrToID(_itemStore[i])); } else { f->writeUint16BE(itemPtrToID(_itemStore[i])); -- cgit v1.2.3 From 218e132e37017b64a61cce53c5dd26267a81784a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 30 May 2007 21:56:52 +0000 Subject: Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024 --- engines/agos/saveload.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/agos/saveload.cpp') diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index 1cbdcfbda3..1267e27daa 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -1,6 +1,8 @@ -/* ScummVM - Scumm Interpreter - * Copyright (C) 2001 Ludvig Strigeus - * Copyright (C) 2001-2006 The ScummVM project +/* 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. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License -- cgit v1.2.3