Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
vars_access.h
Go to the documentation of this file.
1#ifndef _VARS_ACCESS_H_
2#define _VARS_ACCESS_H_
3
4#include "common.h"
5
10s8 set_global_byte(s32 index, s32 value);
11
15s32 get_global_byte(s32 index);
16
21s16 set_global_short(s32 index, s32 value);
22
26s16 get_global_short(s32 index);
27
32s32 set_global_word(s32 index, s32 value);
33
37s32 get_global_word(s32 index);
38
39s32 set_global_flag(s32 index);
40s32 clear_global_flag(s32 index);
41s32 get_global_flag(s32 index);
42
43s8 set_area_byte(s32 index, s32 value);
44s32 get_area_byte(s32 index);
45s32 set_area_flag(s32 index);
46s32 clear_area_flag(s32 index);
47s32 get_area_flag(s32 index);
48
49#endif
s16 set_global_short(s32 index, s32 value)
Store a short in two consecutive saved game bytes.
s32 set_global_flag(s32 index)
Definition vars_access.c:65
s32 get_global_flag(s32 index)
Definition vars_access.c:89
s32 set_area_flag(s32 index)
s32 set_global_word(s32 index, s32 value)
Store a word in four consecutive saved game bytes.
s32 get_global_byte(s32 index)
Get value of saved game byte.
s32 clear_area_flag(s32 index)
s32 get_area_flag(s32 index)
s32 get_area_byte(s32 index)
s8 set_area_byte(s32 index, s32 value)
s16 get_global_short(s32 index)
Retrieve a short from two consecutive saved game bytes.
s32 clear_global_flag(s32 index)
Definition vars_access.c:41
s32 get_global_word(s32 index)
Retrieve a word from four consecutive saved game bytes.
s8 set_global_byte(s32 index, s32 value)
Set value of saved game byte.