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: dwsrame.cc,v 1.2 2007/01/31 21:12:57 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 <wx/xrc/xmlres.h> 00035 00036 #include "dwsrame.hh" 00037 #include "view/mainframe.hh" 00038 00039 using namespace dwsrame; 00040 00041 // prototype for InitXmlResource function 00042 void InitXmlResource(); 00043 00044 bool dwsrameApp::OnInit() { 00045 // initialize the XRC resources 00046 wxXmlResource::Get()->InitAllHandlers(); 00047 InitXmlResource(); 00048 00049 frame = new MainFrame; 00050 frame->Show(); 00051 00052 return true; 00053 } 00054 00055 IMPLEMENT_CLASS(dwsrameApp, wxApp) 00056 IMPLEMENT_APP(dwsrameApp) 00057