Commit Graph

111 Commits

Author SHA1 Message Date
Henrik Rydgård ef97eb668a ImDebugger: Add a Time window to check various counters 2025-04-23 17:10:31 +02:00
Henrik Rydgård 4e25f44eef Rename some module-related functions to include HLE where appropriate 2025-03-31 11:17:50 +02:00
Henrik Rydgård 0f840e6240 Move JPEG error codes to the big enum, some include cleanup 2025-03-21 20:44:46 +01:00
Henrik Rydgård 0f9c97c2a0 Another big batch of logging cleanup 2025-03-05 17:02:46 +01:00
Henrik Rydgård 28b2c7f540 HLE log rename part 1: Remove duplicate log functions. Return type should be determined by metadata. 2025-01-29 09:45:39 +01:00
Henrik Rydgård 3ce72f87d3 Another batch of log cleanup 2025-01-28 09:31:38 +01:00
oltolm 9566065455 make compile on mingw-w64 2025-01-11 01:25:27 +01:00
Henrik Rydgård e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
fp64 0584c6f414 Fix RTC failures in autotests on 32 bit
Also simplifies code. Note: some uses of (potentially 32-bit) time_t
are still left.
2023-03-22 01:50:50 -04:00
Henrik Rydgård e1a48d74c4 A bit more GetPointer cleanup.
Probably not worth it for performance reasons, but some semantic cleanup
is good, especially the accidental GetPointer -> writable casts without
using GetPointerWrite.

Using Unchecked on already checked pointers, or when we'd crash anyway
if it returned nullptr, is good for clarity.
2023-01-10 12:13:47 +01:00
Unknown W. Brackets 9e688eaa7c Rtc: Fix day of week stack bounds issue.
Also, add a couple other tests showing as passing now.
2022-01-26 00:43:05 -08:00
Unknown W. Brackets f3f5b2e540 Rtc: Cleanup and simplify date struct handling. 2021-04-11 22:51:33 -07:00
Henrik Rydgård ccc0331279 Move timeutil to Common. (Experiment to see how much work it is to move these). 2020-08-15 20:53:08 +02:00
Unknown W. Brackets b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets 4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
M4xw fe32ad88fb Core: Add some libnx calls for Switch. 2020-03-15 07:56:38 -07:00
Unknown W. Brackets 4144e71b7a Replay: Add file header handling. 2019-07-04 20:36:17 -07:00
twinaphex 4855b2d6f1 mingw patches 2017-08-31 22:15:05 +02:00
twinaphex a9bf8e7b18 More mingw patches pt. 2 2017-08-29 22:41:50 +02:00
LunaMoo ea725e3b19 Init rtcBaseTime.tv_usec to 0 2017-05-24 02:43:32 +02:00
Henrik Rydgard 5df4bac6d2 Delete some left behind unused code 2017-01-25 10:05:39 +01:00
Florent Castelli 70593d1004 android: Change preprocessor define to standard __ANDROID__
ANDROID is only standard to the old Makefile buildsystem, not the platform.
2016-10-12 11:14:09 +02:00
Florent Castelli 4145b60a0e symbian: Remove! 2016-10-11 18:49:08 +02:00
Florent Castelli 373db56a16 blackberry: Remove! 2016-10-11 17:40:32 +02:00
Henrik Rydgard 7e55b3ec96 Fix some GCC compiler warnings about potentially uninitialized variables (compilers are getting too clever..) 2015-06-14 11:32:13 +02:00
Jan Beich 803e02e224 Core: assume modern Unix has tm_gmtoff
Core/HLE/sceRtc.cpp:471:14: error: invalid argument type 'char *(*)(int, int)' to
      unary expression
                srcTick -= -timezone * 1000000ULL;
                           ^~~~~~~~~
Core/HLE/sceRtc.cpp:498:14: error: invalid argument type 'char *(*)(int, int)' to
      unary expression
                srcTick += -timezone * 1000000ULL;
                           ^~~~~~~~~
Core/HLE/sceRtc.cpp:1035:16: error: invalid argument type 'char *(*)(int, int)' to
      unary expression
                tz_seconds = -timezone;
                             ^~~~~~~~~
Core/HLE/sceRtc.cpp:1074:16: error: invalid argument type 'char *(*)(int, int)' to
      unary expression
                tz_seconds = -timezone;
                             ^~~~~~~~~
4 errors generated.
2015-05-26 15:20:12 +03:00
Unknown W. Brackets e2ecd1eabd Add memchecks for ReadStruct/WriteStruct. 2015-04-05 18:09:35 -07:00
Unknown W. Brackets fcf0518223 Update all the HLE tables with arg and ret info. 2015-03-22 20:51:55 -07:00
Peter Tissen 594ed65bd3 use the timezone value for non GLIB, non MSVC platforms 2015-03-06 21:55:39 +01:00
Peter Tissen f5795a68a7 Make compilable under VS2015 2015-03-06 21:09:45 +01:00
Lioncash 4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
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