From c89f68cb182a406d387ffbc3847710adc25d9add Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:15:57 +0300 Subject: [PATCH] move the ctors back to private --- loader/include/Geode/loader/Hook.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/include/Geode/loader/Hook.hpp b/loader/include/Geode/loader/Hook.hpp index 1f79e9c6..9e55939e 100644 --- a/loader/include/Geode/loader/Hook.hpp +++ b/loader/include/Geode/loader/Hook.hpp @@ -16,13 +16,13 @@ namespace geode { private: class Impl; std::shared_ptr m_impl; + explicit Hook(std::shared_ptr&& impl); ~Hook(); friend class Mod; friend class Loader; public: - explicit Hook(std::shared_ptr&& impl); /** * Create a hook at an address. The hook is enabled immediately. By @@ -145,13 +145,13 @@ namespace geode { private: class Impl; std::shared_ptr m_impl; + explicit Patch(std::shared_ptr&& impl); ~Patch(); friend class Mod; friend class Loader; public: - explicit Patch(std::shared_ptr&& impl); static std::shared_ptr create(void* address, const ByteVector& patch);