1 #ifndef _plat_wxwidgets__menu_loadrom__hpp__included__
2 #define _plat_wxwidgets__menu_loadrom__hpp__included__
6 #include "interface/romtype.hpp"
7 #include "core/dispatch.hpp"
10 class loadrom_menu
: public wxMenu
13 loadrom_menu(wxWindow
* win
, int wxid_low
, int wxid_high
, std::function
<void(core_type
* name
)> cb
);
14 void on_select(wxCommandEvent
& e
);
18 std::map
<int, core_type
*> entries
;
19 std::map
<int, wxMenuItem
*> items
;
22 std::function
<void(core_type
* name
)> callback
;
23 struct dispatch::target
<> corelistener
;