aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/GlobalStateTable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Core/OsHle/GlobalStateTable.cs')
-rw-r--r--Ryujinx.Core/OsHle/GlobalStateTable.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/Ryujinx.Core/OsHle/GlobalStateTable.cs b/Ryujinx.Core/OsHle/GlobalStateTable.cs
index ffc9f262..2a5714ad 100644
--- a/Ryujinx.Core/OsHle/GlobalStateTable.cs
+++ b/Ryujinx.Core/OsHle/GlobalStateTable.cs
@@ -12,11 +12,18 @@ namespace Ryujinx.Core.OsHle
DictByProcess = new ConcurrentDictionary<Process, IdDictionary>();
}
- public int Add(Process Process, object Obj)
+ public bool Add(Process Process, int Id, object Data)
{
IdDictionary Dict = DictByProcess.GetOrAdd(Process, (Key) => new IdDictionary());
- return Dict.Add(Obj);
+ return Dict.Add(Id, Data);
+ }
+
+ public int Add(Process Process, object Data)
+ {
+ IdDictionary Dict = DictByProcess.GetOrAdd(Process, (Key) => new IdDictionary());
+
+ return Dict.Add(Data);
}
public object GetData(Process Process, int Id)