MCPcopy Create free account
hub / github.com/Norbyte/bg3se / CallWrapper

Method CallWrapper

BG3Extender/Osiris/Shared/CustomFunctions.cpp:651–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651bool CustomFunctionInjector::CallWrapper(DivFunctions::CallProc next, uint32_t handle, OsiArgumentDesc * params)
652{
653 auto it = osiToDivMappings_.find(handle);
654
655 if (it != osiToDivMappings_.end()) {
656 return functions_.Call(it->second, *params);
657 } else {
658 return next(handle, params);
659 }
660}
661
662bool CustomFunctionInjector::QueryWrapper(DivFunctions::CallProc next, uint32_t handle, OsiArgumentDesc * params)
663{

Callers 1

StaticCallWrapperMethod · 0.95

Calls 3

findMethod · 0.45
endMethod · 0.45
CallMethod · 0.45

Tested by

no test coverage detected