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.

This commit is contained in:
adelikat 2009-11-02 22:06:07 +00:00
parent fe12a1d308
commit 69f988a449
1 changed files with 7 additions and 6 deletions

View File

@ -1406,12 +1406,13 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
{ {
if (!FCEU_LoadLuaCode(fname)) if (!FCEU_LoadLuaCode(fname))
{ {
int result = MessageBox(hWnd,"Remove from list?", "Could Not Open Recent File", MB_YESNO); //int result = MessageBox(hWnd,"Remove from list?", "Could Not Open Recent File", MB_YESNO);
if (result == IDYES) //if (result == IDYES)
{ //{
RemoveRecentItem((wParam - LUA_FIRST_RECENT_FILE), recent_lua, MAX_NUMBER_OF_LUA_RECENT_FILES); // 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); // 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.
} }
} }
} }