shadPS4/src
Stephen Miller 58b417e98e Core: Protect fixes (#3029)
* Swap do-while to while

If we use a do-while loop, we waste time if `aligned_size = 0`.  This is also still accurate to FreeBSD behavior, where it returns success if `start == end` during mprotect.
This also effectively prevents the memory assert seen in updated versions of RESIDENT EVIL 2 (CUSA09193)

* Move prot validation outside loop

The prot variable shouldn't change during a mprotect call, so we can check the flags before protecting instead.
Also cleans up the code for prot validation.
This should improve performance, and is more accurate to FreeBSD code.

* Add logging for protect calls

This will help in debugging future problems
2025-06-03 19:39:31 +01:00
..
common Network Play: set user signed in (#2944) 2025-06-03 19:39:31 +01:00
core Core: Protect fixes (#3029) 2025-06-03 19:39:31 +01:00
images New kbm icon (#2898) 2025-05-17 11:39:35 +03:00
imgui devtools: persist fsr configs (#2852) 2025-04-27 13:32:29 -03:00
input Fix touchpad handling and change gyro calculation (#3006) 2025-06-03 19:39:31 +01:00
qt_gui Fix SSH remote links (#3025) 2025-06-03 19:39:31 +01:00
shader_recompiler Misc opcodes fixes (#3009) 2025-06-03 19:39:31 +01:00
video_core Provide custom border color to samplers (#3014) 2025-06-03 19:39:31 +01:00
.clang-format chore: Make shadps4 REUSE compliant 2024-02-23 23:33:43 +02:00
emulator.cpp Fix SSH remote links (#3025) 2025-06-03 19:39:31 +01:00
emulator.h CLI: Add argument to pass an argument to the game (#2135) 2025-01-18 15:21:08 +03:00
main.cpp VideoOut event cleanup (#2849) 2025-04-27 09:04:17 +03:00
sdl_window.cpp build: Move versioning to CMake file. (#2752) 2025-04-07 12:22:51 +03:00
sdl_window.h Gui: Adding Pause button working, full screen button and labels to buttons on main window gui (#2634) 2025-03-26 23:50:52 +02:00
shadps4.qrc misc: Few small fixes. (#2780) 2025-04-13 12:10:24 -07:00
shadps4.rc [Windows] Adding Properties to the Executable (#2789) 2025-04-17 09:43:14 +03:00