mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-29 17:26:25 +02:00
misc: chore: Fix object creation in Gpu project
This commit is contained in:
parent
4e47c86f90
commit
929a16dd26
18 changed files with 231 additions and 231 deletions
|
@ -199,7 +199,7 @@ namespace Ryujinx.Graphics.Gpu
|
|||
/// <exception cref="ArgumentException">Thrown if <paramref name="pid"/> was already registered</exception>
|
||||
public void RegisterProcess(ulong pid, Cpu.IVirtualMemoryManagerTracked cpuMemory)
|
||||
{
|
||||
PhysicalMemory physicalMemory = new PhysicalMemory(this, cpuMemory);
|
||||
PhysicalMemory physicalMemory = new(this, cpuMemory);
|
||||
if (!PhysicalMemoryRegistry.TryAdd(pid, physicalMemory))
|
||||
{
|
||||
throw new ArgumentException("The PID was already registered", nameof(pid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue