1
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
Super-Mario-Sunshine-C-Kit/include/QFTimer.h
sup39 c74a9da83b Restructure for all version
Rearrange linker script (in /linker)
Delete unnecessary files
Use extern instead of static in sms.h
2021-12-17 06:33:16 +09:00

30 lines
779 B
C

#ifndef SMS_QFTIMER_H
#define SMS_QFTIMER_H
/* https://github.com/BitPatty/gctGenerator/blob/master/docs/reserved_memory.png */
typedef struct {
// 0x94
struct {
uint32_t left;
uint32_t top;
uint32_t right;
uint32_t bottom;
} textboxCoord; // Coordinated of the Text box
// 0xA4
char format[13]; // Timer Format String
// 0xB1
uint8_t u1; // (Unused)
// 0xB2
uint8_t stopAtQFTOffset; // Stop at QFT Offset
// 0xB3
uint8_t restart; // Restart Flag
// 0xB4
uint32_t offset; // Cumulative time of previous areas since last reset (QFT Offset)
// 0xB8
uint32_t displayTime; // Time to display if timer freeze > 0
// 0xBC
uint32_t freezeDuration; // Duration of timer freeze (in frames)
} QFTimer_t;
extern QFTimer_t QFTimer;
#endif