Manually Resolving Symbols (Advanced)¶
Most mods should not need to manually resolve PCDogs symbols. Prefer SDK wrappers when possible.
Checking symbols through SDK wrappers¶
DttR resolves normal PCDogs symbols before loading mods. In most mod code, check the helper you plan to use:
- Function helpers:
Status(&ctx->runtime),IsCallable(&ctx->runtime),Call(...). - Global helpers:
Read(...),Write(...), orIsResolved(). - Patch helpers:
PatchSpec(...).
An SDK wrapper may say a symbol is unavailable, in which case it cannot be used.
Passing raw addresses between SDK APIs¶
SDK wrappers expose Address() for cases where another SDK API needs a raw address.
This is sometimes necessary, but the rest of your mod should use typed helpers wherever possible.
Resolving symbols without a typed helper¶
Use these SDK helpers only when no SDK wrapper exists for the game symbol you need:
DTTR_PCDOGS_FunctionResolve(...)DTTR_PCDOGS_DataResolve(...)