diff --git a/loader/include/Geode/loader/Dispatch.hpp b/loader/include/Geode/loader/Dispatch.hpp index dc6e53e5..3be80092 100644 --- a/loader/include/Geode/loader/Dispatch.hpp +++ b/loader/include/Geode/loader/Dispatch.hpp @@ -45,5 +45,6 @@ namespace geode { } DispatchFilter(std::string const& id) : m_id(id) {} + DispatchFilter(DispatchFilter const&) = default; }; } \ No newline at end of file diff --git a/loader/include/Geode/loader/IPC.hpp b/loader/include/Geode/loader/IPC.hpp index 5802d1b2..7d6444bc 100644 --- a/loader/include/Geode/loader/IPC.hpp +++ b/loader/include/Geode/loader/IPC.hpp @@ -61,6 +61,7 @@ namespace geode { std::string const& modID, std::string const& messageID ); + IPCFilter(IPCFilter const&) = default; }; std::monostate listenForIPC(std::string const& messageID, json::Value(*callback)(IPCEvent*)); diff --git a/loader/include/Geode/loader/Index.hpp b/loader/include/Geode/loader/Index.hpp index 7d23f462..a292539f 100644 --- a/loader/include/Geode/loader/Index.hpp +++ b/loader/include/Geode/loader/Index.hpp @@ -28,6 +28,7 @@ namespace geode { ListenerResult handle(utils::MiniFunction fn, ModInstallEvent* event); ModInstallFilter(std::string const& id); + ModInstallFilter(ModInstallFilter const&) = default; }; struct GEODE_DLL IndexUpdateEvent : public Event { @@ -41,6 +42,7 @@ namespace geode { ListenerResult handle(utils::MiniFunction fn, IndexUpdateEvent* event); IndexUpdateFilter(); + IndexUpdateFilter(IndexUpdateFilter const&) = default; }; struct IndexSourceImpl; diff --git a/loader/include/Geode/loader/SettingEvent.hpp b/loader/include/Geode/loader/SettingEvent.hpp index 33a396c6..eaac671d 100644 --- a/loader/include/Geode/loader/SettingEvent.hpp +++ b/loader/include/Geode/loader/SettingEvent.hpp @@ -32,6 +32,7 @@ namespace geode { std::string const& modID, std::optional const& settingKey ); + SettingChangedFilter(SettingChangedFilter const&) = default; }; /** @@ -56,6 +57,7 @@ namespace geode { std::string const& modID, std::string const& settingID ) : SettingChangedFilter(modID, settingID) {} + GeodeSettingChangedFilter(GeodeSettingChangedFilter const&) = default; }; template diff --git a/loader/include/Geode/ui/EnterLayerEvent.hpp b/loader/include/Geode/ui/EnterLayerEvent.hpp index 08d595f2..91c22835 100644 --- a/loader/include/Geode/ui/EnterLayerEvent.hpp +++ b/loader/include/Geode/ui/EnterLayerEvent.hpp @@ -34,6 +34,7 @@ namespace geode { AEnterLayerFilter( std::optional const& id ); + AEnterLayerFilter(AEnterLayerFilter const&) = default; }; template @@ -71,5 +72,6 @@ namespace geode { EnterLayerFilter( std::optional const& id ) : m_targetID(id) {} + EnterLayerFilter(EnterLayerFilter const&) = default; }; } diff --git a/loader/test/dependency/main.hpp b/loader/test/dependency/main.hpp index 583d81f1..063281d8 100644 --- a/loader/test/dependency/main.hpp +++ b/loader/test/dependency/main.hpp @@ -29,4 +29,5 @@ public: ListenerResult handle(utils::MiniFunction fn, TestEvent* event); TestEventFilter(); + TestEventFilter(TestEventFilter const&) = default; };