From 60842f3ebd8f76d35992efc9db0bf77cb5c3cba5 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 6 Jul 2008 16:21:36 +0000 Subject: [PATCH] basicbot fix + gui silliness 2.0! --- src/drivers/win/basicbot.cpp | 1 + src/drivers/win/input.cpp | 2 +- src/drivers/win/main.cpp | 10 +++++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/drivers/win/basicbot.cpp b/src/drivers/win/basicbot.cpp index e816af4a..7ca4d6ff 100644 --- a/src/drivers/win/basicbot.cpp +++ b/src/drivers/win/basicbot.cpp @@ -2272,6 +2272,7 @@ static void StopBasicBot() NewAttempt = true; SetDlgItemText(hwndBasicBot,GUI_BOT_RUN,"Run!"); FCEU_SetBotMode(0); + FCEUI_FrameAdvanceEnd(); } diff --git a/src/drivers/win/input.cpp b/src/drivers/win/input.cpp index 6719998c..4dea565a 100644 --- a/src/drivers/win/input.cpp +++ b/src/drivers/win/input.cpp @@ -120,7 +120,7 @@ int allowUDLR=1; ButtConfig GamePadConfig[4][10]={ //Gamepad 1 { - MK(LEFTALT), MK(LEFTCONTROL), MK(TAB), MK(ENTER), MK(BL_CURSORUP), + MK(A), MK(LEFTCONTROL), MK(TAB), MK(ENTER), MK(BL_CURSORUP), MK(BL_CURSORDOWN),MK(BL_CURSORLEFT),MK(BL_CURSORRIGHT) }, diff --git a/src/drivers/win/main.cpp b/src/drivers/win/main.cpp index e0f6a1a6..98af18e4 100644 --- a/src/drivers/win/main.cpp +++ b/src/drivers/win/main.cpp @@ -367,13 +367,17 @@ void DoFCEUExit() if(goptions & GOO_CONFIRMEXIT) { //Wolfenstein 3D had cute exit messages. - const char * const emsg[4]={"Are you sure you want to leave? I'll become lonely!", + const char * const emsg[7]={"Are you sure you want to leave? I'll become lonely!", + "A strange game. The only winning move is not to play. How about a nice game of chess?", "If you exit, I'll... EAT YOUR MOUSE.", "You can never really exit, you know.", - "E-x-i-t?" + "E.X.I.T?", + "I'm sorry, you missed your exit. There is another one in 19 miles", + "Silly Exit Message goes here" + }; - if(IDYES != MessageBox(hAppWnd, emsg[rand() & 3], "Exit FCE Ultra?", MB_ICONQUESTION | MB_YESNO) ) + if(IDYES != MessageBox(hAppWnd, emsg[rand() & 6], "Exit FCE Ultra?", MB_ICONQUESTION | MB_YESNO) ) { return; }