00001 /* 00002 * dwsrame - Dragon Warrior SRAM Editor 00003 * Copyright (C) 2006-2007 emuWorks 00004 * http://games.technoplaza.net/ 00005 * 00006 * This file is part of dwsrame. 00007 * 00008 * dwsrame is free software; you can redistribute it and/or modify it under the 00009 * terms of the GNU General Public License as published by the Free Software 00010 * Foundation; either version 2 of the License, or (at your option) any later 00011 * version. 00012 * 00013 * dwsrame is distributed in the hope that it will be useful, but WITHOUT ANY 00014 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00015 * A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License along with 00018 * dwsrame; if not, write to the Free Software Foundation, Inc., 00019 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00022 // $Id: sramfiletarget.cc,v 1.2 2007/02/02 22:25:17 technoplaza Exp $ 00023 00024 #ifdef HAVE_CONFIG_H 00025 #include <config.h> 00026 #endif 00027 00028 #include <wx/wxprec.h> 00029 00030 #ifndef WX_PRECOMP 00031 #include <wx/wx.h> 00032 #endif 00033 00034 #include "view/mainframe.hh" 00035 #include "view/sramfiletarget.hh" 00036 00037 using namespace dwsrame; 00038 00039 bool SRAMFileTarget::OnDropFiles(wxCoord, wxCoord, const wxArrayString &files) { 00040 if (files.GetCount() > 0) { 00041 frame->openSRAM(files[0]); 00042 } 00043 00044 return true; 00045 } 00046