Win32 - Drag & Drop for Lua files

This commit is contained in:
adelikat 2009-03-01 13:10:02 +00:00
parent 15c2e470c6
commit 82de3f1477
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
---version 2.0.4 yet to be released--- ---version 2.0.4 yet to be released---
25-feb-2009 - adelikat - 2in32 - Memwatch - added cancel to save changes? message box 01-mar-2009 - adelikat - win32 - Drag & Drop Lua files
25-feb-2009 - adelikat - win32 - Memwatch - added cancel to save changes? message box
22-feb-2009 - adelikat - win32 - Lua - made speedmode("turbo") turn on turbo (which employs frameskipping) rather than max speed 22-feb-2009 - adelikat - win32 - Lua - made speedmode("turbo") turn on turbo (which employs frameskipping) rather than max speed
22-feb-2009 - adelikat - Increased lua gui.text height (and DrawTextTransWH() height) 22-feb-2009 - adelikat - Increased lua gui.text height (and DrawTextTransWH() height)
21-feb-2009 - adelikat - win32 - Lua - Added -lua commandline argment, loads a lua script on startup 21-feb-2009 - adelikat - win32 - Lua - Added -lua commandline argment, loads a lua script on startup

View File

@ -1046,6 +1046,11 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
FCEUI_LoadMovie(ftmp, 1, false, false); //We are convinced it is a movie file, attempt to load it FCEUI_LoadMovie(ftmp, 1, false, false); //We are convinced it is a movie file, attempt to load it
} }
//------------------------------------------------------- //-------------------------------------------------------
//Check if Lua file
//-------------------------------------------------------
else if (!(fileDropped.find(".lua") == string::npos) && !(fileDropped.find(".lua") == string::npos))
FCEU_LoadLuaCode(ftmp);
//-------------------------------------------------------
//If not a movie, Load it as a ROM file //If not a movie, Load it as a ROM file
//------------------------------------------------------- //-------------------------------------------------------
else else