2 #include <snes/snes.hpp>
3 #include <ui-libsnes/libsnes.hpp>
6 #include <wx/control.h>
7 #include <wx/combobox.h>
10 #include "avsnoop.hpp"
12 #include "framerate.hpp"
14 #include <boost/lexical_cast.hpp>
18 #include "rom_select_window.hpp"
19 #include "messages_window.hpp"
20 #include "status_window.hpp"
22 class lsnes_app
: public wxApp
25 virtual bool OnInit();
29 IMPLEMENT_APP(lsnes_app
)
31 bool lsnes_app::OnInit()
37 x
<< snes_library_id() << " (" << SNES::Info::Profile
<< " core)";
38 bsnes_core_version
= x
.str();
43 messages
<< "BSNES version: " << bsnes_core_version
<< std::endl
;
44 messages
<< "lsnes version: lsnes rr" << lsnes_version
<< std::endl
;
46 std::string cfgpath
= get_config_path();
47 messages
<< "Saving per-user data to: " << get_config_path() << std::endl
;
49 wx_messages_window
* msgs
= new wx_messages_window();
53 wx_rom_select_window
* romwin
= new wx_rom_select_window();
59 int lsnes_app::OnExit()
67 void window::notify_message() throw(std::bad_alloc
, std::runtime_error
)
69 if(wx_messages_window::ptr
)
70 wx_messages_window::ptr
->notify_message();