mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-12 19:37:06 +00:00
Memory changes 2.1
* Fixes a few crashes * Simplifies a few functions * Changes a few calls to use faster methods
This commit is contained in:
parent
a62deb8cfd
commit
61da23cb9e
7 changed files with 160 additions and 83 deletions
|
|
@ -182,11 +182,15 @@ namespace Ryujinx.Memory.Tracking
|
|||
{
|
||||
if (region.Guest)
|
||||
{
|
||||
_guestVirtualRegions.Lock.EnterWriteLock();
|
||||
_guestVirtualRegions.Remove(region);
|
||||
_guestVirtualRegions.Lock.ExitWriteLock();
|
||||
}
|
||||
else
|
||||
{
|
||||
_virtualRegions.Lock.EnterWriteLock();
|
||||
_virtualRegions.Remove(region);
|
||||
_virtualRegions.Lock.ExitWriteLock();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue