#pragma once #include "../meta/meta.hpp" #include "Addresses.hpp" #include "Types.hpp" #include "Wrapper.hpp" #include #include #include #define GEODE_APPLY_MODIFY_FOR_FUNCTION( \ addr_index, pure_index, convention, className, functionName \ ) \ if constexpr (wrap::functionName::uuid != nullptr && (void*)wrap::functionName::uuid != (void*)wrap::functionName::uuid) { \ (void)Mod::get() \ ->addHook::value, convention>( \ #className "::" #functionName, (void*)addresses::address##addr_index() \ ); \ } namespace geode::modifier { template class Modify; template class ModifyBase { public: // unordered_map idea ModifyBase() { Loader::get()->scheduleOnModLoad(getMod(), []() { Derived::apply(); }); } template friend class Modify; // explicit Modify(Property property) idea }; template class Modify { public: Modify() { static_assert(core::meta::always_false, "Custom Modify not implemented."); } }; }