-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Label some code referenced by main (#133)
* main callback, hblank * HandleConsoleFold * WaitFrame, SoftReset, UpdateSound * HeapCanary * Label the RTC code * Address review comments
- Loading branch information
1 parent
b7fffbf
commit f360401
Showing
155 changed files
with
944 additions
and
974 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef POKEPLATINUM_RTC_H | ||
#define POKEPLATINUM_RTC_H | ||
|
||
|
||
#include <nitro/rtc.h> | ||
|
||
enum TimeOfDay { | ||
TOD_MORNING = 0, | ||
TOD_DAY = 1, | ||
TOD_TWILIGHT = 2, | ||
TOD_NIGHT = 3, | ||
TOD_LATE_NIGHT = 4, | ||
}; | ||
|
||
void InitRTC(void); | ||
void UpdateRTC(void); | ||
void GetCurrentDateTime(RTCDate * date, RTCTime * time); | ||
void GetCurrentTime(RTCTime * time); | ||
void GetCurrentDate(RTCDate * date); | ||
int GetSecondsSinceMidnight(void); | ||
s64 GetTimestamp(void); | ||
int DayNumberForDate(const RTCDate * date); | ||
BOOL IsNight(void); | ||
enum TimeOfDay GetTimeOfDay(void); | ||
enum TimeOfDay TimeOfDayForHour(int hour); | ||
s64 TimeElapsed(s64 since, s64 until); | ||
|
||
#endif // POKEPLATINUM_RTC_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
#ifndef POKEPLATINUM_UNK_02017728_H | ||
#define POKEPLATINUM_UNK_02017728_H | ||
|
||
#include "functypes/funcptr_02017798.h" | ||
#include "core_sys.h" | ||
|
||
void sub_02017728(void); | ||
void sub_02017798(UnkFuncPtr_02017798 param0, void * param1); | ||
void sub_020177A4(void); | ||
BOOL sub_020177BC(UnkFuncPtr_02017798 param0, void * param1); | ||
void SetMainCallback(Callback cb, void *data); | ||
void DisableHBlank(void); | ||
BOOL SetHBlankCallback(Callback cb, void *data); | ||
void sub_0201789C(void); | ||
void sub_020179E4(void); | ||
void * ReadFileToHeap(int heapID, const char * filename); | ||
void ReadFileToBuffer(const char * filename, void ** buf); | ||
void InitGraphics(void); | ||
void * ReadFileToHeap(int heapID, const char *filename); | ||
void ReadFileToBuffer(const char *filename, void **buf); | ||
void sub_02017ACC(void); | ||
void InitKeypadAndTouchpad(void); | ||
void sub_02017B70(int param0); | ||
void sub_02017B7C(u8 param0); | ||
void sub_02017B8C(u8 param0); | ||
void SleepLock(u8 param0); | ||
void SleepUnlock(u8 param0); | ||
void ReadKeypadAndTouchpad(void); | ||
void SetAutorepeat(int rate, int delay); | ||
void sub_02017DE0(u8 param0); | ||
void sub_02017DF0(u8 param0); | ||
void sub_02017E00(int param0); | ||
void sub_02017E2C(void); | ||
BOOL sub_02017E54(void); | ||
void ResetLock(u8 param0); | ||
void ResetUnlock(u8 param0); | ||
void InitHeapCanary(int param0); | ||
void FreeHeapCanary(void); | ||
BOOL HeapCanaryOK(void); | ||
|
||
#endif // POKEPLATINUM_UNK_02017728_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.