diff options
author | peter1138 <peter1138@openttd.org> | 2007-04-05 12:59:57 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-04-05 12:59:57 +0000 |
commit | 39f92d1f21386dd2f87e26785bbdb348c9775eef (patch) | |
tree | da4e2e636b2508358d93c4b1b736dc5221eabe25 /src/console_cmds.cpp | |
parent | 614dd12f21adbd656dfacc12b3fcf94bbabf045e (diff) | |
download | openttd-39f92d1f21386dd2f87e26785bbdb348c9775eef.tar.xz |
(svn r9565) -Feature: Add list_patches console command. This shows all patches along with their current values. Based on patch by madman2003/GrimRC.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index bcffc4896..40cf2c57c 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1416,6 +1416,19 @@ DEF_CONSOLE_CMD(ConPatch) return true; } +DEF_CONSOLE_CMD(ConListPatches) +{ + if (argc == 0) { + IConsoleHelp("List patch options. Usage: 'list_patches'"); + return true; + } + + if (argc != 1) return false; + + IConsoleListPatches(); + return true; +} + DEF_CONSOLE_CMD(ConListDumpVariables) { const IConsoleVar *var; @@ -1497,6 +1510,7 @@ void IConsoleStdLibRegister() IConsoleCmdRegister("pwd", ConPrintWorkingDirectory); IConsoleCmdRegister("clear", ConClearBuffer); IConsoleCmdRegister("patch", ConPatch); + IConsoleCmdRegister("list_patches", ConListPatches); IConsoleAliasRegister("dir", "ls"); IConsoleAliasRegister("del", "rm %+"); |