From 69f988a449d2c5e84bf1dfb5949b4b0e6b96c957 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 2 Nov 2009 22:06:07 +0000 Subject: [PATCH] Win32 - remove the messagebox when a recent lua script has an error opening. Lua scripts frequently fail when writing them, so this messagebox quickly becomes annoying. --- src/drivers/win/window.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/drivers/win/window.cpp b/src/drivers/win/window.cpp index 6b52231b..5c9db8b3 100644 --- a/src/drivers/win/window.cpp +++ b/src/drivers/win/window.cpp @@ -1406,12 +1406,13 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam) { if (!FCEU_LoadLuaCode(fname)) { - int result = MessageBox(hWnd,"Remove from list?", "Could Not Open Recent File", MB_YESNO); - if (result == IDYES) - { - RemoveRecentItem((wParam - LUA_FIRST_RECENT_FILE), recent_lua, MAX_NUMBER_OF_LUA_RECENT_FILES); - UpdateLuaRMenu(recentluamenu, recent_lua, MENU_LUA_RECENT, LUA_FIRST_RECENT_FILE); - } + //int result = MessageBox(hWnd,"Remove from list?", "Could Not Open Recent File", MB_YESNO); + //if (result == IDYES) + //{ + // RemoveRecentItem((wParam - LUA_FIRST_RECENT_FILE), recent_lua, MAX_NUMBER_OF_LUA_RECENT_FILES); + // UpdateLuaRMenu(recentluamenu, recent_lua, MENU_LUA_RECENT, LUA_FIRST_RECENT_FILE); + //} + //adelikat: Commenting this code out because it is annoyin in context lua scripts since lua scripts will frequently give errors to those developing them. It is frustrating for this to pop up every time. } } }