From 7d4e4c0b34a613dd3c0220475ae4e448197522c1 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 12 Mar 2011 23:17:12 +0100 Subject: initial commit. now I can start playing with stuff! --- include/state.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 include/state.h (limited to 'include/state.h') diff --git a/include/state.h b/include/state.h new file mode 100755 index 0000000..b22308f --- /dev/null +++ b/include/state.h @@ -0,0 +1,24 @@ +#ifndef __KAMEK_STATE_H +#define __KAMEK_STATE_H + +#include + +#ifdef REGION_PAL + #define SAVED_STATE_TABLE (*((ObjState**)(0x8042A210))) +#endif + +#ifdef REGION_NTSC + #define SAVED_STATE_TABLE (*((ObjState**)(0x80429F30))) +#endif + +struct ObjState { + s16 area; + s16 x; + s16 y; + s16 value; +}; + +s16 RestoreObjectState(ObjState *table, s16 area, float objX, float objY); +s32 StoreObjectState(ObjState *table, s16 area, s16 value, float objX, float objY); + +#endif -- cgit v1.2.3