diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-12-04 22:52:39 -0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-04 22:52:39 -0200 |
| commit | 3615a70cae3f89197fe185dfc5d0a47fa42151d9 (patch) | |
| tree | 8e4737422fba15199c1a6ce7c6345996c0e907b5 /Ryujinx.HLE/HOS/GlobalStateTable.cs | |
| parent | 85dbb9559ad317a657dafd24da27fec4b3f5250f (diff) | |
Revert "Adjust naming conventions and general refactoring in HLE Project (#490)" (#526)
This reverts commit 85dbb9559ad317a657dafd24da27fec4b3f5250f.
Diffstat (limited to 'Ryujinx.HLE/HOS/GlobalStateTable.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/GlobalStateTable.cs | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Ryujinx.HLE/HOS/GlobalStateTable.cs b/Ryujinx.HLE/HOS/GlobalStateTable.cs index a350dee2..d7d83453 100644 --- a/Ryujinx.HLE/HOS/GlobalStateTable.cs +++ b/Ryujinx.HLE/HOS/GlobalStateTable.cs @@ -6,62 +6,62 @@ namespace Ryujinx.HLE.HOS { class GlobalStateTable { - private ConcurrentDictionary<KProcess, IdDictionary> _dictByProcess; + private ConcurrentDictionary<KProcess, IdDictionary> DictByProcess; public GlobalStateTable() { - _dictByProcess = new ConcurrentDictionary<KProcess, IdDictionary>(); + DictByProcess = new ConcurrentDictionary<KProcess, IdDictionary>(); } - public bool Add(KProcess process, int id, object data) + public bool Add(KProcess Process, int Id, object Data) { - IdDictionary dict = _dictByProcess.GetOrAdd(process, (key) => new IdDictionary()); + IdDictionary Dict = DictByProcess.GetOrAdd(Process, (Key) => new IdDictionary()); - return dict.Add(id, data); + return Dict.Add(Id, Data); } - public int Add(KProcess process, object data) + public int Add(KProcess Process, object Data) { - IdDictionary dict = _dictByProcess.GetOrAdd(process, (key) => new IdDictionary()); + IdDictionary Dict = DictByProcess.GetOrAdd(Process, (Key) => new IdDictionary()); - return dict.Add(data); + return Dict.Add(Data); } - public object GetData(KProcess process, int id) + public object GetData(KProcess Process, int Id) { - if (_dictByProcess.TryGetValue(process, out IdDictionary dict)) + if (DictByProcess.TryGetValue(Process, out IdDictionary Dict)) { - return dict.GetData(id); + return Dict.GetData(Id); } return null; } - public T GetData<T>(KProcess process, int id) + public T GetData<T>(KProcess Process, int Id) { - if (_dictByProcess.TryGetValue(process, out IdDictionary dict)) + if (DictByProcess.TryGetValue(Process, out IdDictionary Dict)) { - return dict.GetData<T>(id); + return Dict.GetData<T>(Id); } return default(T); } - public object Delete(KProcess process, int id) + public object Delete(KProcess Process, int Id) { - if (_dictByProcess.TryGetValue(process, out IdDictionary dict)) + if (DictByProcess.TryGetValue(Process, out IdDictionary Dict)) { - return dict.Delete(id); + return Dict.Delete(Id); } return null; } - public ICollection<object> DeleteProcess(KProcess process) + public ICollection<object> DeleteProcess(KProcess Process) { - if (_dictByProcess.TryRemove(process, out IdDictionary dict)) + if (DictByProcess.TryRemove(Process, out IdDictionary Dict)) { - return dict.Clear(); + return Dict.Clear(); } return null; |
