Add a new Objective-C method to a class. This method will be created using the imp provided. If the method already exists, it won’t do anything.
Function addObjcMethod
#include <Geode/utils/ObjcHook.hpp>
std::stringconst&className
,std::stringconst&selectorName
,void*imp
)className
The name of the class to add the method to
selectorName
The name of the method to add
imp
The implementation of the method
Ok() if the method was added successfully, or an error.