Win32 - Hooked up remove recent menu item to Lua recent menu

This commit is contained in:
adelikat 2009-05-25 17:42:27 +00:00
parent 5443d6e15d
commit 37cb2bf0e3
1 changed files with 9 additions and 1 deletions

View File

@ -1302,7 +1302,15 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
char*& fname = recent_lua[wParam - LUA_FIRST_RECENT_FILE];
if(fname)
{
FCEU_LoadLuaCode(fname);
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);
UpdateRMenu(recentluamenu, recent_lua, MENU_LUA_RECENT, LUA_FIRST_RECENT_FILE);
}
}
}
}