mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-26 12:04:47 +00:00
* 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 |
||
---|---|---|
.. | ||
common | ||
core | ||
images | ||
imgui | ||
input | ||
qt_gui | ||
shader_recompiler | ||
video_core | ||
.clang-format | ||
emulator.cpp | ||
emulator.h | ||
main.cpp | ||
sdl_window.cpp | ||
sdl_window.h | ||
shadps4.qrc | ||
shadps4.rc |