Win32 - Hooked up remove recent menu item to Lua recent menu
This commit is contained in:
parent
5443d6e15d
commit
37cb2bf0e3
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue