From 2981363fef524501a4a24a5f4c60661ebdee80fa Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Wed, 27 Aug 2014 13:11:54 +0300
Subject: Move chat command /dumpmods into actions.

---
 src/input/inputaction.h    | 1 +
 src/input/inputactionmap.h | 9 +++++++++
 src/input/pages/other.cpp  | 6 ++++++
 3 files changed, 16 insertions(+)

(limited to 'src/input')

diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 928b1d5b9..6758492b9 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -403,6 +403,7 @@ namespace InputAction
         DUMP_TESTS,
         DUMP_OGL,
         DUMP_GL,
+        DUMP_MODS,
         TOTAL
     };
 }  // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index eb430ddfa..5e3260584 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3396,6 +3396,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
         InputAction::NO_VALUE, 50,
         InputCondition::INGAME,
         "dumpgl",
+        false},
+    {"keyDumpMods",
+        InputType::UNKNOWN, InputAction::NO_VALUE,
+        InputType::UNKNOWN, InputAction::NO_VALUE,
+        Input::GRP_DEFAULT,
+        &Actions::dumpMods,
+        InputAction::NO_VALUE, 50,
+        InputCondition::INGAME,
+        "dumpMods",
         false}
 };
 
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 4ade43d61..06ce2c348 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -309,6 +309,12 @@ SetupActionData setupActionDataOther[] =
         InputAction::DUMP_GL,
         "",
     },
+    {
+        // TRANSLATORS: input action name
+        N_("Print enabled mods in chat"),
+        InputAction::DUMP_MODS,
+        "",
+    },
     {
         // TRANSLATORS: input action name
         N_("Dump environments into log"),
-- 
cgit v1.2.3-70-g09d2