MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / hasStaticConstructor

Method hasStaticConstructor

Il2cppHook/_Ufunc.js:11009–11012  ·  view source on GitHub ↗

Determines whether ther current class has a valid static constructor.

()

Source from the content-addressed store, hash-verified

11007 }
11008 /** Determines whether ther current class has a valid static constructor. */
11009 get hasStaticConstructor() {
11010 const staticConstructor = this.tryMethod(".cctor");
11011 return staticConstructor != null && !staticConstructor.virtualAddress.isNull();
11012 }
11013 /** Gets the image in which the current class is defined. */
11014 get image() {
11015 return new Il2Cpp.Image(Il2Cpp.Api._classGetImage(this));

Callers

nothing calls this directly

Calls 2

tryMethodMethod · 0.95
isNullMethod · 0.80

Tested by

no test coverage detected