Commit Graph

376 Commits

Author SHA1 Message Date
Henrik Rydgård 6df9e513c1 Logging, comments and debugger fixes, plus simple dumping of the first block of streaming Atrac3 2025-06-25 01:08:47 +02:00
Henrik Rydgård 43e79aba55 Give Mpeg and Atrac their own log categories 2025-06-24 21:36:04 +02:00
Henrik Rydgård d00f8f9401 Display: Don't clear display callback listeners when starting a new exec.
Fixes https://github.com/RetroAchievements/RAIntegration/issues/1186
2025-06-07 17:43:18 +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 280a416a84 Make log-to-file notifications clickable (to show the log file) 2025-06-05 10:47:16 +02:00
Henrik Rydgård 722d065417 Minor 2025-06-03 13:05:45 +02:00
Henrik Rydgård e4254b9570 Add some small debug counters that can be sent out through the assert message on Android
To enable more understanding of how some crashes could happen.
2025-06-03 12:01:47 +02:00
Henrik Rydgård 65229026bb Add a checkbox to enable file logging from the UI, in developer settings.
Fixes issue #20372.

The file is written to PSP/SYSTEM/DUMP/log.txt by default, but you can
override from the command line if needed.
2025-05-25 18:54:30 +02:00
Henrik Rydgård d77725bc26 libretro: Fix GPU init. Had to revert to the old way for libretro, something is ordering-sensitive here.
Fixes #20350
2025-05-17 10:18:07 +02:00
Henrik Rydgård 9a86101769 Avoid getting stuck in a load-loop when auto-loading a bad savestate. Make some code clearer. 2025-05-16 01:55:18 +02:00
Henrik Rydgård 751e4fad2e Move more of GPU init to the loader thread. Some log cleanup. 2025-05-15 11:43:37 +02:00
Henrik Rydgård 9293afa1c0 Cleanup 2025-05-15 10:32:07 +02:00
Henrik Rydgård 4fcf5a4fab Start reordering things in the GPU init, with the goal of doing most of it on the loader thread. 2025-05-15 10:24:30 +02:00
Henrik Rydgård 4e0b6ac3ec More misc cleanup 2025-05-14 15:14:03 +02:00
Henrik Rydgård ff37cbe184 Minor memory safety fixes 2025-05-14 09:39:09 +02:00
Henrik Rydgård 80147f318e Remove PSP_CancelBoot, assorted cleanup 2025-05-13 13:58:28 +02:00
Henrik Rydgård bebcec8314 EmuScreen: Clarify some logic, add some checks 2025-04-29 16:46:14 +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 52a7709fb5 Log cleanup. Fix very minor memory leak 2025-04-14 22:38:22 +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 24b30cc709 Mostly remove coreState management from System.cpp 2025-04-05 09:18:56 +02:00
Henrik Rydgård 5e18576f59 Separate imports and exports for listing. 2025-04-02 10:09:19 +02:00
Henrik Rydgård 426e289193 Plugins must be initialized before memory, so they can change the size. Fixes #20185 2025-04-02 09:38:24 +02:00
Henrik Rydgård 940e2375aa Libretro: Correctly update the boot process
Made untested changes after #20183 - surprise, it didn't work.

Thanks @Duarte475 for reporting.

Fixes #20189
2025-03-31 14:16:17 +02:00
Henrik Rydgård a79f986411 More module loading cleanup, choose better filenames for dumped PRX files 2025-03-31 12:09:25 +02:00
Henrik Rydgård f236a6982b Fix ordering issue 2025-03-30 16:40:34 +02:00
Henrik Rydgård 5f30793845 Refactor a little more. 2025-03-30 15:15:37 +02:00
Henrik Rydgård 088a02bfdb Cleanup a lot of the bootup state management. 2025-03-30 14:02:29 +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 19c7d795a7 Inline the big load switch into CPU_Init. This let me see that much of it could be simplified away. 2025-03-30 10:02:06 +02:00
Henrik Rydgård 42a58eaeb7 Clean up and reorder the boot process a bit, return better errors on bad files. 2025-03-30 01:07:12 +01:00
Henrik Rydgård 7314a65cc5 Remove the "invalid_" state bool in EmuScreen 2025-03-28 11:11:28 +01:00
Henrik Rydgård cf059ff84c Stub a lua console, add the sol lua wrapper library 2025-03-27 08:59:37 +01:00
Henrik Rydgård b05d6171d4 Add a consistent feature check - only desktops get to use CacheFullISOInRAM. 2025-03-27 01:02:28 +01:00
Henrik Rydgård 8d9b3f28f2 Reintroduce "cache ISO in RAM" 2025-03-27 00:46:31 +01:00
Henrik Rydgård a50b303a38 Redesign the recent files API a bit. 2025-03-26 17:59:30 +01:00
Henrik Rydgård e2e99caeee Some minor reordering, reduce the calls to Identify_File 2025-03-26 09:24:14 +01:00
Henrik Rydgård 0df7a850a1 Only load PARAM.SFO once during startup 2025-03-26 09:24:14 +01:00
Henrik Rydgård 05b1cf3b80 Startup cleanup, part 1 2025-03-26 09:24:14 +01:00
Henrik Rydgård 4eaad7d5af Remove the "Cache full ISO in RAM" feature
It's been broken for years and nobody has even noticed enough to report
it.
2025-03-26 09:06:33 +01:00
Henrik Rydgård 8403597efd Fix an unrelated issue where "Cache full iso in RAM" didn't actually work until resetting 2025-03-25 22:19:28 +01:00
Henrik Rydgård ef4e04c8a1 Pass more filename information into elf loading. Allow dumping PRX into elf. 2025-03-19 10:42:32 +01:00
Henrik Rydgård c4241e283a Prepare to generalize file dumping 2025-03-19 09:46:25 +01:00
Henrik Rydgård 2cc631338b Correctly unload GE framedumps. Additionally, look up the title when possible and show in titlebar. 2025-03-06 14:58:33 +01:00
Henrik Rydgård c36375d6c8 Don't enable "full iso ram caching" for filetypes other than ISO. 2025-03-06 13:57:05 +01:00
Henrik Rydgård 360c5459b5 Linux: Fix problem with memstick directory creation
CreateDir may not be enough so use CreateFullPath
2025-02-06 11:36:57 -06:00
Henrik Rydgård 3e198c53b2 More include cleanup 2024-12-18 13:57:26 +01:00
Henrik Rydgård b2a8b4168b Core: Minor changes to stepping (and some log changes) 2024-12-10 01:06:19 +01:00
Henrik Rydgård 83af54950f Move more core-related stuff into Core.cpp/h 2024-12-08 11:54:58 +01:00
Henrik Rydgård df91f699fc Move the core loop to Core.cpp 2024-12-08 11:47:12 +01:00