mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
PS2: Small formatting fixes.
This commit is contained in:
parent
88512351d0
commit
f92f9f9faf
@ -107,9 +107,9 @@ void OSystem_PS2::readRtcTime(void) {
|
||||
|
||||
// Tomohiko Sakamoto's 1993 algorithm for any Gregorian date
|
||||
static int dayOfWeek(int y, int m, int d) {
|
||||
static const int t[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};
|
||||
static const int t[] = { 0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4 };
|
||||
y -= m < 3;
|
||||
return (y + y/4 - y/100 + y/400 + t[m-1] + d) % 7;
|
||||
return (y + y / 4 - y / 100 + y / 400 + t[m - 1] + d) % 7;
|
||||
}
|
||||
|
||||
void OSystem_PS2::getTimeAndDate(TimeDate &t) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user