Welcome to Pancake’s documentation!

Pancake is a C++ interface to libsm64 (included with Wafel).

A preface on accessor expressions

Accessor expressions are the core method you’ll be using to query variables from the game. I aim to support the same syntax as Wafel API’s data paths at some point, but for now, this is how it works:

  • Use arr[x] to get element x of array arr

  • Use mytype.y/mytype->y to get member y of struct/union mytype

  • There is no difference between . and ->, Pancake auto-detects struct pointers and dereferences them

  • Current limitations only allow base types to be retrieved this way, no struct/array/union support just yet

  • Macro constants and object fields are macro’d in like they would be in C/C++, unlike Wafel. This is done to simplify the parser.

Indices and tables

Overview