Commit Graph
124 Commits
Author SHA1 Message Date
Henrik Rydgård e2ab84087e Fix five ways to end up stuck, crashed, or silently degraded
System.cpp stamped BootState::Complete unconditionally after InitGPU(), overwriting
the Failed that InitGPU sets when GPU_Init() fails - after it has already run
CPU_Shutdown(). PSP_InitUpdate then took the success path on a core that no longer
existed, down to a null Memory::base, and the first guest access dereferenced it.
InitGPU now reports failure and both callers honor it. (The libretro path had the
same problem from the other direction: it calls InitGPU after the Failed check.)

HandleAssert called g_assertCancelCallback directly on the IDCANCEL path, without
the null check its own BreakIntoPSPDebugger() helper does - and EmuScreen clears the
callback when a game is unloaded. So any assert after returning to the menu turned
"Cancel: skip and break into PPSSPP debugger" into a null jump, from the one button
whose entire purpose is surviving the assert.

__CheatDoState registered the cheat event type when the savestate had no CwCheat
section, but never scheduled it. CoreTiming::DoState has already swapped in the
state's event queue by then, which doesn't contain one either - so loading an old
savestate silently killed cheats, and the enable/disable polling with them, for the
rest of the session.

Achievements::ChangeUMD set g_isIdentifying and returned without clearing it when
hashing failed, leaving IsBlockingExecution() true forever - EmuScreen stops running
the CPU and the game is frozen until restart. Reachable from a disc swap on any ISO
whose PARAM.SFO or EBOOT.BIN can't be read.

x64Analyzer routed opcode 0x88 into the write path but had no case for it, so it hit
the default, logged from inside the crash handler, and failed. 0x88 is exactly what
the x64 JIT emits for a guest sb, so MemFault could never skip or ignore a bad byte
store the way it can a word one. Handle the 8-bit forms, and drop the 0x8a/0x8b cases
in the read path that the same 0xF0 mask made unreachable. Covered by a new
CheckAnalyze case, which fails without this change.

