Function addObjcMethod

#include <Geode/utils/ObjcHook.hpp>geode::Result<>addObjcMethod(,
std::stringconst&selectorName
,)

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.

Parameters

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
Return value
Ok() if the method was added successfully, or an error.
Examples0