From 60c983e043b9ec502b65785306887003f5bcb27b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 16:32:44 +0300 Subject: Move chat command /uploadlog 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 cf7886bf5..93a3a48a7 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -420,6 +420,7 @@ namespace InputAction TALK_PET, UPLOAD_CONFIG, UPLOAD_SERVER_CONFIG, + UPLOAD_LOG, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 1af14ffc7..aa9432b06 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3557,6 +3557,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "uploadserverconfig", + false}, + {"keyUploadLog", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::uploadLog, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "uploadlog", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 6369a509f..9d16f4b8a 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -359,6 +359,12 @@ SetupActionData setupActionDataOther[] = InputAction::UPLOAD_SERVER_CONFIG, "", }, + { + // TRANSLATORS: input action name + N_("Upload log file"), + InputAction::UPLOAD_LOG, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2