Files
GDevelop/IDE/DnDFileEditor.cpp

15 lines
317 B
C++

#include "DnDFileEditor.h"
#include "MainFrame.h"
bool DnDFileEditor::OnDropFiles(wxCoord x, wxCoord y,
const wxArrayString& filenames)
{
size_t nFiles = filenames.GetCount();
if ( nFiles < 1 ) return false;
mainEditor.Open(filenames[0]);
return true;
}