mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-10 23:06:38 +00:00
34 lines
No EOL
672 B
C#
34 lines
No EOL
672 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.HLE.OsHle.Handles
|
|
{
|
|
class KProcessHandleTable
|
|
{
|
|
private IdDictionary Handles;
|
|
|
|
public KProcessHandleTable()
|
|
{
|
|
Handles = new IdDictionary();
|
|
}
|
|
|
|
public int OpenHandle(object Obj)
|
|
{
|
|
return Handles.Add(Obj);
|
|
}
|
|
|
|
public T GetData<T>(int Handle)
|
|
{
|
|
return Handles.GetData<T>(Handle);
|
|
}
|
|
|
|
public object CloseHandle(int Handle)
|
|
{
|
|
return Handles.Delete(Handle);
|
|
}
|
|
|
|
public ICollection<object> Clear()
|
|
{
|
|
return Handles.Clear();
|
|
}
|
|
}
|
|
} |