lsnes rr2-β24
[lsnes.git] / src / core / dispatch.cpp
blob74f68c6e9b00eeb886a7923585a72387c2b03636
1 #include "core/dispatch.hpp"
3 #include <sstream>
4 #include <iomanip>
5 #include <cmath>
7 emulator_dispatch::emulator_dispatch()
8 : autohold_reconfigure("autohold_reconfigure"), autohold_update("autohold_update"),
9 autofire_update("autofire_update"), close("notify_close"),
10 sound_change("sound_change"), screen_update("screen_update"), status_update("status_update"),
11 sound_unmute("sound_unmute"), mode_change("mode_change"), core_change("core_change"),
12 title_change("title_change"), branch_change("branch_change"), mbranch_change("mbranch_change"),
13 core_changed("core_changed"), voice_stream_change("voice_stream_change"),
14 vu_change("vu_change"), subtitle_change("subtitle_change"), multitrack_change("multitrack_change"),
15 action_update("action_update")
19 void emulator_dispatch::set_error_streams(std::ostream* stream)
21 autofire_update.errors_to(stream);
22 autohold_reconfigure.errors_to(stream);
23 autohold_update.errors_to(stream);
24 close.errors_to(stream);
25 core_change.errors_to(stream);
26 mode_change.errors_to(stream);
27 screen_update.errors_to(stream);
28 sound_change.errors_to(stream);
29 sound_unmute.errors_to(stream);
30 status_update.errors_to(stream);
31 subtitle_change.errors_to(stream);
32 voice_stream_change.errors_to(stream);
33 vu_change.errors_to(stream);
34 core_changed.errors_to(stream);
35 multitrack_change.errors_to(stream);
36 title_change.errors_to(stream);
37 branch_change.errors_to(stream);
38 mbranch_change.errors_to(stream);
39 action_update.errors_to(stream);
42 dispatch::source<> notify_new_core("new_core");