aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap/debugger.cpp
diff options
context:
space:
mode:
authorStrangerke2016-04-12 07:26:30 +0200
committerEugene Sandulenko2016-05-10 09:54:21 +0200
commit52f0712b66fff3351ae6c2b5fd8e1abcdaad6001 (patch)
treec6fac5a33b374f7530722954d24af430b1ee91d2 /engines/gnap/debugger.cpp
parent03027be392de3dbf698361abf2395f3d7cc4e53e (diff)
downloadscummvm-rg350-52f0712b66fff3351ae6c2b5fd8e1abcdaad6001.tar.gz
scummvm-rg350-52f0712b66fff3351ae6c2b5fd8e1abcdaad6001.tar.bz2
scummvm-rg350-52f0712b66fff3351ae6c2b5fd8e1abcdaad6001.zip
GNAP: Add debugger
Diffstat (limited to 'engines/gnap/debugger.cpp')
-rw-r--r--engines/gnap/debugger.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/engines/gnap/debugger.cpp b/engines/gnap/debugger.cpp
new file mode 100644
index 0000000000..07f3f6714c
--- /dev/null
+++ b/engines/gnap/debugger.cpp
@@ -0,0 +1,42 @@
+/* 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 "gnap/debugger.h"
+#include "gnap/gnap.h"
+
+namespace Gnap {
+
+Debugger::Debugger(GnapEngine *vm) : GUI::Debugger(), _vm(vm) {
+ // Register methods
+ registerCmd("hotspots", WRAP_METHOD(Debugger, Cmd_Hotspots));
+
+ // Set fields
+ _showHotspotNumber = false;
+}
+
+bool Debugger::Cmd_Hotspots(int argc, const char **argv) {
+ _showHotspotNumber ^= 1;
+
+ return true;
+}
+
+} // End of namespace Gnap