From 80938a39ceb94ee63a9147d5cbb8aff90b84c3a2 Mon Sep 17 00:00:00 2001 From: xiushu <461474853@qq.com> Date: Sun, 21 Feb 2016 13:12:35 +0800 Subject: [PATCH] Just remove useless space and fix translations Oops --- UI/GameSettingsScreen.cpp | 6 +++--- UI/NativeApp.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 0e395b677c..6afb8510d9 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -473,7 +473,7 @@ void GameSettingsScreen::CreateViews() { #ifdef _WIN32 networkingSettings->Add(new PopupTextInputChoice(&g_Config.proAdhocServer, n->T("Change proAdhocServer Address"), "", 255, screenManager())); #elif defined(ANDROID) - networkingSettings->Add(new ChoiceWithValueDisplay(&g_Config.proAdhocServer, sy->T("Change proAdhocServer Address"), nullptr))->OnClick.Handle(this, &GameSettingsScreen::OnChangeproAdhocServerAddress); + networkingSettings->Add(new ChoiceWithValueDisplay(&g_Config.proAdhocServer, n->T("Change proAdhocServer Address"), nullptr))->OnClick.Handle(this, &GameSettingsScreen::OnChangeproAdhocServerAddress); #else networkingSettings->Add(new ChoiceWithValueDisplay(&g_Config.proAdhocServer, n->T("Change proAdhocServer Address"), nullptr))->OnClick.Handle(this, &GameSettingsScreen::OnChangeproAdhocServerAddress); #endif @@ -917,7 +917,7 @@ UI::EventReturn GameSettingsScreen::OnChangeNickname(UI::EventParams &e) { g_Config.sNickName = name; } #elif defined(ANDROID) - System_SendMessage("inputbox", ("nickname :" + g_Config.sNickName).c_str()); + System_SendMessage("inputbox", ("nickname:" + g_Config.sNickName).c_str()); #endif return UI::EVENT_DONE; } @@ -937,7 +937,7 @@ UI::EventReturn GameSettingsScreen::OnChangeproAdhocServerAddress(UI::EventParam else screenManager()->push(new ProAdhocServerScreen); #elif defined(ANDROID) - System_SendMessage("inputbox", ("IP :" + g_Config.proAdhocServer).c_str()); + System_SendMessage("inputbox", ("IP:" + g_Config.proAdhocServer).c_str()); #else screenManager()->push(new ProAdhocServerScreen); #endif diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 3cc43ad899..461998d0ef 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -739,9 +739,9 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) { } if (msg == "inputbox_completed") { SplitString(value, ':', inputboxValue); - if (inputboxValue[0] == "IP ") + if (inputboxValue[0] == "IP") g_Config.proAdhocServer = inputboxValue[1]; - if (inputboxValue[0] == "nickname ") + if (inputboxValue[0] == "nickname") g_Config.sNickName = inputboxValue[1]; inputboxValue.clear(); }