Commit Graph

80 Commits

Author SHA1 Message Date
Unknown W. Brackets
cddc289675 Use fixed dates for rtc adjusted and reincarnated.
This may be safer in case a game thinks funny business is going on if the
user changed the clock very recently, which wouldn't be the case on a
real PSP.
2014-09-05 09:34:09 -07:00
Unknown W. Brackets
1e31fd54eb Implement rtc date formatting funcs. 2014-09-05 09:13:33 -07:00
Unknown W. Brackets
0180d18449 Correct sceRtcGetDayOfWeek() for odd years. 2014-09-05 09:13:08 -07:00
Unknown W. Brackets
05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
Ced2911
cc9f238d36 [xbox] 360 support for Core 2014-03-02 11:22:02 -08:00
Unknown W. Brackets
4a1c9645e8 Get rid of Memory::GetStruct(), use PSPPointer. 2014-02-27 00:28:57 -08:00
Henrik Rydgård
79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Unknown W. Brackets
ef9de27651 Fix overflows in sceRtcAdd*() funcs. 2013-12-13 23:03:41 -08:00
Unknown W. Brackets
ba17f57149 Simplify sceRtcTickAddMonths() and write if valid. 2013-12-13 21:58:25 -08:00
Unknown W. Brackets
d7d03f632e sceRtcTickAddYears(): don't write invalid results.
Also fix leap day handling, per tests.
2013-12-13 15:11:40 -08:00
Unknown W. Brackets
0e831b0cda Check days in month within sceRtcCheckValid(). 2013-12-13 15:10:47 -08:00
Unknown W. Brackets
e4e26f6cc1 Convert ticks using a better supported year range.
Since 400 years is a stable number, we can adjust everything to [1970,
2370) and most system libraries (hello, Windows) will get it right.

