diff --git a/changelog.txt b/changelog.txt index 223dd250..4322f5dc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/src/drivers/win/window.cpp b/src/drivers/win/window.cpp index f9e71cb7..0372cdc0 100644 --- a/src/drivers/win/window.cpp +++ b/src/drivers/win/window.cpp @@ -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