Super Mario 64s source code (from a leak on 4chan so be careful)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
429 B

6 years ago
  1. #ifndef _ULTRA64_TIME_H_
  2. #define _ULTRA64_TIME_H_
  3. #include <PR/os_message.h>
  4. /* Types */
  5. typedef struct OSTimer_str
  6. {
  7. struct OSTimer_str *next;
  8. struct OSTimer_str *prev;
  9. u64 interval;
  10. u64 remaining;
  11. OSMesgQueue *mq;
  12. OSMesg *msg;
  13. } OSTimer;
  14. typedef u64 OSTime;
  15. /* Functions */
  16. OSTime osGetTime(void);
  17. void osSetTime(OSTime time);
  18. u32 osSetTimer(OSTimer *, OSTime, u64, OSMesgQueue *, OSMesg);
  19. #endif