Commit Graph
39 Commits
Author SHA1 Message Date
Henrik RydgårdandClaude Opus 5.5 0a687b9435 Savestate: Bounds-check sizes from the file, and plug leaks on load
Reject sizes past the end of the state before allocating (FPL, PGF,
achievements, SAS grain, savedata list, the memory fast path), fail
instead of desyncing on a SAS voice count mismatch, and free what old
states' paths and shrinking pointer containers dropped.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 09:34:06 -06:00
Henrik Rydgård 3bd41376da More memory cleanup 2026-08-11 20:12:10 +02:00
Henrik Rydgård dbe6ec80a0 Fix some bad "for (auto x : y)" usage 2025-04-29 16:46:14 +02:00
Henrik Rydgård efa022b754 Expose sceMpeg context to a future debugger window. Some general log cleanup. 2025-04-03 22:39:14 +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 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
Henrik Rydgård 971320cf66 Fix memory leak on shutdown in sceHeap 2024-04-02 12:02:19 +02:00
Unknown W. Brackets 32feb82d16 HLE: Capture better allocation names.
We know which FPL, so don't just say "FPL".
2023-09-02 22:55:45 -07:00
Unknown W. Brackets f7740edc6d Debugger: Add more metadata for memory usage. 2021-02-15 15:01:21 -08:00
Unknown W. Brackets d7fa5928d4 Kernel: Avoid two different Heap structs. 2020-08-19 20:56:05 -07: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 1dc5ee424b SaveState: Split out Do types to reduce headers. 2020-08-10 08:03:44 +00:00
Unknown W. Brackets 4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
Henrik Rydgård df6d0a8ae7 PSP kernel: Improve logging when accessing bad kernel object handles. 2020-07-20 11:57:11 +02:00
Henrik Rydgard 8996f58693 Generate save state IDs for homebrew using the elf or directory name where applicable. 2015-09-25 19:27:40 +02:00
Unknown W. Brackets fcf0518223 Update all the HLE tables with arg and ret info. 2015-03-22 20:51:55 -07:00
Lioncash 4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
Unknown W. Brackets 05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
Unknown W. Brackets 9388dd092f Cleanup errors in sceHeapFreeHeapMemory(). 2013-10-13 19:20:04 -07:00
Unknown W. Brackets df285cec64 Fix aligned heap allocation semantics. 2013-10-13 19:14:42 -07:00
Unknown W. Brackets 1b5193b13d Cleanup error codes in sceHeapAlloc*(). 2013-10-13 19:08:23 -07:00
Unknown W. Brackets ba5dd0084b Implement sceHeapIsAllocatedHeapMemory(). 2013-10-13 19:01:16 -07:00
Unknown W. Brackets 8ffcc26f89 Don't create blank entries in heapList. 2013-10-13 18:57:59 -07:00
Unknown W. Brackets fbffb6fa7f Return an error when deleting a bad heap. 2013-10-13 18:45:49 -07:00
Unknown W. Brackets 134138618d Allocate heaps similar to hardware.
Could matter for alignment, since a game might intentionally request 0x108
bytes to get an aligned address or something.
2013-10-13 18:36:34 -07:00
Unknown W. Brackets 9a9c4cbea6 Allocate from heaps downward by default. 2013-10-13 18:27:53 -07:00
Lioncash dc9f839583 Fix a null check in sceHeap.cpp 2013-10-05 18:22:13 -04:00
shenweip a9d7d84601 Return 0 if recevie a null name. 2013-10-05 08:59:53 +08:00
shenweip 346d277042 Fix bugs and Clean up. 2013-10-02 06:07:02 +08:00
shenweip 9a7759c50c Move someting to correct position. 2013-10-02 00:32:22 +08:00
shenweip efec08f7d6 Oops 2013-10-02 00:04:29 +08:00
shenweip 33f08852c1 Implemented sceHeapGetTotalFreeSize. 2013-10-01 23:38:49 +08:00
shenweip 8cd281223d Implemented some functions for sceHeap. 2013-10-01 23:38:01 +08:00
Unknown W. Brackets 91d73d0972 Fix one sceHeap func, add reporting. 2013-09-29 00:07:51 -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 c93268fdd3 Fix some minor warnings. 2013-09-06 01:13:45 -07:00
shenweip f74aa2913e Typo 2013-09-04 11:35:16 +08:00
shenweip c05100e0e3 Add sceHeap,some games will call this.
e.g. Linear ModeSenritsu no Stratus
2013-09-04 11:05:14 +08:00