diff options
| author | Nipun Garg | 2019-03-13 13:52:12 +0530 |
|---|---|---|
| committer | Eugene Sandulenko | 2019-09-03 17:16:41 +0200 |
| commit | 50e2b5b5bf09caa20d2d2088d997fe8991efb93e (patch) | |
| tree | cea8ba3e1ca29a9c59488951f8a40a6ea9d907ec | |
| parent | d560efbef797a3d976dcafffc0c0cdd7252f5763 (diff) | |
| download | scummvm-rg350-50e2b5b5bf09caa20d2d2088d997fe8991efb93e.tar.gz scummvm-rg350-50e2b5b5bf09caa20d2d2088d997fe8991efb93e.tar.bz2 scummvm-rg350-50e2b5b5bf09caa20d2d2088d997fe8991efb93e.zip | |
HDB: Add the Console class to HDB for the interactive Debugger
| -rw-r--r-- | engines/hdb/console.cpp | 38 | ||||
| -rw-r--r-- | engines/hdb/console.h | 40 | ||||
| -rw-r--r-- | engines/hdb/module.mk | 3 |
3 files changed, 80 insertions, 1 deletions
diff --git a/engines/hdb/console.cpp b/engines/hdb/console.cpp new file mode 100644 index 0000000000..65e8dba666 --- /dev/null +++ b/engines/hdb/console.cpp @@ -0,0 +1,38 @@ +/* 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. + * + */ + +#include "gui/debugger.h" + +#include "hdb.h" +#include "console.h" + +namespace HDB { + +Console::Console() { + _visible = true; +} + +Console::~Console() { + _visible = false; +} + +} // End of namespace Plumbers diff --git a/engines/hdb/console.h b/engines/hdb/console.h new file mode 100644 index 0000000000..9b77d41713 --- /dev/null +++ b/engines/hdb/console.h @@ -0,0 +1,40 @@ +/* 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. +* +*/ + +#ifndef HDB_CONSOLE_H +#define HDB_CONSOLE_H + +#include "gui/debugger.h" + +namespace HDB { + +class Game; + +class Console : public GUI::Debugger { +public: + explicit Console(); + virtual ~Console(); +private: + bool _visible; +}; +} +#endif diff --git a/engines/hdb/module.mk b/engines/hdb/module.mk index 01a84f3619..1136660aa1 100644 --- a/engines/hdb/module.mk +++ b/engines/hdb/module.mk @@ -2,7 +2,8 @@ MODULE := engines/hdb MODULE_OBJS := \ detection.o \ - hdb.o + hdb.o \ + console.o MODULE_DIRS += \ engines/hdb |