314 pspautotests pass, all unit tests pass.
2026-08-31 12:27:24 +02:00
Henrik Rydgård d3c7279e9f Fix unnecessary RAIntegration error message if you have the DLL but RA is disabled 2026-07-28 00:16:12 +02:00
Henrik Rydgård 9949c2bf49 RAIntegration / retroachievements: Improve memory range checks 2026-07-27 18:37:28 +02:00
Henrik Rydgård 456cfb0f5a RAIntegration crashfix 2026-07-27 18:37:28 +02:00
Henrik Rydgård 72ee82844d Doesn't yet work 2026-06-24 23:04:17 +02:00
Henrik Rydgård 05018fb40d RetroAchievement images: Workaround for lack of https on Linux
Fixes #21843
2026-06-17 16:20:53 +02:00
Henrik Rydgård 9793172eba More UI refinements 2026-04-07 20:52:38 -06:00
Henrik Rydgård 3083d37728 Add support for the raintegration menu rebuild event 2026-03-26 17:18:12 -06:00
Henrik Rydgård 910b60defc Merge pull request #21463 from hrydgard/misc
Add a new file dumping setting to dump the raw ISO file from NPDRM-packed demos
2026-03-19 22:18:01 +01:00
Henrik Rydgård 0e55129fab Prepare for dumping NPDRM isos, use shared_ptr to manage lifetime of BlockDevice 2026-03-19 13:59:04 +01:00
Kevin Reinholz f020bcdd75 Create option to build with system freetype, libchdr, and rapidjson instead of bundled modules. Add a couple of FreeBSD-specific tweaks to CMakeLists.txt while at it 2026-03-10 18:03:06 -07:00
Henrik Rydgård 1a95e9e4e9 Fetch the public adhoc server list from metadata.ppsspp.org/adhoc-servers.json 2026-03-06 13:25:07 +01:00
Henrik Rydgård ab4ca14773 Add a simple utility to help bug reporting: Copy ppsspp.ini to clipboard 2026-02-17 10:18:08 +01:00
Henrik Rydgård db0a557590 Make it possible to have RetroAchievements enabled in a game config.
Fixes #21175
2026-01-30 09:43:31 +01:00
Henrik Rydgård 6a9b2e1e87 RetroAchievements: Improve completion messages (subset, differentiate hardcore mode) 2026-01-20 18:25:48 +01:00
Henrik Rydgård 63658bcb2f Lambda capture cleanup 2026-01-20 14:29:13 +01:00
Henrik Rydgård 0fb2be2cbe Simplify image caching for RetroAchievements 2026-01-20 14:25:59 +01:00
Wes Copeland 7a98df5297 Achievements: support rc_client_set_host 2025-11-16 17:54:56 -05:00
Nab 5bfd4b390c GameRegion improvements 2025-09-03 14:17:55 +02:00
Henrik Rydgård 6f76c579fc Delete dead code, more std::string_view 2025-09-01 00:15:23 +02:00
Henrik Rydgård b472eb8b8b Remove a lot of unnecessary string constructors 2025-08-31 15:49:29 +02:00
Henrik Rydgård 65285e59c4 Bump rcheevos to v12.0.0 2025-08-24 14:58:53 +02:00
Henrik Rydgård ddc8093b34 RetroAchievements: Better error messages on login, don't delete the username on failure 2025-06-13 19:09:35 +02:00
Henrik Rydgård 77f9a27c35 Add a way for errors to bubble up out of BlockDevice creation 2025-06-07 12:30:20 +02:00
Henrik Rydgård 06b29ccb85 RetroAchievements: Correct memory address check in read_memory_callback 2025-06-05 10:56:11 +02:00
Henrik Rydgård e0a98ea54c Improve the "No game loaded" RA popup 2025-06-01 11:47:07 +02:00
Henrik Rydgård 4c631e77f5 RetroAchievements: Show region when showing the info popu. Refactor region detection a little. 2025-06-01 11:34:59 +02:00
Henrik Rydgård a4e6e84a0a Move achievement handling to EmuScreen and the main thread. Fixes black screen. 2025-04-09 18:07:13 +02:00
Henrik Rydgård ee90d2acc1 PSP boot: Move more of the startup process into the loading thread. Simplifies the code a bit. 2025-03-30 11:22:16 +02:00
Henrik Rydgård 31cf5771f4 Turn the break reason into an enum, fix some minor issues 2025-02-19 16:01:11 -06:00
Henrik Rydgård ccf814bcd0 Some shutdown logging improvements 2025-01-28 13:32:31 +01:00
Henrik Rydgård eb719c43e8 HTTP: Replace ProgressBarMode with a new RequestFlags enum 2025-01-23 12:09:56 +01:00
Henrik Rydgård c91169e702 Restore removed <algorithm> includes.
Turns out these were needed after all. For some reason, on Windows and
Mac, <algorithm> gets auto-included by something else so I don't notice
when it's missing, and MSVC's include dependency tracker doesn't see it
either.
2024-12-19 09:53:07 +01:00
Henrik Rydgård 3e198c53b2 More include cleanup 2024-12-18 13:57:26 +01:00
Henrik Rydgård c8d43198d3 RAIntegration: Fix the filename in the not-found messages. 2024-11-06 14:47:48 +01:00
Henrik Rydgård d3e9398cb3 Split Core_EnableStepping into Core_Break and Core_Resume 2024-11-03 17:53:42 +01:00
Henrik Rydgård e51c58716b Fix minor code issues flagged by PVS-Studio and reported by alphrixus. 2024-10-10 14:10:30 +02:00
Henrik Rydgård 9699be2110 RetroAchievements: Cleanup better on login failure 2024-09-26 01:09:56 +02:00
Henrik Rydgård fb2722f2c5 RetroAchievements leaderboard: Show new rank, or personal best, after submission. 2024-07-18 23:15:27 +02: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 b0a71d450d Use new API to notify raintegration of the console ID 2024-04-30 00:49:55 +02:00
Henrik Rydgård 167fabaa56 Increase the hashing limit to 64MB, to match rcheevos' rhash max limit 2024-04-29 23:33:04 +02:00
Henrik Rydgård 7a6d646beb RetroAchievements: Add support for hashing homebrew
We finally defined a method in https://github.com/RetroAchievements/rcheevos/issues/244 .
2024-04-29 20:33:23 +02:00
Henrik Rydgård 80a12ca102 Run the update menu item thing on the window thread too. 2024-04-06 12:18:28 +02:00
Henrik Rydgård 00acaa3299 Build the RAIntegration menu on the right thread 2024-04-06 12:14:53 +02:00
Henrik Rydgård 616ee81f84 Add another parameter to the internal "request" framework. 2024-04-06 12:04:45 +02:00
Henrik Rydgård 329628f448 Force the menubar to repaint after building the RA submenu 2024-04-05 22:55:31 +02:00
Henrik Rydgård 770e5b4f4a Fix shortcut translation so we don't eat Ctrl+C for RAIntegration windows 2024-04-05 22:41:08 +02:00
Henrik Rydgård d39b606931 RAIntegration: Fix memory writes 2024-04-05 21:00:12 +02:00
Henrik Rydgård 6f825e4ff3 Minor comment fix 2024-04-05 18:21:02 +02:00