This fixes overflow issues with tick/date conversions.
2013-12-13 15:07:53 -08:00
Unknown W. Brackets
7c2a5a0211 Report negative time parts as invalid. 2013-12-13 15:06:31 -08:00
Unknown W. Brackets
21c617a7be Correct some syscall names. 2013-12-02 23:40:16 -08:00
Unknown W. Brackets
382f3b91f4 Eat cycles and reschedule in some rtc funcs.
Reported to fix #2146.
2013-11-28 00:30:04 -08:00
Sacha
4c52346063 Use Blackberry/UNIX time functions instead of fallbacks. 2013-10-25 21:52:50 +10:00
Unknown W. Brackets
9c874c754e Use the us based time for rtc/etc.
Instead of incorrect conversions from ticks based on current mhz.
2013-10-24 01:10:09 -07:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets
a8c7421a0b Add some additional and mostly pointless accuracy. 2013-09-11 00:15:49 -07:00
Unknown W. Brackets
8e69b70bf5 Start sceRtc at now, not 1970. 2013-09-11 00:12:33 -07:00
Unknown W. Brackets
65a1350f32 Oops, timegm() is supposed to modify its argument. 2013-09-09 08:50:49 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Unknown W. Brackets
b46ab5f5a4 Always defined WIN32_LEAN_AND_MEAN.
Might as well, less mess everywhere else.
2013-07-28 21:04:20 -07:00
Unknown W. Brackets
7b7801d59a Switch to including Windows.h from an intermediate.
This makes it easier for Xbox which uses a separate header.
2013-07-28 21:04:19 -07:00
Unknown W. Brackets
0b5bdeb1d3 Fix some compile failures under big endian. 2013-07-28 21:04:17 -07:00
Unknown W. Brackets
81f7103e0b Use *_le for the sceKernel* funcs. 2013-07-25 08:04:34 -07:00
Unknown W. Brackets
d8eede0b9a Add some unknown syscalls from reporting.
These are being linked in by games, so defining them will log them when
they are hit.
2013-06-30 12:05:14 -07:00
The Dax
4017550e41 Implement some missing syscalls and "fix" one, which fixes a Project Diva 2nd hang, and possibly other games that rely on sceUtilityScreenshotGetStatus to return success, since they tend to wait forever for the dialog to finish. I'd like to implement the dialog and functionality someday, but for now, this works fine.
Also implement stub for sceRtcSetAlarmTick, though Diva 2nd doesn't care if it's implemented or not.
2013-06-12 04:46:06 -04:00
Unknown W. Brackets
50c085401a Remove UNIMPL from FileTime funcs, they work now. 2013-05-25 19:15:15 -07:00
Unknown W. Brackets
f24b4ef7de Implement the sceRtc*Win32FileTime() funcs. 2013-05-25 17:27:34 -07:00
Unknown W. Brackets
8580780194 Add more unknown syscalls from reporting. 2013-05-22 01:19:25 -07:00
Unknown W. Brackets
86ce95a658 Add some syscall entries from reporting. 2013-05-19 22:12:38 -07:00
Unknown W. Brackets
ded3fb5e12 Add reporting to a bunch of unimpl functions.
Also some comment/logging fixes along the way.
2013-05-19 22:12:37 -07:00
Unknown W. Brackets
db54bffe14 Use a base time throughout rtc and kernel time.
This way, time doesn't move abnormally as far as the game can tell,
even when savestates and fast forward and pause are used.
2013-05-05 10:12:29 -07:00
Unknown W. Brackets
2df10e9b69 Add more accurate cycles in sceRtc and sceDisplay. 2013-05-04 23:42:11 -07:00
nachume
c89589c27d mistake sceRtcGetLastAdjustedTime() is not UNIMPL function.
revert  to DEBUG_LOG from  ERROR_LOG.
2013-04-29 14:52:36 +09:00
nachume
aa1c546a3e FIX sceRtc.cpp HLEFunction Array Wrapped Function not used reference pointer. 2013-04-29 14:32:36 +09:00
nachume
55b94900a0 UNIMPL functions replace DEBUG_LOG -> ERROR_LOG 2013-04-29 14:16:55 +09:00
nachume
c2c6adb7c9 Add new sceNp/scePauth and some stubs for unknown functions on THE IDOLM@STER SP. 2013-04-29 12:40:09 +09:00
Henrik Rydgard
58d6859cf4 Eat some cpu cycles in sceRtcGetCurrentTick 2013-03-24 12:33:43 +01:00
Sacha
cf9b2ab975 Fix for Qt/Symbian. 2013-01-28 01:01:47 +10:00
Unknown W. Brackets
6e6e71d116 Quick fix rtc crash, probably gives wrong results. 2013-01-25 08:34:04 -08:00
Unknown W. Brackets
1cd5421bdc Buildfix for missing functions on Android/win32. 2013-01-25 08:32:30 -08:00
Unknown W. Brackets
f102908f5d Fix crashes when localtime() can't handle the date. 2013-01-25 08:31:50 -08:00
Xele02
0e69cd92c7 Make sceRTC pass the tests. 2013-01-25 01:40:38 +01:00
Xele02
fff581aa88 Implement sceRtcGetDosTime and sceRtcSetDosTime. Pass the test.
This was RE since the values to return are not logic at all.
2013-01-23 01:25:32 +01:00
Xele02
2d94b3415e Make sceRtcGetDayOfWeek pass the test. 2013-01-22 08:55:01 +01:00
TMaul
e8f240c1d4 Fix some more possible errors
Shadowed var n in MIPSIntVFPU

Possible buffer overflow in vertexdecoder.h

fix valid address checking in sceRtc function
2012-12-23 20:51:05 +00:00
Henrik Rydgård
fba61b2a2a Warning fixes (and maybe a bugfix) in sceRtc 2012-12-23 09:38:47 +01:00
Unknown W. Brackets
217bdc275e Fix some type-conversion warnings. 2012-12-21 16:07:38 -08:00