2016-02-26 23:32:06 +01: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.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-03-05 22:10:54 +01:00
|
|
|
#include "common/system.h"
|
2016-02-26 23:32:06 +01:00
|
|
|
#include "common/debug.h"
|
|
|
|
#include "common/error.h"
|
|
|
|
#include "common/file.h"
|
|
|
|
#include "common/stream.h"
|
2016-03-14 10:40:51 +01:00
|
|
|
#include "common/ptr.h"
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-02-27 15:05:06 +01:00
|
|
|
#include "adl/hires1.h"
|
2016-02-26 23:32:06 +01:00
|
|
|
#include "adl/display.h"
|
|
|
|
|
|
|
|
namespace Adl {
|
|
|
|
|
2016-03-06 22:50:17 +01:00
|
|
|
void HiRes1Engine::runIntro() const {
|
2016-03-24 22:50:42 +01:00
|
|
|
StreamPtr stream(_files->createReadStream(IDS_HR1_EXE_0));
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_LOGO_0);
|
2016-03-04 18:48:31 +01:00
|
|
|
_display->setMode(DISPLAY_MODE_HIRES);
|
2016-03-24 09:51:51 +01:00
|
|
|
_display->loadFrameBuffer(*stream);
|
2016-03-04 20:06:16 +01:00
|
|
|
_display->updateHiResScreen();
|
2016-03-01 15:47:34 +01:00
|
|
|
delay(4000);
|
2016-02-26 23:32:06 +01:00
|
|
|
|
|
|
|
if (shouldQuit())
|
|
|
|
return;
|
|
|
|
|
2016-03-04 18:48:31 +01:00
|
|
|
_display->setMode(DISPLAY_MODE_TEXT);
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 22:50:42 +01:00
|
|
|
StreamPtr basic(_files->createReadStream(IDS_HR1_LOADER));
|
2016-02-26 23:32:06 +01:00
|
|
|
Common::String str;
|
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
str = readStringAt(*basic, IDI_HR1_OFS_PD_TEXT_0, '"');
|
2016-03-07 15:26:01 +01:00
|
|
|
_display->printAsciiString(str + '\r');
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
str = readStringAt(*basic, IDI_HR1_OFS_PD_TEXT_1, '"');
|
2016-03-07 15:26:01 +01:00
|
|
|
_display->printAsciiString(str + "\r\r");
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
str = readStringAt(*basic, IDI_HR1_OFS_PD_TEXT_2, '"');
|
2016-03-07 15:26:01 +01:00
|
|
|
_display->printAsciiString(str + "\r\r");
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
str = readStringAt(*basic, IDI_HR1_OFS_PD_TEXT_3, '"');
|
2016-03-07 15:26:01 +01:00
|
|
|
_display->printAsciiString(str + '\r');
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-01 15:47:34 +01:00
|
|
|
inputKey();
|
2016-02-26 23:32:06 +01:00
|
|
|
if (g_engine->shouldQuit())
|
|
|
|
return;
|
|
|
|
|
2016-03-04 18:48:31 +01:00
|
|
|
_display->setMode(DISPLAY_MODE_MIXED);
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
str = readStringAt(*stream, IDI_HR1_OFS_GAME_OR_HELP);
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-02-29 16:50:24 +01:00
|
|
|
bool instructions = false;
|
|
|
|
|
2016-02-26 23:32:06 +01:00
|
|
|
while (1) {
|
|
|
|
_display->printString(str);
|
2016-03-01 15:47:34 +01:00
|
|
|
Common::String s = inputString();
|
2016-02-26 23:32:06 +01:00
|
|
|
|
|
|
|
if (g_engine->shouldQuit())
|
|
|
|
break;
|
|
|
|
|
|
|
|
if (s.empty())
|
|
|
|
continue;
|
|
|
|
|
2016-02-29 16:50:24 +01:00
|
|
|
if (s[0] == APPLECHAR('I')) {
|
|
|
|
instructions = true;
|
2016-02-26 23:32:06 +01:00
|
|
|
break;
|
2016-02-29 16:50:24 +01:00
|
|
|
} else if (s[0] == APPLECHAR('G')) {
|
|
|
|
break;
|
|
|
|
}
|
2016-02-26 23:32:06 +01:00
|
|
|
};
|
|
|
|
|
2016-02-29 16:50:24 +01:00
|
|
|
if (instructions) {
|
2016-03-04 18:48:31 +01:00
|
|
|
_display->setMode(DISPLAY_MODE_TEXT);
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_INTRO_TEXT);
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-02-29 16:50:24 +01:00
|
|
|
const uint pages[] = { 6, 6, 4, 5, 8, 7, 0 };
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-02-29 16:50:24 +01:00
|
|
|
uint page = 0;
|
|
|
|
while (pages[page] != 0) {
|
|
|
|
_display->home();
|
2016-03-06 22:50:17 +01:00
|
|
|
|
|
|
|
uint count = pages[page++];
|
|
|
|
for (uint i = 0; i < count; ++i) {
|
2016-03-24 09:51:51 +01:00
|
|
|
str = readString(*stream);
|
2016-03-06 22:50:17 +01:00
|
|
|
_display->printString(str);
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(3, SEEK_CUR);
|
2016-03-06 22:50:17 +01:00
|
|
|
}
|
|
|
|
|
2016-03-01 15:47:34 +01:00
|
|
|
inputString();
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-02-29 16:50:24 +01:00
|
|
|
if (g_engine->shouldQuit())
|
|
|
|
return;
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(6, SEEK_CUR);
|
2016-02-29 16:50:24 +01:00
|
|
|
}
|
2016-02-26 23:32:06 +01:00
|
|
|
}
|
2016-02-29 16:50:24 +01:00
|
|
|
|
2016-03-07 15:26:01 +01:00
|
|
|
_display->printAsciiString("\r");
|
2016-02-29 16:50:24 +01:00
|
|
|
|
2016-03-04 18:48:31 +01:00
|
|
|
_display->setMode(DISPLAY_MODE_MIXED);
|
2016-02-29 16:50:24 +01:00
|
|
|
|
|
|
|
// Title screen shown during loading
|
2016-03-24 22:50:42 +01:00
|
|
|
stream.reset(_files->createReadStream(IDS_HR1_EXE_1));
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_LOGO_1);
|
|
|
|
_display->loadFrameBuffer(*stream);
|
2016-03-04 20:06:16 +01:00
|
|
|
_display->updateHiResScreen();
|
2016-03-01 15:47:34 +01:00
|
|
|
delay(2000);
|
2016-02-26 23:32:06 +01:00
|
|
|
}
|
|
|
|
|
2016-03-14 10:04:51 +01:00
|
|
|
void HiRes1Engine::init() {
|
2016-03-24 22:50:42 +01:00
|
|
|
if (Common::File::exists("MYSTHOUS.DSK")) {
|
|
|
|
_files = new Files_DOS33();
|
|
|
|
if (!static_cast<Files_DOS33 *>(_files)->open("MYSTHOUS.DSK"))
|
|
|
|
error("Failed to open MYSTHOUS.DSK");
|
|
|
|
} else
|
2016-03-26 01:01:10 +01:00
|
|
|
_files = new Files_Plain();
|
2016-03-24 22:50:42 +01:00
|
|
|
|
2016-03-14 10:04:51 +01:00
|
|
|
_graphics = new Graphics_v1(*_display);
|
|
|
|
|
2016-03-24 22:50:42 +01:00
|
|
|
StreamPtr stream(_files->createReadStream(IDS_HR1_MESSAGES));
|
2016-02-28 21:01:01 +01:00
|
|
|
|
2016-03-06 11:58:21 +01:00
|
|
|
for (uint i = 0; i < IDI_HR1_NUM_MESSAGES; ++i)
|
2016-03-24 09:51:51 +01:00
|
|
|
_messages.push_back(readString(*stream, APPLECHAR('\r')) + APPLECHAR('\r'));
|
2016-02-28 21:01:01 +01:00
|
|
|
|
2016-03-24 22:50:42 +01:00
|
|
|
stream.reset(_files->createReadStream(IDS_HR1_EXE_1));
|
2016-02-28 21:01:01 +01:00
|
|
|
|
2016-03-07 15:19:26 +01:00
|
|
|
// Some messages have overrides inside the executable
|
2016-03-24 09:51:51 +01:00
|
|
|
_messages[IDI_HR1_MSG_CANT_GO_THERE - 1] = readStringAt(*stream, IDI_HR1_OFS_STR_CANT_GO_THERE);
|
|
|
|
_messages[IDI_HR1_MSG_DONT_HAVE_IT - 1] = readStringAt(*stream, IDI_HR1_OFS_STR_DONT_HAVE_IT);
|
|
|
|
_messages[IDI_HR1_MSG_DONT_UNDERSTAND - 1] = readStringAt(*stream, IDI_HR1_OFS_STR_DONT_UNDERSTAND);
|
|
|
|
_messages[IDI_HR1_MSG_GETTING_DARK - 1] = readStringAt(*stream, IDI_HR1_OFS_STR_GETTING_DARK);
|
2016-03-07 15:19:26 +01:00
|
|
|
|
|
|
|
// Load other strings from executable
|
2016-03-24 09:51:51 +01:00
|
|
|
_strings.enterCommand = readStringAt(*stream, IDI_HR1_OFS_STR_ENTER_COMMAND);
|
|
|
|
_strings.verbError = readStringAt(*stream, IDI_HR1_OFS_STR_VERB_ERROR);
|
|
|
|
_strings.nounError = readStringAt(*stream, IDI_HR1_OFS_STR_NOUN_ERROR);
|
|
|
|
_strings.playAgain = readStringAt(*stream, IDI_HR1_OFS_STR_PLAY_AGAIN);
|
|
|
|
_strings.pressReturn = readStringAt(*stream, IDI_HR1_OFS_STR_PRESS_RETURN);
|
2016-03-07 15:19:26 +01:00
|
|
|
|
|
|
|
// Set message IDs
|
|
|
|
_messageIds.cantGoThere = IDI_HR1_MSG_CANT_GO_THERE;
|
|
|
|
_messageIds.dontUnderstand = IDI_HR1_MSG_DONT_UNDERSTAND;
|
|
|
|
_messageIds.itemDoesntMove = IDI_HR1_MSG_ITEM_DOESNT_MOVE;
|
|
|
|
_messageIds.itemNotHere = IDI_HR1_MSG_ITEM_NOT_HERE;
|
|
|
|
_messageIds.thanksForPlaying = IDI_HR1_MSG_THANKS_FOR_PLAYING;
|
2016-02-26 23:32:06 +01:00
|
|
|
|
|
|
|
// Load picture data from executable
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_PICS);
|
2016-03-26 16:27:51 +01:00
|
|
|
for (uint i = 1; i <= IDI_HR1_NUM_PICS; ++i) {
|
2016-03-24 09:51:51 +01:00
|
|
|
byte block = stream->readByte();
|
|
|
|
Common::String name = Common::String::format("BLOCK%i", block);
|
|
|
|
uint16 offset = stream->readUint16LE();
|
2016-03-26 16:27:51 +01:00
|
|
|
_pictures[i] = _files->getDataBlock(name, offset);
|
2016-02-26 23:32:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Load commands from executable
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_CMDS_1);
|
|
|
|
readCommands(*stream, _roomCommands);
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_CMDS_0);
|
|
|
|
readCommands(*stream, _globalCommands);
|
2016-02-26 23:32:06 +01:00
|
|
|
|
|
|
|
// Load dropped item offsets
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_ITEM_OFFSETS);
|
2016-03-05 20:07:28 +01:00
|
|
|
for (uint i = 0; i < IDI_HR1_NUM_ITEM_OFFSETS; ++i) {
|
2016-02-26 23:32:06 +01:00
|
|
|
Common::Point p;
|
2016-03-24 09:51:51 +01:00
|
|
|
p.x = stream->readByte();
|
|
|
|
p.y = stream->readByte();
|
2016-02-26 23:32:06 +01:00
|
|
|
_itemOffsets.push_back(p);
|
|
|
|
}
|
|
|
|
|
2016-02-28 17:21:09 +01:00
|
|
|
// Load right-angle line art
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_CORNERS);
|
|
|
|
uint16 cornersCount = stream->readUint16LE();
|
2016-03-14 10:04:51 +01:00
|
|
|
for (uint i = 0; i < cornersCount; ++i)
|
2016-03-24 22:50:42 +01:00
|
|
|
_corners.push_back(_files->getDataBlock(IDS_HR1_EXE_1, IDI_HR1_OFS_CORNERS + stream->readUint16LE()));
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
if (stream->eos() || stream->err())
|
2016-03-06 11:58:21 +01:00
|
|
|
error("Failed to read game data from '" IDS_HR1_EXE_1 "'");
|
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_VERBS);
|
|
|
|
loadWords(*stream, _verbs);
|
2016-02-26 23:32:06 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_NOUNS);
|
|
|
|
loadWords(*stream, _nouns);
|
2016-02-26 23:32:06 +01:00
|
|
|
}
|
|
|
|
|
2016-03-07 20:43:37 +01:00
|
|
|
void HiRes1Engine::initState() {
|
|
|
|
_state.room = 1;
|
2016-03-18 23:41:42 +01:00
|
|
|
_state.moves = 1;
|
2016-03-07 20:43:37 +01:00
|
|
|
_state.isDark = false;
|
|
|
|
|
|
|
|
_state.vars.clear();
|
|
|
|
_state.vars.resize(IDI_HR1_NUM_VARS);
|
|
|
|
|
2016-03-24 22:50:42 +01:00
|
|
|
StreamPtr stream(_files->createReadStream(IDS_HR1_EXE_1));
|
2016-03-07 20:43:37 +01:00
|
|
|
|
|
|
|
// Load room data from executable
|
|
|
|
_state.rooms.clear();
|
2016-03-10 20:44:56 +01:00
|
|
|
_roomDesc.clear();
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_ROOMS);
|
2016-03-07 20:43:37 +01:00
|
|
|
for (uint i = 0; i < IDI_HR1_NUM_ROOMS; ++i) {
|
2016-03-23 11:14:51 +01:00
|
|
|
Room room;
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->readByte();
|
|
|
|
_roomDesc.push_back(stream->readByte());
|
2016-03-07 20:43:37 +01:00
|
|
|
for (uint j = 0; j < 6; ++j)
|
2016-03-24 09:51:51 +01:00
|
|
|
room.connections[j] = stream->readByte();
|
|
|
|
room.picture = stream->readByte();
|
|
|
|
room.curPicture = stream->readByte();
|
2016-03-07 20:43:37 +01:00
|
|
|
_state.rooms.push_back(room);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Load item data from executable
|
|
|
|
_state.items.clear();
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->seek(IDI_HR1_OFS_ITEMS);
|
|
|
|
while (stream->readByte() != 0xff) {
|
2016-03-16 23:12:31 +01:00
|
|
|
Item item = { };
|
2016-03-24 09:51:51 +01:00
|
|
|
item.noun = stream->readByte();
|
|
|
|
item.room = stream->readByte();
|
|
|
|
item.picture = stream->readByte();
|
|
|
|
item.isLineArt = stream->readByte();
|
|
|
|
item.position.x = stream->readByte();
|
|
|
|
item.position.y = stream->readByte();
|
|
|
|
item.state = stream->readByte();
|
|
|
|
item.description = stream->readByte();
|
2016-03-07 20:43:37 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
stream->readByte();
|
2016-03-07 20:43:37 +01:00
|
|
|
|
2016-03-24 09:51:51 +01:00
|
|
|
byte size = stream->readByte();
|
2016-03-07 20:43:37 +01:00
|
|
|
|
|
|
|
for (uint i = 0; i < size; ++i)
|
2016-03-24 09:51:51 +01:00
|
|
|
item.roomPictures.push_back(stream->readByte());
|
2016-03-07 20:43:37 +01:00
|
|
|
|
|
|
|
_state.items.push_back(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void HiRes1Engine::restartGame() {
|
|
|
|
initState();
|
2016-03-11 00:24:31 +01:00
|
|
|
_display->printString(_strings.pressReturn);
|
2016-03-07 20:43:37 +01:00
|
|
|
inputString(); // Missing in the original
|
|
|
|
_display->printAsciiString("\r\r\r\r\r");
|
|
|
|
}
|
|
|
|
|
|
|
|
void HiRes1Engine::drawPic(byte pic, Common::Point pos) const {
|
2016-03-26 20:16:03 +01:00
|
|
|
_graphics->drawPic(*_pictures[pic]->createReadStream(), pos);
|
2016-03-07 20:43:37 +01:00
|
|
|
}
|
|
|
|
|
2016-03-26 14:29:26 +01:00
|
|
|
void HiRes1Engine::printString(const Common::String &str) {
|
|
|
|
Common::String wrap = str;
|
|
|
|
wordWrap(wrap);
|
|
|
|
_display->printString(wrap);
|
|
|
|
|
|
|
|
if (_messageDelay)
|
|
|
|
delay(14 * 166018 / 1000);
|
|
|
|
}
|
|
|
|
|
2016-03-26 14:11:18 +01:00
|
|
|
void HiRes1Engine::printMessage(uint idx) {
|
2016-03-26 14:29:26 +01:00
|
|
|
const Common::String &msg = _messages[idx - 1];
|
2016-03-26 14:11:18 +01:00
|
|
|
|
2016-03-07 15:19:26 +01:00
|
|
|
// Messages with hardcoded overrides don't delay after printing.
|
|
|
|
// It's unclear if this is a bug or not. In some cases the result
|
|
|
|
// is that these strings will scroll past the four-line text window
|
|
|
|
// before the user gets a chance to read them.
|
|
|
|
// NOTE: later games seem to wait for a key when the text window
|
|
|
|
// overflows and don't use delays. It might be better to use
|
|
|
|
// that system for this game as well.
|
2016-02-28 13:24:41 +01:00
|
|
|
switch (idx) {
|
2016-02-28 13:43:28 +01:00
|
|
|
case IDI_HR1_MSG_CANT_GO_THERE:
|
|
|
|
case IDI_HR1_MSG_DONT_HAVE_IT:
|
2016-03-02 12:59:11 +01:00
|
|
|
case IDI_HR1_MSG_DONT_UNDERSTAND:
|
2016-02-28 13:43:28 +01:00
|
|
|
case IDI_HR1_MSG_GETTING_DARK:
|
2016-03-26 14:29:26 +01:00
|
|
|
_display->printString(msg);
|
2016-03-26 14:11:18 +01:00
|
|
|
return;
|
2016-02-28 13:24:41 +01:00
|
|
|
}
|
|
|
|
|
2016-03-26 14:29:26 +01:00
|
|
|
printString(msg);
|
2016-02-28 13:24:41 +01:00
|
|
|
}
|
|
|
|
|
2016-03-14 10:04:51 +01:00
|
|
|
void HiRes1Engine::drawItem(const Item &item, const Common::Point &pos) const {
|
|
|
|
if (item.isLineArt) {
|
2016-03-24 09:51:51 +01:00
|
|
|
StreamPtr stream(_corners[item.picture - 1]->createReadStream());
|
|
|
|
static_cast<Graphics_v1 *>(_graphics)->drawCorners(*stream, pos);
|
2016-03-14 10:04:51 +01:00
|
|
|
} else
|
|
|
|
drawPic(item.picture, pos);
|
|
|
|
}
|
|
|
|
|
2016-03-26 14:29:26 +01:00
|
|
|
void HiRes1Engine::loadRoom(byte roomNr) {
|
|
|
|
_roomData.description = _messages[_roomDesc[_state.room - 1] - 1];
|
|
|
|
}
|
|
|
|
|
2016-03-14 15:39:19 +01:00
|
|
|
void HiRes1Engine::showRoom() {
|
2016-03-10 20:44:56 +01:00
|
|
|
if (!_state.isDark) {
|
|
|
|
drawPic(getCurRoom().curPicture);
|
|
|
|
drawItems();
|
|
|
|
}
|
|
|
|
|
|
|
|
_display->updateHiResScreen();
|
2016-03-26 14:11:18 +01:00
|
|
|
_messageDelay = false;
|
2016-03-26 14:29:26 +01:00
|
|
|
printString(_roomData.description);
|
2016-03-26 14:11:18 +01:00
|
|
|
_messageDelay = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void HiRes1Engine::wordWrap(Common::String &str) const {
|
|
|
|
uint end = 39;
|
|
|
|
|
|
|
|
while (1) {
|
|
|
|
if (str.size() <= end)
|
|
|
|
return;
|
|
|
|
|
|
|
|
while (str[end] != APPLECHAR(' '))
|
|
|
|
--end;
|
|
|
|
|
|
|
|
str.setChar(APPLECHAR('\r'), end);
|
|
|
|
end += 40;
|
|
|
|
}
|
2016-03-10 20:44:56 +01:00
|
|
|
}
|
|
|
|
|
2016-03-06 21:59:55 +01:00
|
|
|
Engine *HiRes1Engine_create(OSystem *syst, const AdlGameDescription *gd) {
|
2016-02-27 15:03:24 +01:00
|
|
|
return new HiRes1Engine(syst, gd);
|
2016-02-26 23:32:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} // End of namespace Adl
|