diff options
-rwxr-xr-x | include/game.h | 7 | ||||
-rw-r--r-- | kamek_pal.x | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/game.h b/include/game.h index 0871eb1..e0c2eea 100755 --- a/include/game.h +++ b/include/game.h @@ -18,6 +18,8 @@ inline T max(T one, T two) { return (one > two) ? one : two; } template <typename T>
inline T clamp(T value, T one, T two) { return (value < one) ? one : ((value > two) ? two : value); }
+#define M_PI 3.14159265358979323846
+#define M_PI_2 (M_PI / 2)
extern "C" {
int strlen(const char *str);
@@ -28,6 +30,8 @@ float atan2(float y, float x); float cos(float x);
float sin(float x);
+float ceil(float x);
+float floor(float x);
}
bool DVD_Start();
@@ -2457,5 +2461,8 @@ extern int currentScreenSizeID; extern float GlobalScreenWidth, GlobalScreenHeight;
+extern u32 GlobalTickCount;
+
+
#endif
diff --git a/kamek_pal.x b/kamek_pal.x index 4f5e7e6..5410bab 100644 --- a/kamek_pal.x +++ b/kamek_pal.x @@ -5,6 +5,8 @@ OUTPUT_FORMAT ("binary") }*/ SECTIONS { + GlobalTickCount = 0x8042A648; + GetSpecificPlayerActor = 0x8005F900; Actor_SearchByID = 0x80162E40; TimeStopFlag = 0x80429FDA; @@ -889,6 +891,8 @@ SECTIONS { atan2 = 0x802E8900; cos = 0x802E82AC; sin = 0x802E87B4; + ceil = 0x802E8134; + floor = 0x802E8374; LayoutHelper_Link = 0x801637A0; |