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 "ffse.hh"
00038 #include "view/MainFrame.hh"
00039
00040 using namespace ffse;
00041
00042
00043 void InitXmlResource();
00044
00045
00046 const wxString *ffseApp::APP_NAME =
00047 new wxString(wxT("ffse"));
00048
00049 const wxString *ffseApp::APP_VERSION =
00050 new wxString(wxT("1.1"));
00051
00052 const wxString *ffseApp::APP_COPYRIGHT =
00053 new wxString(wxT("Copyright (C) 2004-2005 emuWorks"));
00054
00055 const wxString *ffseApp::APP_URL =
00056 new wxString(wxT("http://games.technoplaza.net/"));
00057
00058 bool ffseApp::OnInit() {
00059
00060 wxXmlResource::Get()->InitAllHandlers();
00061 InitXmlResource();
00062
00063 MainFrame *frame = new MainFrame;
00064 frame->SetTitle(*APP_NAME + wxT(' ') + *APP_VERSION);
00065 frame->Show(true);
00066 SetTopWindow(frame);
00067
00068 return true;
00069 }
00070
00071 IMPLEMENT_APP(ffseApp)
00072 IMPLEMENT_CLASS(ffseApp, wxApp)
00073