From: Pokemonhacker <pok...@us...> - 2004-10-13 21:07:14
|
Update of /cvsroot/vba/VisualBoyAdvance/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30241 Modified Files: RTC.cpp elf.cpp Log Message: - fixed RTC support for day of the week (fixed at Sunday before) - fixed loading of ELF multiboot files (section/program header sizes not taken into account as in the regular case - Thanks J.W.) Index: elf.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/elf.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** elf.cpp 13 May 2004 15:06:45 -0000 1.18 --- elf.cpp 13 Oct 2004 21:07:03 -0000 1.19 *************** *** 2660,2663 **** --- 2660,2664 ---- data + READ32LE(&ph->offset), READ32LE(&ph->filesz)); + size += READ32LE(&ph->filesz); } } else { *************** *** 2709,2712 **** --- 2710,2714 ---- READ32LE(&sh[i]->offset), READ32LE(&sh[i]->size)); + size += READ32LE(&sh[i]->size); } } else { Index: RTC.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/RTC.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** RTC.cpp 13 May 2004 15:06:44 -0000 1.7 --- RTC.cpp 13 Oct 2004 21:07:03 -0000 1.8 *************** *** 132,136 **** rtcClockData.data[1] = toBCD(newtime->tm_mon+1); rtcClockData.data[2] = toBCD(newtime->tm_mday); ! rtcClockData.data[3] = 0; rtcClockData.data[4] = toBCD(newtime->tm_hour); rtcClockData.data[5] = toBCD(newtime->tm_min); --- 132,136 ---- rtcClockData.data[1] = toBCD(newtime->tm_mon+1); rtcClockData.data[2] = toBCD(newtime->tm_mday); ! rtcClockData.data[3] = toBCD(newtime->tm_wday); rtcClockData.data[4] = toBCD(newtime->tm_hour); rtcClockData.data[5] = toBCD(newtime->tm_min); |