benilla-re systems structs docs

UnloadActiveModule

function · warden · orchestration

Address
0x6ca290 · 86 bytes, up to 0x6ca2e5
Signature
void __cdecl (void)
Meaning
Calls the active module's unload, unloads its image and frees its object
Confidence
verified, proof one
Finding
warden/wire#activating-a-module

Finding: Activating a module in warden: the wire and the services

ActivateNextModule does nothing when no module is pending. Otherwise it unloads the active module, looks up the pending module's export 1, calls it, and calls slot 0 of the object it returns with the session key. It then makes the pending module active and empties the pending slot, returning 1. A null entry or object frees the pending module and returns 0, leaving no active module. The old module is unloaded first, so a failure leaves none. It runs from InitWardenHandler, and after each tick and each packet only while a module is active.

The derivation is in the doc.

Callers 2

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.