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 "App.hh"
00039 #include "view/Frame.hh"
00040
00041 using namespace smse;
00042
00043 const wxString smse::APP_NAME(wxT("Super Metroid SRAM Editor"));
00044 const wxString smse::APP_VERSION(wxT("1.0"));
00045 const wxString smse::APP_COPYRIGHT(wxT("Copyright (C) 2005 emuWorks"));
00046 const wxString smse::APP_URL(wxT("http://games.technoplaza.net/"));
00047
00048
00049 void InitXmlResource();
00050
00051 bool App::OnInit() {
00052
00053 wxXmlResource::Get()->InitAllHandlers();
00054 InitXmlResource();
00055
00056 frame = new Frame;
00057 frame->Show();
00058
00059 return true;
00060 }
00061
00062 int App::OnRun() {
00063 if (argc >= 2) {
00064 frame->open(argv[1]);
00065 }
00066
00067 return wxApp::OnRun();
00068 }
00069
00070 IMPLEMENT_CLASS(App, wxApp)
00071 IMPLEMENT_APP(App)
00072