MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK / InvokeMethod

Function InvokeMethod

src/plugins/unity.cpp:1489–1509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487 property = GetProperty (image, namespace_, class_, name);
1488 if (property == nullptr)
1489 return nullptr;
1490
1491 return
1492 GetPropertyValue (property, instance);
1493}
1494
1495static
1496MonoObject* InvokeMethod (const char* namespace_, const char* class_, const char* method_, int paramsCount, void* instance, const char* image_ = "Assembly-CSharp", void** params = nullptr)
1497{
1498 if (instance == nullptr)
1499 return nullptr;
1500
1501 const auto
1502 image = GetImage (image_);
1503 if (image == nullptr)
1504 return nullptr;
1505
1506 const auto
1507 method = GetClassMethod (image, namespace_, class_, method_, paramsCount);
1508 if (method == nullptr)
1509 return nullptr;
1510
1511 AttachThread ();
1512

Callers 2

ifFunction · 0.70

Calls 3

GetImageFunction · 0.70
GetClassMethodFunction · 0.70
AttachThreadFunction · 0.70

Tested by

no test coverage detected