summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-02-11 13:49:19 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2020-02-11 13:49:19 -0500
commit11af7a07510e4d5c784a6c30691e07d4fce23a53 (patch)
tree60952ddc4776073bac86772d946a27be67c07975 /include
parent9ff146b0bcf3e5f2bbb0db9a21a147dde80d81fd (diff)
Rename unk headers
Diffstat (limited to 'include')
-rw-r--r--include/ereader_helpers.h (renamed from include/unk_815c27c.h)6
-rw-r--r--include/unk_810c3a4.h26
-rw-r--r--include/vs_seeker.h22
3 files changed, 25 insertions, 29 deletions
diff --git a/include/unk_815c27c.h b/include/ereader_helpers.h
index 02c886895..748db7190 100644
--- a/include/unk_815c27c.h
+++ b/include/ereader_helpers.h
@@ -1,5 +1,5 @@
-#ifndef GUARD_UNK_815C27C_H
-#define GUARD_UNK_815C27C_H
+#ifndef GUARD_EREADER_HELPERS_H
+#define GUARD_EREADER_HELPERS_H
void EReaderHelper_SerialCallback(void);
void EReaderHelper_Timer3Callback(void);
@@ -8,4 +8,4 @@ void EReaderHelper_ClearsSendRecvMgr(void);
void EReaderHelper_RestoreRegsState(void);
u16 EReaderHandleTransfer(u8, size_t, const void *, void *);
-#endif //GUARD_UNK_815C27C_H
+#endif //GUARD_EREADER_HELPERS_H
diff --git a/include/unk_810c3a4.h b/include/unk_810c3a4.h
deleted file mode 100644
index 11a91b5ef..000000000
--- a/include/unk_810c3a4.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef GUARD_UNK_810C3A4_H
-#define GUARD_UNK_810C3A4_H
-
-#define GET_VS_SEEKER_COUNTER_0() (gSaveBlock1Ptr->trainerRematch.stepCounter & 0xFF)
-#define GET_VS_SEEKER_COUNTER_1() (gSaveBlock1Ptr->trainerRematch.stepCounter >> 8)
-#define SET_VS_SEEKER_COUNTER_0(x) ({\
- gSaveBlock1Ptr->trainerRematch.stepCounter &= 0xFF00;\
- gSaveBlock1Ptr->trainerRematch.stepCounter |= (x);\
-})
-#define SET_VS_SEEKER_COUNTER_1(x) ({\
- gSaveBlock1Ptr->trainerRematch.stepCounter &= 0x00FF;\
- gSaveBlock1Ptr->trainerRematch.stepCounter |= ((x) << 8);\
-})
-#define INC_VS_SEEKER_COUNTER_0() ({\
- u8 x = GET_VS_SEEKER_COUNTER_0();\
- if (x < 100) gSaveBlock1Ptr->trainerRematch.stepCounter++;\
-})
-#define INC_VS_SEEKER_COUNTER_1() ({\
- u8 x = GET_VS_SEEKER_COUNTER_1();\
- if (x < 100) {x++; SET_VS_SEEKER_COUNTER_1(x);}\
-})
-
-void sub_810C604(void);
-void sub_810C640(void);
-
-#endif //GUARD_UNK_810C3A4_H
diff --git a/include/vs_seeker.h b/include/vs_seeker.h
index fdd6839df..428278192 100644
--- a/include/vs_seeker.h
+++ b/include/vs_seeker.h
@@ -3,6 +3,28 @@
#include "global.h"
+#define GET_VS_SEEKER_COUNTER_0() (gSaveBlock1Ptr->trainerRematch.stepCounter & 0xFF)
+#define GET_VS_SEEKER_COUNTER_1() (gSaveBlock1Ptr->trainerRematch.stepCounter >> 8)
+#define SET_VS_SEEKER_COUNTER_0(x) ({\
+ gSaveBlock1Ptr->trainerRematch.stepCounter &= 0xFF00;\
+ gSaveBlock1Ptr->trainerRematch.stepCounter |= (x);\
+})
+#define SET_VS_SEEKER_COUNTER_1(x) ({\
+ gSaveBlock1Ptr->trainerRematch.stepCounter &= 0x00FF;\
+ gSaveBlock1Ptr->trainerRematch.stepCounter |= ((x) << 8);\
+})
+#define INC_VS_SEEKER_COUNTER_0() ({\
+ u8 x = GET_VS_SEEKER_COUNTER_0();\
+ if (x < 100) gSaveBlock1Ptr->trainerRematch.stepCounter++;\
+})
+#define INC_VS_SEEKER_COUNTER_1() ({\
+ u8 x = GET_VS_SEEKER_COUNTER_1();\
+ if (x < 100) {x++; SET_VS_SEEKER_COUNTER_1(x);}\
+})
+
+void sub_810C604(void);
+void sub_810C640(void);
+
void Task_VsSeeker_0(u8 taskId);
void sub_810CB90(void);
void sub_810CDE8(void);