use updated names for time structs

This commit is contained in:
Dave Murphy 2007-01-25 17:15:43 +00:00
parent 1bad1ac5d6
commit 537cb4c6d7

View File

@ -67,9 +67,9 @@
u16 _FAT_filetime_getTimeFromRTC (void) { u16 _FAT_filetime_getTimeFromRTC (void) {
#ifdef NDS #ifdef NDS
int hour, minute, second; int hour, minute, second;
hour = (IPC->rtc_hours >= HOUR_PM_INDICATOR ? IPC->rtc_hours - HOUR_PM_INDICATOR : IPC->rtc_hours); hour = (IPC->time.rtc.hours >= HOUR_PM_INDICATOR ? IPC->time.rtc.hours - HOUR_PM_INDICATOR : IPC->time.rtc.hours);
minute = IPC->rtc_minutes; minute = IPC->time.rtc.minutes;
second = IPC->rtc_seconds; second = IPC->time.rtc.seconds;
// Check that the values are all in range. // Check that the values are all in range.
// If they are not, return 0 (no timestamp) // If they are not, return 0 (no timestamp)
@ -92,9 +92,9 @@ u16 _FAT_filetime_getDateFromRTC (void) {
#ifdef NDS #ifdef NDS
int year, month, day; int year, month, day;
year = IPC->rtc_year; year = IPC->time.rtc.year;
month = IPC->rtc_month; month = IPC->time.rtc.month;
day = IPC->rtc_day; day = IPC->time.rtc.day;
if ((year < MIN_YEAR) || (year > MAX_YEAR)) return 0; if ((year < MIN_YEAR) || (year > MAX_YEAR)) return 0;
if ((month < MIN_MONTH) || (month > MAX_MONTH)) return 0; if ((month < MIN_MONTH) || (month > MAX_MONTH)) return 0;