Table of Contents

Method TryGetCurrentConfig

Namespace
MonoMod.RuntimeDetour
Assembly
MonoMod.RuntimeDetour.dll

TryGetCurrentConfig(out DetourConfig?)

Tries to get the DetourConfig active at the current location.
public static bool TryGetCurrentConfig(out DetourConfig? config)

Parameters

config DetourConfig
The active DetourConfig.

Returns

bool
true if a DetourConfig was found; false otherwise.

Remarks

This method walks up the context stack, calling TryGetConfig(out DetourConfig?) on each context it encounters. It then returns the result that the first context which returned true returned. If none did, it checks the global context.