From 3615a70cae3f89197fe185dfc5d0a47fa42151d9 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 4 Dec 2018 22:52:39 -0200 Subject: Revert "Adjust naming conventions and general refactoring in HLE Project (#490)" (#526) This reverts commit 85dbb9559ad317a657dafd24da27fec4b3f5250f. --- Ryujinx.HLE/HOS/GlobalStateTable.cs | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'Ryujinx.HLE/HOS/GlobalStateTable.cs') 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 _dictByProcess; + private ConcurrentDictionary DictByProcess; public GlobalStateTable() { - _dictByProcess = new ConcurrentDictionary(); + DictByProcess = new ConcurrentDictionary(); } - 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(KProcess process, int id) + public T 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 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 DeleteProcess(KProcess process) + public ICollection 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; -- cgit v1.2.3