Skip to main content

decode_native_hook

Function decode_native_hook 

Source
pub fn decode_native_hook(
    rgm: &RgmFile,
    header_index: usize,
    definition: &SoupDef,
) -> Result<Option<Call>, String>
Expand description

Decode one actor’s RAHK native hook, independently of its RASC continuations. A zero RAHD hook offset means no call; nonzero offsets are relative to RAHK. The stored record uses a function index, count byte and five-byte parameters.

§Errors

Returns a contextual error for absent/truncated sections, invalid offsets, definition mismatches or unsupported parameter encodings.