move the ctors back to private

This commit is contained in:
altalk23 2024-01-15 18:15:57 +03:00
parent 69f8e15e21
commit c89f68cb18

View file

@ -16,13 +16,13 @@ namespace geode {
private: private:
class Impl; class Impl;
std::shared_ptr<Impl> m_impl; std::shared_ptr<Impl> m_impl;
explicit Hook(std::shared_ptr<Impl>&& impl);
~Hook(); ~Hook();
friend class Mod; friend class Mod;
friend class Loader; friend class Loader;
public: public:
explicit Hook(std::shared_ptr<Impl>&& impl);
/** /**
* Create a hook at an address. The hook is enabled immediately. By * Create a hook at an address. The hook is enabled immediately. By
@ -145,13 +145,13 @@ namespace geode {
private: private:
class Impl; class Impl;
std::shared_ptr<Impl> m_impl; std::shared_ptr<Impl> m_impl;
explicit Patch(std::shared_ptr<Impl>&& impl);
~Patch(); ~Patch();
friend class Mod; friend class Mod;
friend class Loader; friend class Loader;
public: public:
explicit Patch(std::shared_ptr<Impl>&& impl);
static std::shared_ptr<Patch> create(void* address, const ByteVector& patch); static std::shared_ptr<Patch> create(void* address, const ByteVector& patch);