Reordered a function call. Now it updates the lua window with the proper file path when you select a lua script from the recent menu.

This commit is contained in:
fatratknight 2011-07-05 01:56:44 +00:00
parent 5975decb3d
commit 36a2723fe4
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
-r**** - FCEUX 2.1.5 release
4-Jul-2011 - FatRatKnight - Lua console now gets the proper file path when selecting a file from the recent menu.
1-jun-2011 - prg318 - sdl - print usage when --help is passed even if SDL fails
plombo - added stock icons to menu items
plombo - added new gamepad configuration dialog

View File

@ -1543,6 +1543,7 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
char*& fname = recent_lua[wParam - LUA_FIRST_RECENT_FILE];
if(fname)
{
UpdateLuaConsole(fname);
if (!FCEU_LoadLuaCode(fname))
{
//int result = MessageBox(hWnd,"Remove from list?", "Could Not Open Recent File", MB_YESNO);
@ -1553,7 +1554,6 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
//}
//adelikat: Commenting this code out because it is annoying 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.
}
UpdateLuaConsole(fname);
}
}
#endif