Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
AdvanceBuffer.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
// skips ahead in buffer by constant + count * size
4
API_CALLABLE(N(AdvanceBuffer)) {
5
Bytecode
* args = script->ptrReadPos;
6
s32 constant =
evt_get_variable
(script, *args++);
7
s32 size =
evt_get_variable
(script, *args++);
8
s32 count =
evt_get_variable
(script, *args++);
9
10
script->buffer = &script->buffer[constant + size * count];
11
return
ApiStatus_DONE2
;
12
}
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
evt_get_variable
s32 evt_get_variable(Evt *script, Bytecode var)
Definition
evt.c:1690
src
common
AdvanceBuffer.inc.c
Generated by
1.10.0