Function replaceObjcMethod

#include <Geode/utils/ObjcHook.hpp>geode::Result<void*>replaceObjcMethod(
charconst*className
,
charconst*selectorName
,)

Replace an Objective-C method with a new implementation.

Parameters

className

The name of the class whose method to replace

selectorName

The name of the method to replace

imp

The new implementation of the method
Return value
Ok() if the method was replaced successfully, or an error.
Examples0