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:
class Impl;
std::shared_ptr<Impl> m_impl;
explicit Hook(std::shared_ptr<Impl>&& impl);
~Hook();
friend class Mod;
friend class Loader;
public:
explicit Hook(std::shared_ptr<Impl>&& 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<Impl> m_impl;
explicit Patch(std::shared_ptr<Impl>&& impl);
~Patch();
friend class Mod;
friend class Loader;
public:
explicit Patch(std::shared_ptr<Impl>&& impl);
static std::shared_ptr<Patch> create(void* address, const ByteVector& patch);