From 4a39895f1c2d2b5a851b533d084c0b396911c1c7 Mon Sep 17 00:00:00 2001 From: rainwarrior Date: Wed, 31 Aug 2016 03:39:19 +0000 Subject: [PATCH] exit box text replacing "FCE Ultra" with "FCEUX" --- trunk/src/drivers/win/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/src/drivers/win/main.cpp b/trunk/src/drivers/win/main.cpp index 938efaac..d54a86a8 100644 --- a/trunk/src/drivers/win/main.cpp +++ b/trunk/src/drivers/win/main.cpp @@ -431,7 +431,8 @@ void DoFCEUExit() if(goptions & GOO_CONFIRMEXIT) { //Wolfenstein 3D had cute exit messages. - const char * const emsg[7]={"Are you sure you want to leave? I'll become lonely!", + const char * const emsg[]={ + "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.", @@ -439,8 +440,9 @@ void DoFCEUExit() "I'm sorry, you missed your exit. There is another one in 19 miles", "Silly Exit Message goes here" }; + const int emsg_count = sizeof(emsg) / sizeof(emsg[0]); - if(IDYES != MessageBox(hAppWnd, emsg[rand() % 7], "Exit FCE Ultra?", MB_ICONQUESTION | MB_YESNO) ) + if(IDYES != MessageBox(hAppWnd, emsg[rand() % emsg_count], "Exit FCEUX?", MB_ICONQUESTION | MB_YESNO) ) { return; }