00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifdef HAVE_CONFIG_H
00026 #include <config.h>
00027 #endif
00028
00029 #include <wx/wxprec.h>
00030
00031 #ifndef WX_PRECOMP
00032 #include <wx/wx.h>
00033 #endif
00034
00035 #include <wx/xrc/xmlres.h>
00036
00037 #include "AppConstants.hh"
00038 #include "MPGApp.hh"
00039 #include "view/MPGFrame.hh"
00040
00041 using namespace mpg;
00042
00043 const wxString mpg::APP_NAME(wxT("Metroid Password Generator"));
00044 const wxString mpg::APP_VERSION(wxT(PACKAGE_VERSION));
00045 const wxString mpg::APP_COPYRIGHT(wxT("Copyright (C) 2005 emuWorks"));
00046 const wxString mpg::APP_URL(wxT("http://games.technoplaza.net/"));
00047
00048
00049 void InitXmlResource();
00050
00051 bool MPGApp::OnInit() {
00052
00053 wxXmlResource::Get()->InitAllHandlers();
00054 InitXmlResource();
00055
00056 MPGFrame *frame = new MPGFrame;
00057 frame->Show();
00058
00059 return true;
00060 }
00061
00062 IMPLEMENT_CLASS(MPGApp, wxApp)
00063 IMPLEMENT_APP(MPGApp)
00064