Some Wiimote to Gamepad translations for Wario Land Shake It

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1095 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2008-11-08 06:31:18 +00:00
parent 3303639a6e
commit 83b8527085
8 changed files with 428 additions and 21 deletions

View File

@ -433,7 +433,11 @@ void CFrame::OnPlay(wxCommandEvent& WXUNUSED (event))
void CFrame::OnStop(wxCommandEvent& WXUNUSED (event))
{
if (Core::GetState() != Core::CORE_UNINITIALIZED)
// Ask for confirmation in case the user accidently clicked Stop
int answer = wxMessageBox("Are you sure you want to stop the current emulation?",
"Confirm", wxYES_NO);
if (answer == wxYES && Core::GetState() != Core::CORE_UNINITIALIZED)
{
Core::Stop();
UpdateGUI();