summaryrefslogtreecommitdiff
path: root/berry_fix/payload/include/rtc.h
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2018-12-17 09:24:56 -0500
committerGitHub <noreply@github.com>2018-12-17 09:24:56 -0500
commit07d63fc7faa20317bc49fd16674468fb1510271f (patch)
tree3a5c0972149b2b5c7598b67ea70bcdedf616eb0c /berry_fix/payload/include/rtc.h
parent63c205e7d0094756ea851e0aed0852671329905c (diff)
parent0aceac2d340328b1d2af539820e872f04bda6214 (diff)
Merge pull request #31 from PikalaxALT/mevent
Decompile mevent.s; disassemble script pointers; decompile berry fix payload
Diffstat (limited to 'berry_fix/payload/include/rtc.h')
-rw-r--r--berry_fix/payload/include/rtc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/berry_fix/payload/include/rtc.h b/berry_fix/payload/include/rtc.h
new file mode 100644
index 000000000..64a1f2295
--- /dev/null
+++ b/berry_fix/payload/include/rtc.h
@@ -0,0 +1,15 @@
+#ifndef GUARD_RTC_H
+#define GUARD_RTC_H
+
+#include <gba/gba.h>
+#include <siirtc.h>
+#include "global.h"
+
+extern struct Time gTimeSinceBerryUpdate;
+extern struct Time gRtcUTCTime;
+
+bool32 rtc_maincb_is_rtc_working(void);
+bool32 rtc_maincb_is_time_since_last_berry_update_positive(u8 *);
+void rtc_maincb_fix_date(void);
+
+#endif //GUARD_RTC_H