46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From 6551255ec29d75700426d5e9fbae2ef4a510c61d Mon Sep 17 00:00:00 2001
|
|
From: Juanjo <juanjo.ng.83@gmail.com>
|
|
Date: Sun, 28 Jul 2013 14:21:56 +0000
|
|
Subject: [PATCH 228/249] Add a console command to open cheat window.
|
|
|
|
---
|
|
src/console_cmds.cpp | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
|
|
index 1a4ea92..11cf46b 100644
|
|
--- a/src/console_cmds.cpp
|
|
+++ b/src/console_cmds.cpp
|
|
@@ -423,6 +423,20 @@ DEF_CONSOLE_CMD(ConListFiles)
|
|
return true;
|
|
}
|
|
|
|
+/* Open the cheat window. */
|
|
+DEF_CONSOLE_CMD(ConOpenCheats)
|
|
+{
|
|
+ if (argc == 0) {
|
|
+ IConsoleHelp("Open the cheat window. Usage: 'open_cheats'");
|
|
+ return true;
|
|
+ }
|
|
+
|
|
+ extern void ShowCheatWindow();
|
|
+ ShowCheatWindow();
|
|
+
|
|
+ return true;
|
|
+}
|
|
+
|
|
/* Change the dir via console */
|
|
DEF_CONSOLE_CMD(ConChangeDirectory)
|
|
{
|
|
@@ -1926,6 +1940,7 @@ void IConsoleStdLibRegister()
|
|
IConsoleCmdRegister("save", ConSave);
|
|
IConsoleCmdRegister("saveconfig", ConSaveConfig);
|
|
IConsoleCmdRegister("ls", ConListFiles);
|
|
+ IConsoleCmdRegister("open_cheats", ConOpenCheats);
|
|
IConsoleCmdRegister("cd", ConChangeDirectory);
|
|
IConsoleCmdRegister("pwd", ConPrintWorkingDirectory);
|
|
IConsoleCmdRegister("clear", ConClearBuffer);
|
|
--
|
|
1.8.1.2
|
|
|