resonance 1.0.1
Loading...
Searching...
No Matches
hxmodule.h File Reference
Include dependency graph for hxmodule.h:

Go to the source code of this file.

Functions

Py::MethodTable & HxMethods ()
 Method table of the game's own hx extension module.
void InitHxModule ()
 Register the hx extension module with the interpreter.

Function Documentation

◆ HxMethods()

Py::MethodTable & HxMethods ( )
inline

Method table of the game's own hx extension module.

The table is a function-local static, and two routines inline its guard, the RegisterCFunction constructor at 0x00559720 and InitHxModule() at 0x005597b8. Both share one flag at 0x00725dd8 and one object at 0x008de900, and both register the destructor thunk at 0x00559830 for it, so the accessor is an inline function with no address of its own.

Over a hundred static RegisterCFunction objects across the image fill the table before the module is registered.

Returns
The shared table.

◆ InitHxModule()

void InitHxModule ( )

Register the hx extension module with the interpreter.

PyShell's constructor invokes this directly, as its last step, rather than relying on the built-in module table, so import hx from a script resolves against a module that is already present.

Ghidra address:
NTSC-U/C: 0x005597b8
Ghidra address:
PAL: 0x0059a910