mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-09-15 05:57:53 -05:00
Misc language usage simplifications (#26)
un-nest some logic add some xmldoc simplify ini parse
This commit is contained in:
@@ -23,10 +23,7 @@ namespace Ryujinx.OsHle.Handles
|
||||
{
|
||||
Positions.Add(Position);
|
||||
|
||||
if (MemoryMapped != null)
|
||||
{
|
||||
MemoryMapped(this, EventArgs.Empty);
|
||||
}
|
||||
MemoryMapped?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +33,7 @@ namespace Ryujinx.OsHle.Handles
|
||||
{
|
||||
Positions.Remove(Position);
|
||||
|
||||
if (MemoryUnmapped != null)
|
||||
{
|
||||
MemoryUnmapped(this, EventArgs.Empty);
|
||||
}
|
||||
MemoryUnmapped?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -165,12 +165,7 @@ namespace Ryujinx.OsHle
|
||||
|
||||
internal bool TryGetProcess(int ProcessId, out Process Process)
|
||||
{
|
||||
if (!Processes.TryGetValue(ProcessId, out Process))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return Processes.TryGetValue(ProcessId, out Process);
|
||||
}
|
||||
|
||||
internal void CloseHandle(int Handle)
|
||||
|
Reference in New Issue
Block a user