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 elementxof arrayarrUse
mytype.y/mytype->yto get memberyof struct/unionmytypeThere is no difference between
.and->, Pancake auto-detects struct pointers and dereferences themCurrent 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.