22
33#include " Horrible.hpp"
44
5- #include < Geode/Geode.hpp>
6-
5+ #include < Geode/loader/Event.hpp>
76#include < Geode/loader/Dispatch.hpp>
87
98#ifdef MY_MOD_ID
109#undef MY_MOD_ID
1110#endif
1211#define MY_MOD_ID " arcticwoof.horrible_ideas"
1312
14- using namespace geode ::prelude;
15-
1613namespace horrible {
17- class HorribleOptionEventV2 : public Event {
14+ class HorribleOptionEventV2 : public geode :: Event {
1815 private:
1916 const std::string m_id;
2017 const bool m_toggled;
@@ -27,19 +24,19 @@ namespace horrible {
2724 bool getToggled () const { return m_toggled; };
2825 };
2926
30- class HorribleOptionEventFilterV2 : public EventFilter <HorribleOptionEventV2> {
27+ class HorribleOptionEventFilterV2 : public geode :: EventFilter<HorribleOptionEventV2> {
3128 private:
3229 const std::vector<std::string> m_ids;
3330
3431 public:
35- using Callback = ListenerResult(HorribleOptionEventV2*);
32+ using Callback = geode:: ListenerResult(HorribleOptionEventV2*);
3633
37- ListenerResult handle (std::function<Callback> fn, HorribleOptionEventV2* event) {
34+ geode:: ListenerResult handle (std::function<Callback> fn, HorribleOptionEventV2* event) {
3835 for (auto const & id : m_ids) {
3936 if (event->getId () == id) return fn (event);
4037 };
4138
42- return ListenerResult::Propagate;
39+ return geode:: ListenerResult::Propagate;
4340 };
4441
4542 HorribleOptionEventFilterV2 () = default;
@@ -49,13 +46,13 @@ namespace horrible {
4946
5047 class OptionManagerV2 {
5148 public:
52- static Result<> registerOption (Option const & option)
49+ static geode:: Result<> registerOption (Option const & option)
5350 GEODE_EVENT_EXPORT(&OptionManagerV2::registerOption, (option));
5451
55- static Result<bool > getOption (std::string_view id)
52+ static geode:: Result<bool > getOption (std::string_view id)
5653 GEODE_EVENT_EXPORT(&OptionManagerV2::getOption, (id));
5754
58- static Result<bool > setOption (std::string_view id, bool enable)
55+ static geode:: Result<bool > setOption (std::string_view id, bool enable)
5956 GEODE_EVENT_EXPORT(&OptionManagerV2::setOption, (id, enable));
6057 };
6158};
0 commit comments