Win32 - Memwatch - Drag & Drop for .txt (memwatch) files
This commit is contained in:
parent
996a4f5965
commit
98fbe2d85e
|
@ -1,4 +1,5 @@
|
|||
---version 2.0.4 yet to be released---
|
||||
02-mar-2009 - adelikat - win32 - Drag & Drop for Memwatch dialog (.txt files)
|
||||
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
|
||||
|
|
|
@ -777,6 +777,33 @@ static BOOL CALLBACK MemWatchCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA
|
|||
case WM_QUIT:
|
||||
CloseMemoryWatch();
|
||||
break;
|
||||
|
||||
case WM_DROPFILES:
|
||||
{
|
||||
unsigned int len;
|
||||
char *ftmp;
|
||||
|
||||
len=DragQueryFile((HDROP)wParam,0,0,0)+1;
|
||||
if((ftmp=(char*)malloc(len)))
|
||||
{
|
||||
DragQueryFile((HDROP)wParam,0,ftmp,len);
|
||||
string fileDropped = ftmp;
|
||||
|
||||
//-------------------------------------------------------
|
||||
//Check if .txt file
|
||||
//-------------------------------------------------------
|
||||
if (!(fileDropped.find(".txt") == string::npos)) //ROM is already loaded and .txt in filename
|
||||
{
|
||||
if (GameInfo && !(fileDropped.find(".txt") == string::npos)) //.txt is at the end of the filename so that must be the extension
|
||||
{
|
||||
MemwAddRecentFile(ftmp);
|
||||
OpenMemwatchRecentFile(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_COMMAND:
|
||||
|
||||
//Menu Items
|
||||
|
|
|
@ -829,6 +829,7 @@ END
|
|||
|
||||
MEMWATCH DIALOGEX 0, 0, 261, 270
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
EXSTYLE WS_EX_ACCEPTFILES
|
||||
CAPTION "Memory Watch"
|
||||
MENU MEMWATCHMENU
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x0
|
||||
|
|
|
@ -483,7 +483,7 @@ static char *odirs[FCEUIOD__COUNT]={0,0,0,0,0,0,0,0,0,0,0,0,0}; // odirs, od
|
|||
|
||||
void FCEUI_SetDirOverride(int which, char *n)
|
||||
{
|
||||
// FCEU_PrintError("odirs[%d]=%s->%s", which, odirs[which], n);
|
||||
FCEU_PrintError("odirs[%d]=%s->%s", which, odirs[which], n);
|
||||
if (which < FCEUIOD__COUNT)
|
||||
{
|
||||
odirs[which] = n;
|
||||
|
|
Loading…
Reference in New Issue