summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/Src/MsgHandler.cpp9
-rw-r--r--Source/Core/DolphinWX/Src/WiimoteConfigDiag.cpp2
2 files changed, 5 insertions, 6 deletions
diff --git a/Source/Core/Common/Src/MsgHandler.cpp b/Source/Core/Common/Src/MsgHandler.cpp
index 63406c6312..57f8fd83fc 100644
--- a/Source/Core/Common/Src/MsgHandler.cpp
+++ b/Source/Core/Common/Src/MsgHandler.cpp
@@ -54,7 +54,6 @@ bool MsgAlert(bool yes_no, int Style, const char* format, ...)
// Read message and write it to the log
std::string caption;
char buffer[2048];
- bool ret = true;
static std::string info_caption;
static std::string warn_caption;
@@ -88,10 +87,10 @@ bool MsgAlert(bool yes_no, int Style, const char* format, ...)
ERROR_LOG(MASTER_LOG, "%s: %s", caption.c_str(), buffer);
// Don't ignore questions, especially AskYesNo, PanicYesNo could be ignored
- if (msg_handler && (AlertEnabled || Style == QUESTION)) {
- ret = msg_handler(caption.c_str(), buffer, yes_no, Style);
- }
- return ret;
+ if (msg_handler && (AlertEnabled || Style == QUESTION))
+ return msg_handler(caption.c_str(), buffer, yes_no, Style);
+
+ return true;
}
// Default non library depended panic alert
diff --git a/Source/Core/DolphinWX/Src/WiimoteConfigDiag.cpp b/Source/Core/DolphinWX/Src/WiimoteConfigDiag.cpp
index 0d3e91a340..6e9520c19e 100644
--- a/Source/Core/DolphinWX/Src/WiimoteConfigDiag.cpp
+++ b/Source/Core/DolphinWX/Src/WiimoteConfigDiag.cpp
@@ -144,7 +144,7 @@ void WiimoteConfigPage::UpdateWiimoteStatus()
// Connect wiimotes
if (WIIMOTE_SRC_EMU & g_wiimote_sources[m_index])
CFrame::ConnectWiimote(m_index, true);
- else if (WIIMOTE_SRC_REAL & g_wiimote_sources[m_index] && orig_source & WIIMOTE_SRC_EMU)
+ else if (WIIMOTE_SRC_REAL & g_wiimote_sources[m_index])
CFrame::ConnectWiimote(m_index, WiimoteReal::g_wiimotes[m_index]->IsConnected());
}
}